Function: bibtex-beginning-of-entry
bibtex-beginning-of-entry is an interactive and byte-compiled function
defined in bibtex.el.gz.
Signature
(bibtex-beginning-of-entry)
Documentation
Move to beginning of BibTeX entry (beginning of line).
If inside an entry, move to the beginning of it, otherwise move to the beginning of the previous entry. If point is ahead of all BibTeX entries move point to the beginning of buffer. Return the new location of point.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/bibtex.el.gz
(defun bibtex-beginning-of-entry ()
"Move to beginning of BibTeX entry (beginning of line).
If inside an entry, move to the beginning of it, otherwise move to the
beginning of the previous entry. If point is ahead of all BibTeX entries
move point to the beginning of buffer. Return the new location of point."
;; This command is similar to `beginning-of-defun', but with historical
;; differences.
;; - It does not move point to the previous entry if point is already
;; at the beginning of an entry
;; - It does not take an optional ARG that moves backward to the beginning
;; of a defun ARG times.
;; - It returns point and the code relies on this.
(interactive)
(beginning-of-line)
;; `bibtex-any-valid-entry-type' would fail if users "disable"
;; an entry by choosing an invalid entry type.
(or (looking-at bibtex-any-entry-maybe-empty-head)
(re-search-backward bibtex-any-entry-maybe-empty-head nil 'move))
(point))