summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2015-04-27 18:21:13 +0300
committerEli Zaretskii <eliz@gnu.org>2015-04-27 18:21:13 +0300
commit08dad2f84ddc2934ced2b1e4ec891a581d59d617 (patch)
treebf4db1f6284c5230202d474d71e1b0f7aa594b9c
parentd89687b1ba4d0e4a252ca48749103467f2642212 (diff)
downloademacs-08dad2f84ddc2934ced2b1e4ec891a581d59d617.tar.gz
Fix a typo in bibtex.el
* lisp/textmodes/bibtex.el (bibtex-insert-kill): Fix a typo from last change. (Bug#20429)
-rw-r--r--lisp/textmodes/bibtex.el2
1 files changed, 1 insertions, 1 deletions
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