From: Roland Winkler Date: Fri, 16 Jan 2009 15:10:16 +0000 (+0000) Subject: (bibtex-format-entry): Fix previous change. X-Git-Tag: emacs-pretest-23.0.90~413 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8a62c4708eaa910647be7b16272d8ed4ce5fcebf;p=emacs.git (bibtex-format-entry): Fix previous change. --- diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el index 80265071347..0114f234dd6 100644 --- a/lisp/textmodes/bibtex.el +++ b/lisp/textmodes/bibtex.el @@ -2006,11 +2006,11 @@ Formats current entry according to variable `bibtex-entry-format'." (if (looking-at bibtex-field-const) (goto-char (match-end 0)) (let ((boundaries (bibtex-parse-field-string))) - (unless (looking-at right-delim-re) + (unless (looking-at left-delim-re) (delete-char 1) (insert (bibtex-field-left-delimiter))) (goto-char (1- (cdr boundaries))) - (if (looking-at left-delim-re) + (if (looking-at right-delim-re) (forward-char) (delete-char 1) (insert (bibtex-field-right-delimiter)))))