Function: bibtex-end-of-entry

bibtex-end-of-entry is an interactive and byte-compiled function defined in bibtex.el.gz.

Signature

(bibtex-end-of-entry)

Documentation

Move to end of BibTeX entry (past the closing brace).

If inside an entry, move to the end of it, otherwise move to the end of the previous entry. Do not move if ahead of first entry. Return the new location of point.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/bibtex.el.gz
(defun bibtex-end-of-entry ()
  "Move to end of BibTeX entry (past the closing brace).
If inside an entry, move to the end of it, otherwise move to the end
of the previous entry.  Do not move if ahead of first entry.
Return the new location of point."
  (interactive)
  (let ((case-fold-search t)
        (pnt (point))
        (_ (bibtex-beginning-of-entry))
        (bounds (bibtex-valid-entry t)))
    (cond (bounds (goto-char (cdr bounds))) ; regular entry
          ;; @String or @Preamble
          ((setq bounds (or (bibtex-parse-string t) (bibtex-parse-preamble)))
           (goto-char (bibtex-end-of-string bounds)))
          ((looking-at bibtex-any-valid-entry-type)
           ;; Parsing of entry failed
           (user-error "Syntactically incorrect BibTeX entry starts here"))
          (t (if (called-interactively-p 'interactive)
		 (message "Not on a known BibTeX entry."))
             (goto-char pnt)))
    (point)))