Lisp HUG Maillist Archive

lisp editor

Dear lisp-hug list,

Is it possible to create a Lisp editor window in a LispWorks  
application ?
(in other word, how to create, from a Lisp function, an editor that  
would open a text buffer, or a text file, and allow for its edition  
and possible interactive evaluation, like in the LW editor window ?)

Thanks,

Jean Bresson 


Re: lisp editor

On Wed, 5 Dec 2007 19:02:51 +0100, Jean Bresson <Jean.Bresson@ircam.fr> wrote:

> Is it possible to create a Lisp editor window in a LispWorks
> application ?

  http://www.lispworks.com/documentation/lw50/CAPUG-W/html/capiuser-w-29.htm

See

  http://weitz.de/regex-coach/

for a LispWorks application that uses editor panes extensively.

Edi.


Re: lisp editor

On Wed, Dec 05, 2007 at 07:02:51PM +0100, Jean Bresson wrote:
> Is it possible to create a Lisp editor window in a LispWorks
> application ?
> (in other word, how to create, from a Lisp function, an editor that
> would open a text buffer, or a text file, and allow for its edition
> and possible interactive evaluation, like in the LW editor window ?)

One of the Lisp commands to edit a file is editor:find-file-command:

  (editor:find-file-command nil #p"/path/to/file")

Making sure that this command and the rest of the LW editor code makes
it into your delivered image is left as an exercise to the reader, as
is checking whether the Lispworks licensing agreement allows such a
thing.  :)  (Though if this is for your own use, it doesn't matter, of
course.)

-- L


Re: lisp editor

On Dec 5, 2007 1:02 PM, Jean Bresson <Jean.Bresson@ircam.fr> wrote:
> Dear lisp-hug list,
>
> Is it possible to create a Lisp editor window in a LispWorks
> application ?
> (in other word, how to create, from a Lisp function, an editor that
> would open a text buffer, or a text file, and allow for its edition
> and possible interactive evaluation, like in the LW editor window ?)
>
> Thanks,
> Jean Bresson

I'm not sure about its behavior in delivered applications, but
LispWorks implements ED with useful results. You can use it to get an
editor with a buffer associated with no file, with an existing file,
or a new file.

http://www.lispworks.com/documentation/HyperSpec/Body/f_ed.htm

-- 
=====================
Joshua Taylor
jtaylor@alum.rpi.edu

"A lot of good things went down one time,
     back in the goodle days."
               John Hartford


Updated at: 2020-12-10 08:44 UTC