[PATCH] emacs: Mark "notmuch-tree" command for autoloading

Subject: [PATCH] emacs: Mark "notmuch-tree" command for autoloading

Date: Tue, 26 Mar 2024 19:47:22 -0400

To: notmuch@notmuchmail.org

Cc: kaction@disroot.org

From: Dmitry Bogatov


Some people (e.g: me) prefer to read their email with threaded
representation by default.

Without this commit, I have to run "notmuch-search" (autoloaded)
first to get "notmuch-tree" loaded.
---
 emacs/notmuch-tree.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el
index 7fa403fc..718a3879 100644
--- a/emacs/notmuch-tree.el
+++ b/emacs/notmuch-tree.el
@@ -1195,6 +1195,7 @@ default sort order is defined by `notmuch-search-oldest-first'."
   (setq notmuch-search-oldest-first (not notmuch-search-oldest-first))
   (notmuch-tree-refresh-view))
 
+;;;###autoload
 (defun notmuch-tree (&optional query query-context target buffer-name
 			       open-target unthreaded parent-buffer oldest-first)
   "Display threads matching QUERY in tree view.
-- 
2.42.0

_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: