Mercurial > emacs
diff lisp/indent.el @ 7984:bc835acd2ade
(move-to-tab-stop): Get rid of spaces before tabs
that were made by an immediately previous use of this command.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 20 Jun 1994 22:52:49 +0000 |
parents | b7ea350590a7 |
children | fd5fb80a940d |
line wrap: on
line diff
--- a/lisp/indent.el Mon Jun 20 22:22:58 1994 +0000 +++ b/lisp/indent.el Mon Jun 20 22:52:49 1994 +0000 @@ -253,7 +253,12 @@ (while (and tabs (>= (current-column) (car tabs))) (setq tabs (cdr tabs))) (if tabs - (move-to-column (car tabs) t)))) + (progn + (if (eq last-command 'move-to-tab-stop) + (let ((opoint (point))) + (skip-chars-backward " \t") + (delete-region (point) opoint))) + (move-to-column (car tabs) t))))) (define-key global-map "\t" 'indent-for-tab-command) (define-key esc-map "\034" 'indent-region)