aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/textmodes/bibtex.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el
index dba40f10559..b85d63e4dff 100644
--- a/lisp/textmodes/bibtex.el
+++ b/lisp/textmodes/bibtex.el
@@ -909,7 +909,7 @@ If `bibtex-expand-strings' is non-nil, BibTeX strings are expanded
909for generating the URL. 909for generating the URL.
910Set this variable before loading BibTeX mode. 910Set this variable before loading BibTeX mode.
911 911
912The following is a complex example, see http://link.aps.org/linkfaq.html. 912The following is a complex example, see URL `http://link.aps.org/'.
913 913
914 (((\"journal\" . \"\\\\=<\\(PR[ABCDEL]?\\|RMP\\)\\\\=>\") 914 (((\"journal\" . \"\\\\=<\\(PR[ABCDEL]?\\|RMP\\)\\\\=>\")
915 \"http://link.aps.org/abstract/%s/v%s/p%s\" 915 \"http://link.aps.org/abstract/%s/v%s/p%s\"
@@ -1836,13 +1836,16 @@ are ignored. Return point"
1836 "Search for BibTeX field enclosing point. 1836 "Search for BibTeX field enclosing point.
1837For `bibtex-mode''s internal algorithms, a field begins at the comma 1837For `bibtex-mode''s internal algorithms, a field begins at the comma
1838following the preceding field. Usually, this is not what the user expects. 1838following the preceding field. Usually, this is not what the user expects.
1839Thus if COMMA is non-nil, the \"current field\" includes the terminating comma. 1839Thus if COMMA is non-nil, the \"current field\" includes the terminating comma
1840as well as the entry delimiter if it appears on the same line.
1840Unless NOERR is non-nil, signal an error if no enclosing field is found. 1841Unless NOERR is non-nil, signal an error if no enclosing field is found.
1841On success return bounds, nil otherwise. Do not move point." 1842On success return bounds, nil otherwise. Do not move point."
1842 (save-excursion 1843 (save-excursion
1843 (when comma 1844 (when comma
1844 (end-of-line) 1845 (end-of-line)
1845 (skip-chars-backward " \t") 1846 (skip-chars-backward " \t")
1847 ;; Ignore entry delimiter and comma at end of line.
1848 (if (memq (preceding-char) '(?} ?\))) (forward-char -1))
1846 (if (= (preceding-char) ?,) (forward-char -1))) 1849 (if (= (preceding-char) ?,) (forward-char -1)))
1847 1850
1848 (let ((bounds (bibtex-search-backward-field bibtex-field-name t))) 1851 (let ((bounds (bibtex-search-backward-field bibtex-field-name t)))