mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-24 10:38:38 +00:00
(tab-to-tab-stop, move-to-tab-stop): "?\ " -> "?\s".
This commit is contained in:
parent
94318c8a1f
commit
b379356ae1
@ -512,7 +512,7 @@ Use \\[edit-tab-stops] to edit them interactively."
|
||||
(let ((opoint (point)))
|
||||
(delete-horizontal-space t)
|
||||
(indent-to (car tabs)))
|
||||
(insert ?\ ))))
|
||||
(insert ?\s))))
|
||||
|
||||
(defun move-to-tab-stop ()
|
||||
"Move point to next defined tab-stop column.
|
||||
@ -529,11 +529,11 @@ Use \\[edit-tab-stops] to edit them interactively."
|
||||
(goto-char before)
|
||||
;; If we just added a tab, or moved over one,
|
||||
;; delete any superfluous spaces before the old point.
|
||||
(if (and (eq (preceding-char) ?\ )
|
||||
(if (and (eq (preceding-char) ?\s)
|
||||
(eq (following-char) ?\t))
|
||||
(let ((tabend (* (/ (current-column) tab-width) tab-width)))
|
||||
(while (and (> (current-column) tabend)
|
||||
(eq (preceding-char) ?\ ))
|
||||
(eq (preceding-char) ?\s))
|
||||
(forward-char -1))
|
||||
(delete-region (point) before))))))))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user