Lisp HUG Maillist Archive

Delivering editor panes

Hi!

I have an application which uses two editor panes. If I have used
these panes and try to close the delivered application a console
window pops up and asks me whether I want to save the modified
buffers. How can I avoid this?

Thanks,
Edi.


Re: Delivering editor panes

Unable to parse email body. Email id is 977

RE: Delivering editor panes

> -----Original Message-----
> From: owner-lisp-hug@xanalys.com 
> [mailto:owner-lisp-hug@xanalys.com] On Behalf Of Nick Levine
> Sent: Mittwoch, 19. März 2003 16:32
> To: edi@agharta.de
> Cc: lisp-hug@xanalys.com
> Subject: Re: Delivering editor panes
> 
> 
> Edi,
> 
> I have not tested this out of context but it should work...
> 
> (defmethod capi:call-editor :after ((self capi:editor-pane) command)
>   (let ((buffer (capi:editor-pane-buffer self)))
>     (editor:buffer-not-modified-command nil buffer)))
> 
> - nick

Thanks Nick,

that seems to work for me.

Best regards,
Edi.


Re: Delivering editor panes

Edi Weitz <edi@agharta.de> writes:

> I have an application which uses two editor panes. If I have used
> these panes and try to close the delivered application a console
> window pops up and asks me whether I want to save the modified
> buffers. How can I avoid this?

Coming back to this old topic: Although Nick's solution (which was
posted here) worked for me initially I still ran into problems
sometimes.

After sniffing around with APROPOS a bit I now came up with this
solution which _seems_ to work (with 4.2.7):

  (defadvice (editor::confirm-exit-editor confirm :around)
      ()
    t)

Of course, you'll only want this in your delivered application.

Edi.


Updated at: 2020-12-10 09:00 UTC