Function: bookmark-maybe-historicize-string
bookmark-maybe-historicize-string is a macro defined in
bookmark.el.gz.
Signature
(bookmark-maybe-historicize-string STRING)
Documentation
Put STRING into the bookmark prompt history, if caller non-interactive.
We need this because sometimes bookmark functions are invoked from
menus, so completing-read never gets a chance to set bookmark-history.
Source Code
;; Defined in /usr/src/emacs/lisp/bookmark.el.gz
(defmacro bookmark-maybe-historicize-string (string)
"Put STRING into the bookmark prompt history, if caller non-interactive.
We need this because sometimes bookmark functions are invoked from
menus, so `completing-read' never gets a chance to set `bookmark-history'."
`(or
(called-interactively-p 'interactive)
(setq bookmark-history (cons ,string bookmark-history))))