aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/textmodes/bibtex.el6
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a763c61124a..8249b0d7773 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12006-05-22 Stefan Monnier <monnier@iro.umontreal.ca> 12006-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * textmodes/bibtex.el (bibtex-format-entry, bibtex-clean-entry):
4 Signal more user-friendly error messages.
5
3 * complete.el (PC-do-completion): Undo the addition of implicit 6 * complete.el (PC-do-completion): Undo the addition of implicit
4 wildcards if they did not lead to finding any match. 7 wildcards if they did not lead to finding any match.
5 (read-file-name-internal): Don't add the final > if the completion is 8 (read-file-name-internal): Don't add the final > if the completion is
diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el
index 044c59d0cae..74ec8beffa2 100644
--- a/lisp/textmodes/bibtex.el
+++ b/lisp/textmodes/bibtex.el
@@ -1803,7 +1803,8 @@ Formats current entry according to variable `bibtex-entry-format'."
1803 1803
1804 ;; identify entry type 1804 ;; identify entry type
1805 (goto-char (point-min)) 1805 (goto-char (point-min))
1806 (re-search-forward bibtex-entry-type) 1806 (or (re-search-forward bibtex-entry-type nil t)
1807 (error "Not inside a BibTeX entry"))
1807 (let ((beg-type (1+ (match-beginning 0))) 1808 (let ((beg-type (1+ (match-beginning 0)))
1808 (end-type (match-end 0))) 1809 (end-type (match-end 0)))
1809 (setq entry-list (assoc-string (buffer-substring-no-properties 1810 (setq entry-list (assoc-string (buffer-substring-no-properties
@@ -3879,7 +3880,8 @@ At end of the cleaning process, the functions in
3879 (interactive "P") 3880 (interactive "P")
3880 (let ((case-fold-search t) 3881 (let ((case-fold-search t)
3881 (start (bibtex-beginning-of-entry)) 3882 (start (bibtex-beginning-of-entry))
3882 (_ (looking-at bibtex-any-entry-maybe-empty-head)) 3883 (_ (or (looking-at bibtex-any-entry-maybe-empty-head)
3884 (error "Not inside a BibTeX entry")))
3883 (entry-type (bibtex-type-in-head)) 3885 (entry-type (bibtex-type-in-head))
3884 (key (bibtex-key-in-head))) 3886 (key (bibtex-key-in-head)))
3885 ;; formatting 3887 ;; formatting