Hi Austin :)

I just set up emacs with your actionscript-mode (for AS2) and after cleaning
up some of your specific code, I got it working nicely. I like the way emacs
integrates everything in a simples, fast and powerful platform - I can have
php files, actionscript files and my personal PIM PlannerMode accessible
from a few keystrokes. I just got the "Learning GNU Emacs, 3rd ed." from
O'Reilly. I'm in the process of setting up my development enviroment
(AS2+PHP) totally on emacs (Was using FD2 for ActionScript 2 and Eclipse +
PHPEclipse for PHP and while they're great, I really feel like giving emacs
a chance, or is it giving me a chance to try emacs? :P).

I have a question that if answered would really speed things up: I'd like to
bind a key (or key combination) for the launching of external processes (ANT
for example), how would I do that?

Cheers,

Marcelo.

On 1/5/07, Austin Haas <[EMAIL PROTECTED]> wrote:


Yeah, I don't use ANT, but maybe I should. For my purposes, it was easy
enough to just code a little script in elisp. I like the level of control
that I have with a custom script, especially with regard to how it
integrates with my (emacs-based) dev. environment. I confess that I'm not at
all familiar with ANT or any other build system, though.

-austin


On Fri Jan 05 08:55 , Marcelo de Moraes Serpa wrote:
> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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
> >> >> [email protected]
> >> >> http://osflash.org/mailman/listinfo/osflash_osflash.org
> >> >>
> >> >
> >> >--
> >> >Austin Haas
> >> >Pet Tomato, Inc.
> >> >http://pettomato.com
> >> >
> >> >_______________________________________________
> >> >osflash mailing list
> >> >[email protected]
> >> >http://osflash.org/mailman/listinfo/osflash_osflash.org
> >> >
> >
> >> _______________________________________________
> >> osflash mailing list
> >> [email protected]
> >> http://osflash.org/mailman/listinfo/osflash_osflash.org
> >
> >
> >--
> >Austin Haas
> >Pet Tomato, Inc.
> >http://pettomato.com
> >
> >_______________________________________________
> >osflash mailing list
> >[email protected]
> >http://osflash.org/mailman/listinfo/osflash_osflash.org
> >

> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org


--
Austin Haas
Pet Tomato, Inc.
http://pettomato.com

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to