]> git.eshelyaron.com Git - emacs.git/commitdiff
(tab-to-tab-stop): Combine new indentation with previous.
authorRichard M. Stallman <rms@gnu.org>
Mon, 20 Jun 1994 01:52:51 +0000 (01:52 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 20 Jun 1994 01:52:51 +0000 (01:52 +0000)
lisp/indent.el

index e7f4605b682bd45cb491f0d89a5f19ac6adec9ac..17e58241fd1619f64a8d648f7f5e4dc47244463b 100644 (file)
@@ -238,7 +238,10 @@ Use \\[edit-tab-stops] to edit them interactively."
     (while (and tabs (>= (current-column) (car tabs)))
       (setq tabs (cdr tabs)))
     (if tabs
-       (indent-to (car tabs))
+       (let ((opoint (point)))
+         (skip-chars-backward " \t")
+         (delete-region (point) opoint)
+         (indent-to (car tabs)))
       (insert ?\ ))))
 
 (defun move-to-tab-stop ()