]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: remove unnecessary notmuch-tree-button-activate
authorJonas Bernoulli <jonas@bernoul.li>
Mon, 16 Nov 2020 21:28:35 +0000 (22:28 +0100)
committerDavid Bremner <david@tethera.net>
Sun, 6 Dec 2020 20:21:15 +0000 (16:21 -0400)
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

emacs/notmuch-tree.el

index 28c9372e8e197f37febc0948398b5c3b7c8145cd..71b6387a43635d0f9f415b151bd5342d79e0a1cb 100644 (file)
@@ -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.