Commit 38173af1 authored by Gabriel do Nascimento Ribeiro's avatar Gabriel do Nascimento Ribeiro Committed by Lars Ingebrigtsen

Respect remember-save-after-remembering on remember-diary-extract-entries

* lisp/textmodes/remember.el (remember-diary-extract-entries):
Save automatically if `remember-save-after-remembering' is non-nil
(bug#45811).
parent edf6350e
Pipeline #8865 passed with stages
in 9 minutes and 47 seconds
......@@ -559,7 +559,10 @@ If this is nil, then `diary-file' will be used instead."
(push (remember-diary-convert-entry (match-string 1)) list))
(when list
(diary-make-entry (mapconcat 'identity list "\n")
nil remember-diary-file))
nil remember-diary-file)
(when remember-save-after-remembering
(with-current-buffer (find-buffer-visiting diary-file)
(save-buffer))))
nil))) ;; Continue processing
;;; Internal Functions:
......
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