summaryrefslogtreecommitdiffhomepage
path: root/lib/eos
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-05-05 02:20:14 +0100
committerjao <jao@gnu.org>2021-05-05 02:20:14 +0100
commit119147eafdc798d4c9b2dfc160d9fc6972a298bd (patch)
tree264dd3f02c428cae08674e07c88381f8ca29d967 /lib/eos
parent5e519e0617427eff39578e16c36487ee66b5acd9 (diff)
downloadelibs-119147eafdc798d4c9b2dfc160d9fc6972a298bd.tar.gz
elibs-119147eafdc798d4c9b2dfc160d9fc6972a298bd.tar.bz2
pdf: inhibit saving sessions while opening them
Diffstat (limited to 'lib/eos')
-rw-r--r--lib/eos/jao-afio.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/eos/jao-afio.el b/lib/eos/jao-afio.el
index 14794fd..f62c314 100644
--- a/lib/eos/jao-afio.el
+++ b/lib/eos/jao-afio.el
@@ -72,9 +72,10 @@
;;;###autoload
(defun jao-afio-open-pdf-session ()
(interactive)
- (dolist (doc (jao-doc-view-session))
- (when (and (file-exists-p doc) (y-or-n-p (format "Open %s? " doc)))
- (jao-open-doc doc))))
+ (let ((jao-doc-view-inhibit-session-save t))
+ (dolist (doc (jao-doc-view-session))
+ (when (and (file-exists-p doc) (y-or-n-p (format "Open %s? " doc)))
+ (jao-open-doc doc)))))
(defun jao-afio-open-doc ()
(interactive)