* haXe code completion
@ 2009-02-02 22:07 TheLonelyStar
2009-02-04 3:52 ` Kevin Rodgers
0 siblings, 1 reply; 2+ messages in thread
From: TheLonelyStar @ 2009-02-02 22:07 UTC (permalink / raw
To: Help-gnu-emacs
Hi,
I would like haXe (www.haxe.org) code completion in emacs.
The haxe compiler provides everything that is needed. If invoked with the
information of the position in the source, it returns to stderr a xml-list
with completon possibilites.
But I am not good in wrtiting emacs lisp. How can I:
- Invoke an external program and store the output to stderr?
- Parse xml?
- Display a list for autocompletion?
Thanks!
Nathan
--
View this message in context: http://www.nabble.com/haXe-code-completion-tp21799555p21799555.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: haXe code completion
2009-02-02 22:07 haXe code completion TheLonelyStar
@ 2009-02-04 3:52 ` Kevin Rodgers
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2009-02-04 3:52 UTC (permalink / raw
To: help-gnu-emacs
TheLonelyStar wrote:
> I would like haXe (www.haxe.org) code completion in emacs.
> The haxe compiler provides everything that is needed. If invoked with the
> information of the position in the source, it returns to stderr a xml-list
> with completon possibilites.
>
> But I am not good in wrtiting emacs lisp. How can I:
> - Invoke an external program and store the output to stderr?
call-process-region, using the (REAL-BUFFER STDERR-FILE) form of the
BUFFER argument. If you're only interested in capturing standard error,
then REAL-BUFFER is 0.
> - Parse xml?
(xml-parse-file STDERR-FILE)
> - Display a list for autocompletion?
completing-read is the direct user interface, but there are higher level
completion modes -- sorry, I don't know how to hook into them.
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-04 3:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-02 22:07 haXe code completion TheLonelyStar
2009-02-04 3:52 ` Kevin Rodgers
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.