aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog11
-rw-r--r--lisp/simple.el4
2 files changed, 11 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f0ce703f601..407e9496e13 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * simple.el (reindent-then-newline-and-indent): Be careful about the
4 unusual case where indent-according-to-mode moves point.
5
12008-02-01 Dan Nicolaescu <dann@ics.uci.edu> 62008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
2 7
3 * progmodes/verilog-mode.el (verilog-sk-prompt-msb) 8 * progmodes/verilog-mode.el (verilog-sk-prompt-msb)
@@ -13,7 +18,7 @@
132008-01-31 Martin Rudalics <rudalics@gmx.at> 182008-01-31 Martin Rudalics <rudalics@gmx.at>
14 19
15 * mail/rmail.el (rmail-highlight): Fix specification. 20 * mail/rmail.el (rmail-highlight): Fix specification.
16 Reported by: pod <pod@herald.ox.ac.uk>. 21 Reported by: pod <pod@herald.ox.ac.uk>.
17 22
182008-01-31 Jason Rumney <jasonr@gnu.org> 232008-01-31 Jason Rumney <jasonr@gnu.org>
19 24
@@ -34,8 +39,8 @@
34 * progmodes/cc-langs.el (c-specifier-key): Exclude "template" 39 * progmodes/cc-langs.el (c-specifier-key): Exclude "template"
35 from this regexp; part of same fix as next change to cc-engine.el. 40 from this regexp; part of same fix as next change to cc-engine.el.
36 41
37 * progmodes/cc-engine.el (c-guess-basic-syntax, CASE 5A.5): Anchor 42 * progmodes/cc-engine.el (c-guess-basic-syntax, CASE 5A.5):
38 the "{" of a template function correctly on "template", not the 43 Anchor the "{" of a template function correctly on "template", not the
39 following "<". 44 following "<".
40 45
41 * progmodes/cc-defs.el (c-version): Increase to 5.31.5. 46 * progmodes/cc-defs.el (c-version): Increase to 5.31.5.
diff --git a/lisp/simple.el b/lisp/simple.el
index 253e03c23b4..3ca479f45c4 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -632,7 +632,9 @@ column specified by the function `current-left-margin'."
632 (newline) 632 (newline)
633 (save-excursion 633 (save-excursion
634 (goto-char pos) 634 (goto-char pos)
635 (indent-according-to-mode) 635 ;; Usually indent-according-to-mode should "preserve" point, but it is
636 ;; not guaranteed; e.g. indent-to-left-margin doesn't.
637 (save-excursion (indent-according-to-mode))
636 (delete-horizontal-space t)) 638 (delete-horizontal-space t))
637 (indent-according-to-mode))) 639 (indent-according-to-mode)))
638 640