Function: bookmark-alist-from-buffer

bookmark-alist-from-buffer is a byte-compiled function defined in bookmark.el.gz.

Signature

(bookmark-alist-from-buffer)

Documentation

Return a bookmark-alist from the current buffer.

The buffer must of course contain bookmark format information. Does not care from where in the buffer it is called, and does not affect point.

Source Code

;; Defined in /usr/src/emacs/lisp/bookmark.el.gz
(defun bookmark-alist-from-buffer ()
  "Return a `bookmark-alist' from the current buffer.
The buffer must of course contain bookmark format information.
Does not care from where in the buffer it is called, and does not
affect point."
  (save-excursion
    (goto-char (point-min))
    (if (search-forward bookmark-end-of-version-stamp-marker nil t)
        (read (current-buffer))
      (if buffer-file-name
          (error "File not in bookmark format: %s" buffer-file-name)
        (error "Buffer not in bookmark format: %s" (buffer-name))))))