aboutsummaryrefslogtreecommitdiff
path: root/bindings/python
diff options
context:
space:
mode:
authorMichal Sojka <sojkam1@fel.cvut.cz>2015-12-21 10:41:15 +0100
committerDavid Bremner <david@tethera.net>2016-01-01 10:58:19 -0400
commit570c0aeb40bd0c3af8174624a55e968f62c44f09 (patch)
tree08e46757202534a88f3a24b0235bc65f7a2dff04 /bindings/python
parentb645f416059f128ea49991745b648c7ffa045ccc (diff)
emacs: Improve notmuch-message-mode initialization
Recent addition of notmuch-message-mode introduced several problems: 1. When message-setup-hook is used to set buffer local variables, these settings are not effective, because all buffer local variables are immediately erased by notmuch-message-mode initialization. 2. message-mode-hook gets invoked twice - first when message-mail invokes message-mode and second when notmuch-mua-mail invokes notmuch-message-mode. This commit fixes these problems by replacing a call to message-mail with notmuch-specific code that is (hopefully) equivalent to message-mail functionality before introduction of notmuch-message-mode. We first initialize notmuch-message-mode with notmuch-mua-pop-to-buffer, which is a modified version of message-pop-to-buffer and then call message-setup-1, which is the only functionality of message-mail that is needed for notmuch.
Diffstat (limited to 'bindings/python')
0 files changed, 0 insertions, 0 deletions