aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2011-05-03 11:03:48 -0300
committerStefan Monnier2011-05-03 11:03:48 -0300
commit5767d190ca743677c41c64119337bc2fa7797439 (patch)
treea6869da95e70dbae43509871759ef776231536a2
parentbf242939d9cf16868e55e9c346eeb222cc3ffc6a (diff)
downloademacs-5767d190ca743677c41c64119337bc2fa7797439.tar.gz
emacs-5767d190ca743677c41c64119337bc2fa7797439.zip
* lisp/textmodes/bibtex.el (bibtex-fill-field-bounds, bibtex-fill-entry):
Avoid open-line which runs post-self-insert-hook. (bibtex-fill-entry): Remove unused `end' var.
-rw-r--r--lisp/ChangeLog12
-rw-r--r--lisp/textmodes/bibtex.el7
2 files changed, 11 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 460c62ca23e..bc635487254 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,12 +1,18 @@
12011-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * textmodes/bibtex.el (bibtex-fill-field-bounds, bibtex-fill-entry):
4 Avoid open-line which runs post-self-insert-hook.
5 (bibtex-fill-entry): Remove unused `end' var.
6
12011-05-03 Dirk Ullrich <dirk.ullrich@googlemail.com> (tiny change) 72011-05-03 Dirk Ullrich <dirk.ullrich@googlemail.com> (tiny change)
2 8
3 * textmodes/ispell.el (ispell-add-per-file-word-list): 9 * textmodes/ispell.el (ispell-add-per-file-word-list):
4 Protect against `nil' value of `comment-start' (Bug#8579). 10 Protect against `nil' value of `comment-start' (Bug#8579).
5 11
62011-05-03 Leo Liu <sdl.web@gmail.com> 122011-05-03 Leo Liu <sdl.web@gmail.com>
7 13
8 * isearch.el (isearch-yank-pop): New command. 14 * isearch.el (isearch-yank-pop): New command.
9 (isearch-mode-map): bind it to `M-y'. 15 (isearch-mode-map): Bind it to `M-y'.
10 (isearch-forward): Mention it. 16 (isearch-forward): Mention it.
11 17
122011-05-03 Stefan Monnier <monnier@iro.umontreal.ca> 182011-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el
index 2d2c0380a4a..e49d7549776 100644
--- a/lisp/textmodes/bibtex.el
+++ b/lisp/textmodes/bibtex.el
@@ -4313,8 +4313,7 @@ If optional arg MOVE is non-nil move point to end of field."
4313 (goto-char (bibtex-start-of-field bounds)) 4313 (goto-char (bibtex-start-of-field bounds))
4314 (forward-char) ; leading comma 4314 (forward-char) ; leading comma
4315 (bibtex-delete-whitespace) 4315 (bibtex-delete-whitespace)
4316 (open-line 1) 4316 (insert "\n")
4317 (forward-char)
4318 (indent-to-column (+ bibtex-entry-offset 4317 (indent-to-column (+ bibtex-entry-offset
4319 bibtex-field-indentation)) 4318 bibtex-field-indentation))
4320 (re-search-forward "[ \t\n]*=" end-field) 4319 (re-search-forward "[ \t\n]*=" end-field)
@@ -4352,7 +4351,6 @@ column `bibtex-text-indentation' and continuation lines start here, too.
4352If `bibtex-align-at-equal-sign' is non-nil, align equal signs, too." 4351If `bibtex-align-at-equal-sign' is non-nil, align equal signs, too."
4353 (interactive "*") 4352 (interactive "*")
4354 (let ((pnt (copy-marker (point))) 4353 (let ((pnt (copy-marker (point)))
4355 (end (copy-marker (bibtex-end-of-entry)))
4356 (beg (bibtex-beginning-of-entry)) ; move point 4354 (beg (bibtex-beginning-of-entry)) ; move point
4357 bounds) 4355 bounds)
4358 (bibtex-delete-whitespace) 4356 (bibtex-delete-whitespace)
@@ -4364,8 +4362,7 @@ If `bibtex-align-at-equal-sign' is non-nil, align equal signs, too."
4364 (forward-char)) 4362 (forward-char))
4365 (skip-chars-backward " \t\n") 4363 (skip-chars-backward " \t\n")
4366 (bibtex-delete-whitespace) 4364 (bibtex-delete-whitespace)
4367 (open-line 1) 4365 (insert "\n")
4368 (forward-char)
4369 (indent-to-column bibtex-entry-offset) 4366 (indent-to-column bibtex-entry-offset)
4370 (goto-char pnt))) 4367 (goto-char pnt)))
4371 4368