summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop-conf.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop-conf.el b/desktop-conf.el
index be3ea52..f0a53ee 100644
--- a/desktop-conf.el
+++ b/desktop-conf.el
@@ -205,7 +205,9 @@ no questions asked."
(defun desktop-also-save-bookmarks ()
"Save bookmarks if we are not already saving bookmarks."
(cond
- ((and (functionp #'bookmark-save) (not durand-saving-bookmarks))
+ ((and (functionp #'bookmark-save)
+ (or (not (boundp 'durand-saving-bookmarks))
+ (not durand-saving-bookmarks)))
(let ((inhibit-message t)) (bookmark-save)))))
(add-hook 'desktop-save-hook #'desktop-also-save-bookmarks)