From 119147eafdc798d4c9b2dfc160d9fc6972a298bd Mon Sep 17 00:00:00 2001 From: jao Date: Wed, 5 May 2021 02:20:14 +0100 Subject: pdf: inhibit saving sessions while opening them --- lib/eos/jao-afio.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/eos') 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) -- cgit v1.2.3