changeset 101236:33b2514969f5

(bibtex-format-entry): Fix previous change.
author Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
date Fri, 16 Jan 2009 15:10:16 +0000
parents 4f83c85cf904
children bcad6975ee7a
files lisp/textmodes/bibtex.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/bibtex.el	Fri Jan 16 15:09:39 2009 +0000
+++ b/lisp/textmodes/bibtex.el	Fri Jan 16 15:10:16 2009 +0000
@@ -2006,11 +2006,11 @@
                         (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)))))