Browse Source

Add falesafe to recently-write

master
10sr 6 years ago
parent
commit
b88d99a3ad
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      emacs.el

+ 2
- 0
emacs.el View File

@@ -1871,6 +1871,8 @@ This mode is a simplified version of `adoc-mode'."


(defun recently-write () (defun recently-write ()
"Write to file." "Write to file."
;; Failsafe to avoid purging all existing entries
(assert recently-list)
(with-temp-buffer (with-temp-buffer
(prin1 recently-list (prin1 recently-list
(current-buffer)) (current-buffer))


Loading…
Cancel
Save