From: Richard M. Stallman Date: Mon, 20 Jun 1994 01:52:51 +0000 (+0000) Subject: (tab-to-tab-stop): Combine new indentation with previous. X-Git-Tag: emacs-19.34~7880 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9d840bec3e0a2ddac938870694b4cdc30e6014e1;p=emacs.git (tab-to-tab-stop): Combine new indentation with previous. --- diff --git a/lisp/indent.el b/lisp/indent.el index e7f4605b682..17e58241fd1 100644 --- a/lisp/indent.el +++ b/lisp/indent.el @@ -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 ()