mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-03 16:14:11 +01:00
Replace without-restriction
with save-restriction
37c022ae
("Use `without-restriction` in `with-temporary-notmuch-message-buffer`", 2024-03-14)
introduced a fix for draft saving in a way which is supported on Emacs
29 and above only. Replace this with a construct which we have used
before, so that we keep the same compatibility level.
This commit is contained in:
parent
37c022aea0
commit
b526c5ef0e
1 changed files with 2 additions and 1 deletions
|
@ -145,7 +145,8 @@ Otherwise set it according to `notmuch-fcc-dirs'."
|
|||
|
||||
(defmacro with-temporary-notmuch-message-buffer (&rest body)
|
||||
"Set-up a temporary copy of the current message-mode buffer."
|
||||
`(without-restriction
|
||||
`(save-restriction
|
||||
(widen)
|
||||
(let ((case-fold-search t)
|
||||
(buf (current-buffer))
|
||||
(mml-externalize-attachments message-fcc-externalize-attachments))
|
||||
|
|
Loading…
Reference in a new issue