Commit 0df23b73 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

Fix recent remember-diary-extract-entries change

* lisp/textmodes/remember.el (remember-diary-extract-entries): Use
`remember-diary-file' over `diary-file'.
parent 61b716bd
Pipeline #8874 failed with stages
in 31 minutes and 40 seconds
......@@ -549,6 +549,8 @@ If this is nil, then `diary-file' will be used instead."
:type 'regexp
:version "28.1")
(defvar diary-file)
;;;###autoload
(defun remember-diary-extract-entries ()
"Extract diary entries from the region based on `remember-diary-regexp'."
......@@ -561,7 +563,8 @@ If this is nil, then `diary-file' will be used instead."
(diary-make-entry (mapconcat 'identity list "\n")
nil remember-diary-file)
(when remember-save-after-remembering
(with-current-buffer (find-buffer-visiting diary-file)
(with-current-buffer (find-buffer-visiting (or remember-diary-file
diary-file))
(save-buffer))))
nil))) ;; Continue processing
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment