diff options
| author | Stefan Monnier | 2008-02-01 04:04:51 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-02-01 04:04:51 +0000 |
| commit | ed3fdc0ea2b6ceec5399f1ad6d60a9218530cbbf (patch) | |
| tree | 41acb423ed88a900e27894a20011678e77e27a27 /lisp | |
| parent | f07fe1842488b9ca0537f461c840efedde7b6c72 (diff) | |
| download | emacs-ed3fdc0ea2b6ceec5399f1ad6d60a9218530cbbf.tar.gz emacs-ed3fdc0ea2b6ceec5399f1ad6d60a9218530cbbf.zip | |
(reindent-then-newline-and-indent): Be careful about the
unusual case where indent-according-to-mode moves point.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/simple.el | 4 |
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 @@ | |||
| 1 | 2008-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 | |||
| 1 | 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu> | 6 | 2008-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 @@ | |||
| 13 | 2008-01-31 Martin Rudalics <rudalics@gmx.at> | 18 | 2008-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 | ||
| 18 | 2008-01-31 Jason Rumney <jasonr@gnu.org> | 23 | 2008-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 | ||