emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 08dad2f: Fix a typo in bibtex.el


From: Eli Zaretskii
Subject: [Emacs-diffs] master 08dad2f: Fix a typo in bibtex.el
Date: Mon, 27 Apr 2015 15:21:54 +0000

branch: master
commit 08dad2f84ddc2934ced2b1e4ec891a581d59d617
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Fix a typo in bibtex.el
    
    * lisp/textmodes/bibtex.el (bibtex-insert-kill): Fix a typo from
    last change.  (Bug#20429)
---
 lisp/textmodes/bibtex.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el
index 8a01852..10edefc 100644
--- a/lisp/textmodes/bibtex.el
+++ b/lisp/textmodes/bibtex.el
@@ -2229,7 +2229,7 @@ Optional arg COMMA is as in `bibtex-enclosing-field'."
                        bibtex-entry-kill-ring))
       ;; If we copied an entry from a buffer containing only this one entry,
       ;; it can be missing the second "\n".
-      (unless (looking-back "\n\n" (- (point 2))) (insert "\n"))
+      (unless (looking-back "\n\n" (- (point) 2)) (insert "\n"))
       (unless (functionp bibtex-reference-keys)
         ;; update `bibtex-reference-keys'
         (save-excursion



reply via email to

[Prev in Thread] Current Thread [Next in Thread]