Function: bookmark-grok-file-format-version

bookmark-grok-file-format-version is a byte-compiled function defined in bookmark.el.gz.

This function is obsolete since 27.1.

Signature

(bookmark-grok-file-format-version)

Documentation

Return an integer which is the file-format version of this bookmark file.

This expects to be called from point-min in a bookmark file.

Probably introduced at or before Emacs version 27.1.

Source Code

;; Defined in /usr/src/emacs/lisp/bookmark.el.gz
(defun bookmark-grok-file-format-version ()
  "Return an integer which is the file-format version of this bookmark file.
This expects to be called from `point-min' in a bookmark file."
  (declare (obsolete nil "27.1"))
  (if (looking-at "^;;;;")
      (save-excursion
        (save-match-data
          (re-search-forward "[0-9]")
          (forward-char -1)
          (read (current-buffer))))
    ;; Else this is format version 0, the original one, which didn't
    ;; even have version stamps.
    0))