changeset 52944:ae9d36444079

(reindent-then-newline-and-indent): Delete space *after* reindenting the first line.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 27 Oct 2003 15:20:46 +0000
parents 97d0953a7a0a
children 7627866f68d5
files lisp/simple.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/simple.el	Mon Oct 27 00:01:42 2003 +0000
+++ b/lisp/simple.el	Mon Oct 27 15:20:46 2003 +0000
@@ -303,14 +303,14 @@
 In some text modes, where TAB inserts a tab, this indents to the
 column specified by the function `current-left-margin'."
   (interactive "*")
-  (delete-horizontal-space t)
   (let ((pos (point)))
     ;; Be careful to insert the newline before indenting the line.
     ;; Otherwise, the indentation might be wrong.
     (newline)
     (save-excursion
       (goto-char pos)
-      (indent-according-to-mode))
+      (indent-according-to-mode)
+      (delete-horizontal-space t))
     (indent-according-to-mode)))
 
 (defun quoted-insert (arg)