diff options
| author | Richard M. Stallman | 1994-06-20 01:52:51 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-06-20 01:52:51 +0000 |
| commit | 9d840bec3e0a2ddac938870694b4cdc30e6014e1 (patch) | |
| tree | e7e097a5e7c990d3351342417fad4b2948fa12aa | |
| parent | 97823303c496780827e89f38c5978af39ea1cc55 (diff) | |
| download | emacs-9d840bec3e0a2ddac938870694b4cdc30e6014e1.tar.gz emacs-9d840bec3e0a2ddac938870694b4cdc30e6014e1.zip | |
(tab-to-tab-stop): Combine new indentation with previous.
| -rw-r--r-- | lisp/indent.el | 5 |
1 files changed, 4 insertions, 1 deletions
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." | |||
| 238 | (while (and tabs (>= (current-column) (car tabs))) | 238 | (while (and tabs (>= (current-column) (car tabs))) |
| 239 | (setq tabs (cdr tabs))) | 239 | (setq tabs (cdr tabs))) |
| 240 | (if tabs | 240 | (if tabs |
| 241 | (indent-to (car tabs)) | 241 | (let ((opoint (point))) |
| 242 | (skip-chars-backward " \t") | ||
| 243 | (delete-region (point) opoint) | ||
| 244 | (indent-to (car tabs))) | ||
| 242 | (insert ?\ )))) | 245 | (insert ?\ )))) |
| 243 | 246 | ||
| 244 | (defun move-to-tab-stop () | 247 | (defun move-to-tab-stop () |