[osflash] [OT] one editor for everything (emacs)

Marcelo de Moraes Serpa celoserpa at gmail.com
Fri Jan 5 05:55:24 EST 2007


The way you put it, it seems that once you've mastered emacs elisp,
Apache-ANT is no longer needed...  is that right? :P

On 1/4/07, Austin Haas <austin at pettomato.com> wrote:
>
> 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))))
>                         (save-excursion
>                                 ;; Insert the text, advancing the process
> marker.
>                                 (goto-char (process-mark proc))
>                                 (insert string)
>                                 (set-marker (process-mark proc) (point)))
>                         (if moving (goto-char (process-mark proc))))))
>
> (defun launch-flash-tracer ()
>         (interactive)
>         (when (get-buffer *as-debug-buffer*)
>                 (save-current-buffer
>                         (set-buffer *as-debug-buffer*)
>                         ;; Clear the buffer.
>                         (erase-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
>                 (with-current-buffer *as-debug-buffer*
>                         (hi-lock-mode t)
>                         (highlight-lines-matching-regexp "^\[[
> 0-9]*?[13579]\]" 'actionscript-global-props-face))
>                 (message "Done.")))
>
> -austin
>
> 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.
> > http://blog.pettomato.com/?p=12
> >
> > 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
> > >
> > >http://pettomato.com/emacs_screenshot.png
> > >
> > >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
> > >version
> > >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.
> > >
> > >
> > >http://pettomato.com/emacs_screenshot2.png
> > >
> > >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.
> > >
> > >-austin
> > >
> > >
> > >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
> > >insteresting.
> > >> > The interface is simple but pretty. Didn't go further becouse I
> have
> > >no
> > >> > available time right now to invest on learning the tool, but I will
> > >surely
> > >> > 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.
> > >http://pettomato.com
> > >
> > >_______________________________________________
> > >osflash mailing list
> > >osflash at osflash.org
> > >http://osflash.org/mailman/listinfo/osflash_osflash.org
> > >
>
> > _______________________________________________
> > osflash mailing list
> > osflash at osflash.org
> > http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
> --
> Austin Haas
> Pet Tomato, Inc.
> http://pettomato.com
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20070105/10724bc3/attachment-0001.htm


More information about the osflash mailing list