Function: bookmark-bmenu-load

bookmark-bmenu-load is an interactive and byte-compiled function defined in bookmark.el.gz.

Signature

(bookmark-bmenu-load)

Documentation

Load bookmarks from a file and rebuild the bookmark menu-buffer.

Prompt for a file, with the default choice being the value of bookmark-default-file.

With a prefix argument, replace the current ambient bookmarks
(i.e., the ones in bookmark-alist) with the ones from the selected
file and make that file be the new value of bookmark-default-file. In other words, a prefix argument means "switch over to the bookmark universe defined in the loaded file". Without a prefix argument, just add the loaded bookmarks into the current ambient set.

See the documentation for bookmark-load for more details; see also the related behaviors of bookmark-save and bookmark-bmenu-save.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/bookmark.el.gz
(defun bookmark-bmenu-load ()
  "Load bookmarks from a file and rebuild the bookmark menu-buffer.
Prompt for a file, with the default choice being the value of
`bookmark-default-file'.

With a prefix argument, replace the current ambient bookmarks
(i.e., the ones in `bookmark-alist') with the ones from the selected
file and make that file be the new value of `bookmark-default-file'.
In other words, a prefix argument means \"switch over to the bookmark
universe defined in the loaded file\".  Without a prefix argument,
just add the loaded bookmarks into the current ambient set.

See the documentation for `bookmark-load' for more details; see also
the related behaviors of `bookmark-save' and `bookmark-bmenu-save'."
  (interactive nil bookmark-bmenu-mode)
  (bookmark-bmenu-ensure-position)
  (save-excursion
    (save-window-excursion
      ;; This will call `bookmark-bmenu-list'
      (call-interactively 'bookmark-load))))