From 08dad2f84ddc2934ced2b1e4ec891a581d59d617 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 27 Apr 2015 18:21:13 +0300 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el index 8a018520f5f..10edefc9d3e 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 -- 2.39.2