update packages
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
;; along with Notmuch. If not, see <https://www.gnu.org/licenses/>.
|
||||
;;
|
||||
;; Authors: Carl Worth <cworth@cworth.org>
|
||||
;; Package-Version: 20250620.1557
|
||||
;; Package-Revision: 63665f1ebd6e
|
||||
;; Homepage: https://notmuchmail.org
|
||||
|
||||
;;; Commentary:
|
||||
@@ -126,13 +128,17 @@ there will be called at other points of notmuch execution."
|
||||
:type 'file
|
||||
:group 'notmuch)
|
||||
|
||||
(defcustom notmuch-search-hook '(notmuch-hl-line-mode)
|
||||
(defcustom notmuch-search-hook nil
|
||||
"List of functions to call when notmuch displays the search results."
|
||||
:type 'hook
|
||||
:options '(notmuch-hl-line-mode)
|
||||
:group 'notmuch-search
|
||||
:group 'notmuch-hooks)
|
||||
|
||||
(defcustom notmuch-hl-line t
|
||||
"Use hl-line-mode to highlight current thread / message"
|
||||
:type 'boolean
|
||||
:group 'notmuch)
|
||||
|
||||
;;; Mime Utilities
|
||||
|
||||
(defun notmuch-foreach-mime-part (function mm-handle)
|
||||
@@ -412,6 +418,8 @@ Complete list of currently available key bindings:
|
||||
(add-to-invisibility-spec (cons 'ellipsis t))
|
||||
(setq truncate-lines t)
|
||||
(setq buffer-read-only t)
|
||||
(when (boundp 'untrusted-content)
|
||||
(setq untrusted-content t))
|
||||
(setq imenu-prev-index-position-function
|
||||
#'notmuch-search-imenu-prev-index-position-function)
|
||||
(setq imenu-extract-index-name-function
|
||||
@@ -925,6 +933,16 @@ sets the :orig-tag property."
|
||||
(notmuch-sexp-parse-partial-list 'notmuch-search-append-result
|
||||
results-buf))
|
||||
(with-current-buffer results-buf
|
||||
(when (and notmuch-hl-line
|
||||
;; If we know where the cursor will end up (from
|
||||
;; the call to notmuch-search), avoid redrawing the
|
||||
;; hl-line overlay until the buffer is sufficiently
|
||||
;; filled. This check is intended as an
|
||||
;; optimization to reduce flicker.
|
||||
(>=
|
||||
(line-number-at-pos (point-max) t)
|
||||
(or notmuch-search-target-line -1)))
|
||||
(notmuch-hl-line-mode))
|
||||
(notmuch--search-hook-wrapper)))))
|
||||
|
||||
;;; Commands (and some helper functions used by them)
|
||||
@@ -1075,10 +1093,10 @@ the configured default sort order."
|
||||
|
||||
(let* ((query (or query (notmuch-read-query "Notmuch search: ")))
|
||||
(buffer (get-buffer-create (notmuch-search-buffer-title query))))
|
||||
(if no-display
|
||||
(set-buffer buffer)
|
||||
(pop-to-buffer-same-window buffer))
|
||||
(set-buffer buffer)
|
||||
(notmuch-search-mode)
|
||||
(unless no-display
|
||||
(pop-to-buffer-same-window buffer))
|
||||
;; Don't track undo information for this buffer
|
||||
(setq buffer-undo-list t)
|
||||
(setq notmuch-search-query-string query)
|
||||
|
||||
Reference in New Issue
Block a user