From 7171e77d4d1e83fdf9c7a56987b98bce3f181598 Mon Sep 17 00:00:00 2001 From: Jameson Rollins Date: Sat, 6 Nov 2010 16:49:28 -0400 Subject: Don't use kill-this-buffer to kill notmuch emacs buffers kill-this-buffer appears to be a function intended specifically for use in the menu bar, and causes problem killing notmuch buffers when multiple frames have been used. This patch replaces kill-this-buffer with notmuch-kill-this-buffer, which in turn just simply calls (kill-buffer (current-buffer)). --- emacs/notmuch-lib.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'emacs/notmuch-lib.el') diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index abcbfa1f..dfdcd052 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -87,6 +87,11 @@ the user hasn't set this variable with the old or new value." "Return the user.primary_email value from the notmuch configuration." (notmuch-config-get "user.primary_email")) +(defun notmuch-kill-this-buffer () + "Kill the current buffer." + (interactive) + (kill-buffer (current-buffer))) + ;; ;; XXX: This should be a generic function in emacs somewhere, not -- cgit v1.2.3