[PATCH v3 1/4] emacs: Let the user choose where to compose new mails
Aaron Ecay
aaronecay at gmail.com
Sun Dec 25 20:54:41 PST 2011
On Thu, 15 Dec 2011 19:50:36 -0400, David Bremner <david at tethera.net> wrote:
> I think the problem is related to emacsclient.
>
> With 'm' I have the following behaviour:
>
> emacs -q --daemon
> M-x notmuch (to load variable definitions)
> M-x customize-variable notmuch-mua-compose-in
> (select compose in new window, save for current session)
> M-x notmuch
> m ;; new window is opened as it should be
> C-c C-c ;; frame is closed.
I just tried, and I cannot reproduce this behavior. IIUC, here is what
happened to you: you set nm-mua-compose-in to 'new-window. You began a
new message, this opened a new window as expected. Your emacs frame now
has two windows in it. You sent this message, which deleted the window
showing it. Your emacs frame was deleted as well, which made the other
window, showing notmuch-hello (or some other notmuch buffer, from which
you began writing the email message) disappear as well, unexpectedly.
Is this a correct description of what happened?
Here’s the recipe I used for replicating:
emacs -q --daemon
emacsclient -c
C-x b *scratch*
(add-to-list 'load-path "/path/to/notmuch/emacs/") C-j
(load-library "notmuch") C-j
C-x C-f /path/to/notmuch/emacs/notmuch-mua.el
M-x eval-buffer (in order to pick up changes not in byte-compiled file)
M-x customize-variable notmuch-mua-compose-in (set to 'new-window, save for session)
M-x notmuch
m (new window is created in current frame, below the window showing notmuch-hello)
(type mail)
C-c C-c (enter smtp settings, since emacs doesn’t know them)
(new window disappears, the window with notmuch-hello fills whole frame)
I also tried with notmuch-mua-compose-in set to 'new-frame, and got the
expected behavior (m -> create new frame, C-c C-c -> new frame is
deleted)
What version of emacs did you have this problem with? The window/frame
handling code has undergone several intrusive rewrites post-v.23, each
of which fixed some bugs and introduced others. The version I used is a
trunk build from Dec. 12-ish. It would be nice to pinpoint which emacs
versions/configurations show undesired behavior – this is a useful patch
and it should be included once we can be sure it will work correctly.
Thanks,
--
Aaron Ecay
More information about the notmuch
mailing list