Lisp HUG Maillist Archive

(CAPI bug?) EDITOR-PANE initialized with contents of last EDITOR-PANE in system

Hi, LispWorks

I wrote a simple CAPI test app (source code in attach) which contains  
a EDITOR-PANE. I found when given no :TEXT or (:TEXT "") as initargs,  
it will has contents from last EDITOR-PANE in system.

Just try following form in your already running LW, you will find  
something in it:

(capi:contain (make-instance 'capi:editor-pane))

So how can I start a EDITOR-PANE with just empty text? Or it this a  
CAPI bug of LispWorks?

(All LW platform I can touch has this issue, at least on Mac OS X and  
win32)

--
Chun Tian (binghe)
NetEase.com, Inc.
P. R. China


Re: (CAPI bug?) EDITOR-PANE initialized with contents of last EDITOR-PANE in system

On Wed, 5 Nov 2008 15:13:22 +0800, "Chun Tian (binghe)" <binghe.lisp@gmail.com> wrote:

> Just try following form in your already running LW, you will find
> something in it:
>
> (capi:contain (make-instance 'capi:editor-pane))
>
> So how can I start a EDITOR-PANE with just empty text?

  (capi:contain (make-instance 'capi:editor-pane :buffer-name "foo"))

> Or it this a CAPI bug of LispWorks?

No.  The documentation clearly says:

  If BUFFER-NAME is not passed, then the editor-pane uses some
  existing buffer.

Cheers,
Edi.


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