diff options
Diffstat (limited to 'lib/doc')
-rw-r--r-- | lib/doc/jao-doc-view.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/doc/jao-doc-view.el b/lib/doc/jao-doc-view.el index 058fc04..95a22a6 100644 --- a/lib/doc/jao-doc-view.el +++ b/lib/doc/jao-doc-view.el @@ -69,10 +69,13 @@ (defun jao-doc-view--save-session-1 () (when (jao-doc-view--is-pdf) (jao-doc-view-save-session t))) +(defvar jao-doc-view-inhibit-session-save nil) + (defun jao-doc-view--save-session () (let ((inhibit-message t) (message-log-max nil)) - (jao-doc-view-save-session) + (when (not jao-doc-view-inhibit-session-save) + (jao-doc-view-save-session)) t)) (add-hook 'kill-emacs-query-functions #'jao-doc-view--save-session) |