[osflash] [OT] one editor for everything (emacs)
austin at pettomato.com
Thu Jan 4 14:45:13 EST 2007
Cool. I've updated that actionscript stuff for AS3, here: http://blog.pettomato.com/?p=22
I wrote a small server in Lisp that catches those debug messages and sends them to standard-output. It's launched from Emacs as a subprocess and all output goes straight into an Emacs buffer. The highlighting is a simple function that is called when that buffer is created.
If xray can send it's output to a console, then you should be able to use in the same way.
Here is the code:
(defun ordinary-insertion-filter (proc string)
(with-current-buffer (process-buffer proc)
(let ((moving (= (point) (process-mark proc))))
;; Insert the text, advancing the process marker.
(goto-char (process-mark proc))
(set-marker (process-mark proc) (point)))
(if moving (goto-char (process-mark proc))))))
(defun launch-flash-tracer ()
(when (get-buffer *as-debug-buffer*)
;; Clear the buffer.
(unless (get-process "as-tracer")
(message "Starting as-tracer...")
(let ((p (start-process "as-tracer" *as-debug-buffer* "sbcl" "--core" "/home/astro/projects/web/flash-tracer/flash-tracer.core" "--noinform")))
(set-process-filter p 'ordinary-insertion-filter))
;; Highlight odd numbered frames
(highlight-lines-matching-regexp "^\[[ 0-9]*?\]" 'actionscript-global-props-face))
On Thu Jan 04 11:26 , Ishmael Riles wrote:
> Thanks Austin,
> It must have been you that I downloaded the actionscript customizations that
> I'm currently using.
> One question, Is that xray output that's in the right buffer of the first
> screenshot? Does the output go directly into the buffer? How did you get
> that working? And highlighting lines from odd frames, did you write an elisp
> script for that?
> On 1/4/07, Austin Haas <austin at pettomato.com> wrote:
> >Emacs Screenshots
> >There's really not much to see. One Emacs window has been divided
> >vertically to display two editing buffers. On the left is an actionscript
> >file. All the functions have been collapsed, except for the constructor. At
> >the bottom there is some information about the file, including which
> >it is in CVS.
> >On the right is a buffer that I use to capture the output from my swf.
> >I've set it color odd frames blue and even frames white to help me follow
> >what's going on.
> >Here's another where I've divided the Emacs window into three buffers. The
> >top right one is a directory buffer, and in the bottom one I'm editing xml.
> >In the directory buffer, I've bound F4 to mplayer to play the currently
> >highlighted sound file and F3 to open the file in snd (wave editor). I've
> >found that this saves me a lot of time to audition sound fx. I can mark the
> >files that I like with another key and when I'm through, I can copy all the
> >marked files to my working directory.
> >On Thu Jan 04 18:51 , zwetan wrote:
> >> On 1/4/07, Marcelo de Moraes Serpa <celoserpa at gmail.com> wrote:
> >> > I have installed emacs (emacs win32), and found it to be very
> >> > The interface is simple but pretty. Didn't go further becouse I have
> >> > available time right now to invest on learning the tool, but I will
> >> > play with it when I get the chance :)
> >> >
> >> I would be interested to know if some people use emacs win32
> >> with Subversion, I saw the emac doc with RCS and CVS support,
> >> but what about SVN ?
> >> same situation here, I would like to give it a shot but
> >> don't even want to install it if I know it can not work with SVN
> >> anyone got a screenshot of their emacs with an actionscript setting ?
> >> just curious ;)
> >> zwetan
> >> _______________________________________________
> >> osflash mailing list
> >> osflash at osflash.org
> >> http://osflash.org/mailman/listinfo/osflash_osflash.org
> >Austin Haas
> >Pet Tomato, Inc.
> >osflash mailing list
> >osflash at osflash.org
> osflash mailing list
> osflash at osflash.org
Pet Tomato, Inc.
More information about the osflash