Skip to content

Commit

Permalink
mu4e-view.el: set bookmark-make-record-function later
Browse files Browse the repository at this point in the history
Otherwise, seems it's overridden. Fixes #2718.
  • Loading branch information
djcb committed Jun 27, 2024
1 parent 67ea98e commit a5a5897
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mu4e/mu4e-view.el
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,9 @@ As a side-effect, a message that is being viewed loses its
(with-current-buffer gnus-article-buffer
(let ((inhibit-read-only t))
(run-hooks 'mu4e-view-rendered-hook))
;; support bookmarks.
(setq-local bookmark-make-record-function
#'mu4e--make-bookmark-record)
;; only needed on some setups; #2683
(goto-char (point-min))))

Expand Down Expand Up @@ -1074,10 +1077,6 @@ Based on Gnus' article-mode."
(mu4e-compose-minor-mode)
(setq buffer-undo-list t) ;; don't record undo info

;; support bookmarks.
(set (make-local-variable 'bookmark-make-record-function)
'mu4e--make-bookmark-record)

;; autopair mode gives error when pressing RET
;; turn it off
(when (boundp 'autopair-dont-activate)
Expand Down

0 comments on commit a5a5897

Please sign in to comment.