diff options
Diffstat (limited to 'lib/doc/jao-doc-session.el')
-rw-r--r-- | lib/doc/jao-doc-session.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/doc/jao-doc-session.el b/lib/doc/jao-doc-session.el index 9a3193f..3eee781 100644 --- a/lib/doc/jao-doc-session.el +++ b/lib/doc/jao-doc-session.el @@ -43,14 +43,14 @@ (let ((file (or file jao-doc-session-file))) (jao-doc-session--read-file file))) -(defun jao-doc-session-save (&optional skip-current) +(defun jao-doc-session-save (&optional skip-current force) (interactive) (let ((docs '()) (cb (and skip-current (current-buffer)))) (dolist (b (buffer-list)) (when-let (fn (and (not (eq cb b)) (jao-doc-session-is-doc b))) (add-to-list 'docs fn))) - (when (> (length docs) 0) + (when (or force (> (length docs) 0)) (jao-doc-session--save-to-file jao-doc-session-file docs)))) (defun jao-doc-session--save-session () |