emacs: remove unnecessary notmuch-tree-button-activate

Since [1: f8bdba37] no key is bound to this command and it is
redundant because the behavior of `push-command' is identical
when called as a command.

1: f8bdba37d3
   emacs: tree: remove binding for pressing button in message pane
This commit is contained in:
Jonas Bernoulli 2020-11-16 22:28:35 +01:00 committed by David Bremner
parent e7b90eedad
commit 6db692302d

View file

@ -267,14 +267,6 @@ open (if the message pane is closed it does nothing)."
(symbol-value sym)) (symbol-value sym))
(symbol-value sym))) (symbol-value sym)))
(defun notmuch-tree-button-activate (&optional button)
"Activate BUTTON or button at point.
This function does not give an error if there is no button."
(interactive)
(let ((button (or button (button-at (point)))))
(when button (button-activate button))))
(defun notmuch-tree-close-message-pane-and (func) (defun notmuch-tree-close-message-pane-and (func)
"Close message pane and execute FUNC. "Close message pane and execute FUNC.