summaryrefslogtreecommitdiffhomepage
path: root/lib/eos
diff options
context:
space:
mode:
Diffstat (limited to 'lib/eos')
-rw-r--r--lib/eos/jao-afio.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/eos/jao-afio.el b/lib/eos/jao-afio.el
index 092a902..f57838a 100644
--- a/lib/eos/jao-afio.el
+++ b/lib/eos/jao-afio.el
@@ -51,11 +51,11 @@
;;; session openers
;;;###autoload
-(defun jao-afio-open-pdf-session ()
+(defun jao-afio-open-pdf-session (&optional docs)
(interactive)
(let ((jao-doc-session-inhibit-save t))
- (dolist (doc (jao-doc-session))
- (when (and (file-exists-p doc) (y-or-n-p (format "Open %s? " doc)))
+ (dolist (doc (or docs (jao-doc-session)))
+ (when (file-exists-p doc)
(jao-open-doc doc)
(other-window 1)))
(other-window 1)))
@@ -68,8 +68,9 @@
(if (car docs)
(progn (switch-to-buffer (car docs))
(switch-to-buffer-other-window (or (cadr docs) (car docs))))
- (when (and (jao-doc-session) (y-or-n-p "Load saved session? "))
- (jao-afio-open-pdf-session)))))
+ (when-let (docs (jao-doc-session))
+ (when (y-or-n-p (format "Load saved session? (%d docs)" (length docs)))
+ (jao-afio-open-pdf-session docs))))))
(declare w3m "w3m")
(declare w3m-alive-p "w3m")