emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: buffer-offer-save, gnus and mh-e


From: Luc Teirlinck
Subject: Re: buffer-offer-save, gnus and mh-e
Date: Sun, 17 Apr 2005 15:25:58 -0500 (CDT)

Bill Wohler wrote:

   Just to be sure I'm understanding correctly, you'd like to see the
   following code in mh-e.el:(mh-folder-mode), right?

     (if (or mh-xemacs-flag (< emacs-major-version 22))
       (setq buffer-offer-save t))

Please wait a little bit with this.  After taking a closer look at the
code involved, I realized that things are more complex than I thought.
`compose-mail' is the wrong place to set `buffer-offer-save', since it
can easily be bypassed.  I believe that the various return values of
(get mail-user-agent 'composefunc) should be handled separately.

I do not know the various mail modes sufficiently to reliable take
care of this and the backward and XEmacs compatibility issues
complicate things and could make the involved code needlessly ugly.

So I now believe that I will leave `buffer-offer-save' a non-permanent
local.  (But maybe someone else could volunteer to do it and solve all
involved problems)

It would be easier if one did not adhere as strictly to the principle
that major modes never should touch permanent locals.  Then everything
that would be needed would be to add one single line in files.el.  But
Richard told me that there were absolutely no exceptions to that rule.

Sincerely,

Luc.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]