From 8a62c4708eaa910647be7b16272d8ed4ce5fcebf Mon Sep 17 00:00:00 2001 From: Roland Winkler Date: Fri, 16 Jan 2009 15:10:16 +0000 Subject: [PATCH] (bibtex-format-entry): Fix previous change. --- lisp/textmodes/bibtex.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))))) -- 2.39.2