[PATCH 2/4] emacs: Support a message-mode switch function in notmuch-mua
Thomas Jost
schnouki at schnouki.net
Tue Oct 25 00:39:47 PDT 2011
On Tue, 18 Oct 2011 07:46:48 -0700, Jameson Graef Rollins <jrollins at finestructure.net> wrote:
> On Tue, 11 Oct 2011 21:49:48 +0200, Thomas Jost <schnouki at schnouki.net> wrote:
> > > Another question about this feature: how do you make the window
> > > (frame) go away after the email is sent?
> >
> > I do this:
> > (add-hook 'message-sent-hook 'delete-frame)
>
> Hey, Thomas. Would it be possible to add this frame/window close
> functionality directly into this new configuration? It would be really
> nice if we could work it out such that if you have new mail buffers open
> in a new window/frame that the window/frame is automatically closed once
> the message is sent.
Yes, it's possible using dedicated windows (for details: C-h f
set-window-dedicated-p). But it's a little trickier to use: if you call
it from a switch-function, it doesn't work when forwarding a message.
There's probably something in message-forward that causes the dedicated
flag to be reset to nil, but I could not find what.
So instead I wrote a little workaround that may be easier to use. I'll
send the commit as a reply.
Regards,
--
Thomas/Schnouki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20111025/796b70a0/attachment.pgp>
More information about the notmuch
mailing list