[PATCH v3 1/4] emacs: Let the user choose where to compose new mails
schnouki at schnouki.net
Sun Apr 22 15:25:38 PDT 2012
Le 15 avril 2012 à 16:52 CEST, David Bremner a écrit :
> Jameson Graef Rollins <jrollins at finestructure.net> writes:
>> I think the issues that David was experiencing have to do with flakiness
>> in emacs's dedicated windows, not in this patch itself.
> Did you have a change to investigate this as proposed in
> id:"87zke0aifa.fsf at thor.loria.fr"?
Sorry for the delay. I did investigate a little bit, but I did not try
to write a patch to fix the wrong behaviour in Emacs 23.
AFAICT, Emacs 23 is just buggy in this case. By reading the code of
message-send-and-exit and message-bury , here is what happens when
you call message-send-buffer-and-exit with message-kill-buffer-on-exit
set to nil:
- message is sent
- buffer is buried with burry-buffer
- message-bury: if the window is dedicated and its frame not the only
visible frame, then this frame is deleted
which explains what happens in Emacs 23 both in daemon and non-daemon
In Emacs 24 , here is what happens:
- message is sent
- message-bury: buffer is buried with bury-buffer
which is (obviously?) correct.
Really, this looks like a bug in Emacs 23 to me. Emacs 24 has been fixed
by Gnus commits  and  (maybe  is enough, I didn't try). Users
of Emacs 23 can probably just use an up-to-date version of Gnus to have
this issue fixed.
So I'm not sure it would make sense to try to come up with a workaround
in my patch, nor if it would be worth it. Maybe just adding a message
suggesting Emacs 23 users to enable message-kill-buffer-on-exit if they
use the Gnus version shipped with Emacs?
Other than that, Jameson's commit  is exactly the same as the one in
my tree with a better commit message, so I'm in favor of pulling it.
 id:"1334436137-6099-1-git-send-email-jrollins at finestructure.net"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 489 bytes
Desc: not available
More information about the notmuch