Function: bookmark-time-to-save-p

bookmark-time-to-save-p is a byte-compiled function defined in bookmark.el.gz.

Signature

(bookmark-time-to-save-p &optional FINAL-TIME)

Documentation

Return t if it is time to save bookmarks to disk, nil otherwise.

Optional argument FINAL-TIME means this is being called when Emacs is being killed, so save even if bookmark-save-flag is a number and is greater than bookmark-alist-modification-count.

Source Code

;; Defined in /usr/src/emacs/lisp/bookmark.el.gz
(defun bookmark-time-to-save-p (&optional final-time)
  "Return t if it is time to save bookmarks to disk, nil otherwise.
Optional argument FINAL-TIME means this is being called when Emacs
is being killed, so save even if `bookmark-save-flag' is a number and
is greater than `bookmark-alist-modification-count'."
  ;; By Gregory M. Saunders <saunders{_AT_}cis.ohio-state.edu>
  (cond (final-time
	 (and (> bookmark-alist-modification-count 0)
	      bookmark-save-flag))
	((numberp bookmark-save-flag)
	 (>= bookmark-alist-modification-count bookmark-save-flag))
	(t
	 nil)))