diff options
| author | Roland Winkler | 2009-01-17 14:59:47 +0000 |
|---|---|---|
| committer | Roland Winkler | 2009-01-17 14:59:47 +0000 |
| commit | 635618a409f363ccec6b42a3ad59fcb46154863f (patch) | |
| tree | 1b8b88cb4be8400f4e3bf2e2527980f4e9e297b8 | |
| parent | 511744bd31d92c65323f6b198f00f5085cdfbcb0 (diff) | |
| download | emacs-635618a409f363ccec6b42a3ad59fcb46154863f.tar.gz emacs-635618a409f363ccec6b42a3ad59fcb46154863f.zip | |
(bibtex-format-entry): Simplify previous change.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/textmodes/bibtex.el | 10 |
2 files changed, 9 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 87f89797f85..e28ac1d0a8a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-01-17 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> | ||
| 2 | |||
| 3 | * textmodes/bibtex.el (bibtex-format-entry): Simplify previous | ||
| 4 | change. | ||
| 5 | |||
| 1 | 2009-01-17 Eli Zaretskii <eliz@gnu.org> | 6 | 2009-01-17 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * dos-w32.el (find-buffer-file-type-coding-system): If `(car | 8 | * dos-w32.el (find-buffer-file-type-coding-system): If `(car |
diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el index 0114f234dd6..139f9f02d04 100644 --- a/lisp/textmodes/bibtex.el +++ b/lisp/textmodes/bibtex.el | |||
| @@ -1893,7 +1893,6 @@ Formats current entry according to variable `bibtex-entry-format'." | |||
| 1893 | strings) | 1893 | strings) |
| 1894 | bibtex-entry-format)) | 1894 | bibtex-entry-format)) |
| 1895 | (left-delim-re (regexp-quote (bibtex-field-left-delimiter))) | 1895 | (left-delim-re (regexp-quote (bibtex-field-left-delimiter))) |
| 1896 | (right-delim-re (regexp-quote (bibtex-field-right-delimiter))) | ||
| 1897 | bounds crossref-key req-field-list default-field-list field-list | 1896 | bounds crossref-key req-field-list default-field-list field-list |
| 1898 | alt-fields error-field-name) | 1897 | alt-fields error-field-name) |
| 1899 | (unwind-protect | 1898 | (unwind-protect |
| @@ -2006,12 +2005,11 @@ Formats current entry according to variable `bibtex-entry-format'." | |||
| 2006 | (if (looking-at bibtex-field-const) | 2005 | (if (looking-at bibtex-field-const) |
| 2007 | (goto-char (match-end 0)) | 2006 | (goto-char (match-end 0)) |
| 2008 | (let ((boundaries (bibtex-parse-field-string))) | 2007 | (let ((boundaries (bibtex-parse-field-string))) |
| 2009 | (unless (looking-at left-delim-re) | 2008 | (if (looking-at left-delim-re) |
| 2009 | (goto-char (cdr boundaries)) | ||
| 2010 | (delete-char 1) | 2010 | (delete-char 1) |
| 2011 | (insert (bibtex-field-left-delimiter))) | 2011 | (insert (bibtex-field-left-delimiter)) |
| 2012 | (goto-char (1- (cdr boundaries))) | 2012 | (goto-char (1- (cdr boundaries))) |
| 2013 | (if (looking-at right-delim-re) | ||
| 2014 | (forward-char) | ||
| 2015 | (delete-char 1) | 2013 | (delete-char 1) |
| 2016 | (insert (bibtex-field-right-delimiter))))) | 2014 | (insert (bibtex-field-right-delimiter))))) |
| 2017 | (if (looking-at "[ \t\n]*#[ \t\n]*") | 2015 | (if (looking-at "[ \t\n]*#[ \t\n]*") |