update packages
This commit is contained in:
@@ -760,7 +760,9 @@ The screen may be customized via `\\[customize]'.
|
||||
Complete list of currently available key bindings:
|
||||
|
||||
\\{notmuch-hello-mode-map}"
|
||||
(setq notmuch-buffer-refresh-function #'notmuch-hello-update))
|
||||
(setq notmuch-buffer-refresh-function #'notmuch-hello-update)
|
||||
(when (boundp 'untrusted-content)
|
||||
(setq untrusted-content t)))
|
||||
|
||||
;;; Inserters
|
||||
|
||||
|
||||
@@ -379,7 +379,9 @@ Typically this is added to `notmuch-mua-send-hook'."
|
||||
|
||||
(define-derived-mode notmuch-message-mode message-mode "Message[Notmuch]"
|
||||
"Notmuch message composition mode. Mostly like `message-mode'."
|
||||
(notmuch-address-setup))
|
||||
(notmuch-address-setup)
|
||||
(when (boundp 'untrusted-content)
|
||||
(setq untrusted-content t)))
|
||||
|
||||
(put 'notmuch-message-mode 'flyspell-mode-predicate 'mail-mode-flyspell-verify)
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
(define-package "notmuch" "20250218.1254" "run notmuch within emacs" 'nil :commit "0e10ca3a625c25c0238ecca2767aab7035b88a22" :url "https://notmuchmail.org")
|
||||
;; Local Variables:
|
||||
;; no-byte-compile: t
|
||||
;; End:
|
||||
;; -*- no-byte-compile: t; lexical-binding: nil -*-
|
||||
(define-package "notmuch" "20250620.1557"
|
||||
"Run notmuch within emacs."
|
||||
()
|
||||
:url "https://notmuchmail.org"
|
||||
:commit "63665f1ebd6eff7753b7798add657fd6dbd110d6"
|
||||
:revdesc "63665f1ebd6e")
|
||||
|
||||
@@ -104,7 +104,7 @@ notmuch-show functions such as
|
||||
|
||||
Finally, if this variable is set to nil, no header is
|
||||
displayed."
|
||||
:type '(choice (const :tag "No header" ni)
|
||||
:type '(choice (const :tag "No header" nil)
|
||||
(const :tag "Subject" t)
|
||||
(string :tag "Format")
|
||||
(function :tag "Function"))
|
||||
@@ -1696,6 +1696,8 @@ All currently available key bindings:
|
||||
(setq notmuch-buffer-refresh-function #'notmuch-show-refresh-view)
|
||||
(setq buffer-read-only t)
|
||||
(setq truncate-lines t)
|
||||
(when (boundp 'untrusted-content)
|
||||
(setq untrusted-content t))
|
||||
(setq imenu-prev-index-position-function
|
||||
#'notmuch-show-imenu-prev-index-position-function)
|
||||
(setq imenu-extract-index-name-function
|
||||
|
||||
@@ -1091,9 +1091,12 @@ Complete list of currently available key bindings:
|
||||
|
||||
\\{notmuch-tree-mode-map}"
|
||||
(setq notmuch-buffer-refresh-function #'notmuch-tree-refresh-view)
|
||||
(hl-line-mode 1)
|
||||
(when notmuch-hl-line
|
||||
(hl-line-mode 1))
|
||||
(setq buffer-read-only t)
|
||||
(setq truncate-lines t)
|
||||
(when (boundp 'untrusted-content)
|
||||
(setq untrusted-content t))
|
||||
(when notmuch-tree-outline-enabled (notmuch-tree-outline-mode 1)))
|
||||
|
||||
(defvar notmuch-tree-process-exit-functions nil
|
||||
@@ -1121,6 +1124,8 @@ object, and with the tree results buffer as the current buffer.")
|
||||
(unless (= exit-status 0)
|
||||
(insert (format " (process returned %d)" exit-status)))
|
||||
(insert "\n"))))
|
||||
(when (and notmuch-hl-line (= exit-status 0))
|
||||
(notmuch-hl-line-mode))
|
||||
(run-hook-with-args 'notmuch-tree-process-exit-functions proc))))))
|
||||
|
||||
(defun notmuch-tree-process-filter (proc string)
|
||||
@@ -1136,7 +1141,10 @@ object, and with the tree results buffer as the current buffer.")
|
||||
(goto-char (point-max))
|
||||
(insert string))
|
||||
(notmuch-sexp-parse-partial-list 'notmuch-tree-insert-forest-thread
|
||||
results-buf)))))
|
||||
results-buf))
|
||||
(with-current-buffer results-buf
|
||||
(when notmuch-hl-line
|
||||
(notmuch-hl-line-mode))))))
|
||||
|
||||
(defun notmuch-tree-worker (basic-query &optional query-context target
|
||||
open-target unthreaded oldest-first
|
||||
|
||||
@@ -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