diff options
author | jao <jao@gnu.org> | 2021-05-05 02:20:14 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-05-05 02:20:14 +0100 |
commit | 119147eafdc798d4c9b2dfc160d9fc6972a298bd (patch) | |
tree | 264dd3f02c428cae08674e07c88381f8ca29d967 /lib/doc | |
parent | 5e519e0617427eff39578e16c36487ee66b5acd9 (diff) | |
download | elibs-119147eafdc798d4c9b2dfc160d9fc6972a298bd.tar.gz elibs-119147eafdc798d4c9b2dfc160d9fc6972a298bd.tar.bz2 |
pdf: inhibit saving sessions while opening them
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) |