diff options
author | Jose Antonio Ortega Ruiz <jao@imladris.local> | 2017-10-31 05:16:08 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@imladris.local> | 2017-10-31 05:16:08 +0100 |
commit | edaa188741df91e88868b7546d70bc83316de802 (patch) | |
tree | dff01a884112d8df4d2073be2f7985bd3bc696e7 | |
parent | 34e0fa1c9028b83e74f6a2b7f422d1031b708318 (diff) | |
download | elibs-edaa188741df91e88868b7546d70bc83316de802.tar.gz elibs-edaa188741df91e88868b7546d70bc83316de802.tar.bz2 |
doc view nit
-rw-r--r-- | misc/jao-doc-view.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/jao-doc-view.el b/misc/jao-doc-view.el index b90a397..a4a16c5 100644 --- a/misc/jao-doc-view.el +++ b/misc/jao-doc-view.el @@ -66,6 +66,7 @@ (fname (buffer-file-name)) (p (when fname (gethash (expand-file-name fname) bmks 1)))) (when (and (numberp p) (> p 1)) + (message "Found bookmark at page %d" p) (ignore-errors (pdf-view-goto-page p)))))) (defun jao-doc-view-open (file) @@ -110,7 +111,8 @@ (jao-doc-view--save-bmk) (add-to-list 'docs (buffer-file-name))))) (jao-doc-view--save-bmks) - (jao-doc-view--save-to-file jao-doc-view-session-file docs))) + (when (> (length docs) 0) + (jao-doc-view--save-to-file jao-doc-view-session-file docs)))) (defun jao-doc-view--save-session-1 () (when (equalp major-mode 'pdf-view-mode) |