X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-tree.el;h=28c9372e8e197f37febc0948398b5c3b7c8145cd;hb=471f161850e743ee558ab826ccfc019746baeebe;hp=7b1e34ca994dfa72801d839b3b9a95266ece5cd4;hpb=bad0549da4ad7ae0d9788e5c3f08f7c7a2b7cb59;p=notmuch diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el index 7b1e34ca..28c9372e 100644 --- a/emacs/notmuch-tree.el +++ b/emacs/notmuch-tree.el @@ -359,8 +359,8 @@ FUNC." (define-key map " " 'notmuch-tree-scroll-or-next) (define-key map (kbd "DEL") 'notmuch-tree-scroll-message-window-back) (define-key map "e" 'notmuch-tree-resume-message) - map)) -(fset 'notmuch-tree-mode-map notmuch-tree-mode-map) + map) + "Keymap for \"notmuch tree\" buffers.") (defun notmuch-tree-get-message-properties () "Return the properties of the current message as a plist. @@ -531,9 +531,10 @@ NOT change the database." (let ((buffer (current-buffer))) (when (and (window-live-p notmuch-tree-message-window) (eq (window-buffer notmuch-tree-message-window) buffer)) - ;; We do not want an error if this is the sole window in the - ;; frame and I do not know how to test for that in emacs pre - ;; 24. Hence we just ignore-errors. + ;; We could check whether this is the only window in its frame, + ;; but simply ignoring the error that is thrown otherwise is + ;; what we had to do for Emacs 24 and we stick to that because + ;; it is still the simplest approach. (ignore-errors (delete-window notmuch-tree-message-window)))))