From: Jonas Bernoulli Date: Mon, 16 Nov 2020 21:28:35 +0000 (+0100) Subject: emacs: remove unnecessary notmuch-tree-button-activate X-Git-Tag: 0.32_rc0~182 X-Git-Url: https://git.cworth.org/git?p=notmuch;a=commitdiff_plain;h=6db692302d1fafbc5337beb2e17d178744c097e8 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: f8bdba37d3f4c877e05e17b5b1c7d2d512106538 emacs: tree: remove binding for pressing button in message pane --- diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el index 28c9372e..71b6387a 100644 --- a/emacs/notmuch-tree.el +++ b/emacs/notmuch-tree.el @@ -267,14 +267,6 @@ open (if the message pane is closed it does nothing)." (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) "Close message pane and execute FUNC.