Re: Another silly hack

occ <[email protected]> Wed, 01 Mar 2006 23:33:22 +0000
Newsgroups gmane.comp.gnome.apps.pybliographer
Message-ID <[email protected]>
On Wed, 2006-03-01 at 22:20 +0100, Frederic Gobry wrote:
> > As far as I know, the feature set for emacs 22 has frozen and the
> > snapshot builds are relatively stable. 
> > 
> > As for when the release will be, i think it is anybodies guess "Some
> > time in the future" is probably as close as i would want to tie it down.
> 
> But if the feature set has frozen, it is probably safe to integrate this
> for the forthcoming release (let's hope it's not in a few years from
> now... Emacs 21.1 was released in 2001 :-)
> 
> I find the fact of creating a file for inserting it a bit overkill. It
> should be possible to simply call insert with the \cite text?
Yes, the only reason i used "insert-file" as the emacs command was
because this is the only elisp function that i could remember off the
top of my head which would have this effect :) 

Breifly looking at the elisp docs i find that there is an  (insert
"text") function which does exactly the correct thing, doh!. 

i've quickly looked at the code for emacsclient  and the protocol is
very simple

for emacs 22 the default socket address is /tmp/emacs$UID/server (in
emacs 21 this is something else) 

for a given command like
emacsclient.emacs-snapshot -e '(insert "foo")' 







-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642