+2009-01-17 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
+
+ * textmodes/bibtex.el (bibtex-format-entry): Simplify previous
+ change.
+
2009-01-17 Eli Zaretskii <eliz@gnu.org>
* dos-w32.el (find-buffer-file-type-coding-system): If `(car
strings)
bibtex-entry-format))
(left-delim-re (regexp-quote (bibtex-field-left-delimiter)))
- (right-delim-re (regexp-quote (bibtex-field-right-delimiter)))
bounds crossref-key req-field-list default-field-list field-list
alt-fields error-field-name)
(unwind-protect
(if (looking-at bibtex-field-const)
(goto-char (match-end 0))
(let ((boundaries (bibtex-parse-field-string)))
- (unless (looking-at left-delim-re)
+ (if (looking-at left-delim-re)
+ (goto-char (cdr boundaries))
(delete-char 1)
- (insert (bibtex-field-left-delimiter)))
- (goto-char (1- (cdr boundaries)))
- (if (looking-at right-delim-re)
- (forward-char)
+ (insert (bibtex-field-left-delimiter))
+ (goto-char (1- (cdr boundaries)))
(delete-char 1)
(insert (bibtex-field-right-delimiter)))))
(if (looking-at "[ \t\n]*#[ \t\n]*")