Function: tab-to-tab-stop
tab-to-tab-stop is an interactive and byte-compiled function defined
in indent.el.gz.
Signature
(tab-to-tab-stop)
Documentation
Insert spaces or tabs to next defined tab-stop column.
The variable tab-stop-list is a list of columns at which there are tab stops.
Use M-x edit-tab-stops (edit-tab-stops) to edit them interactively.
Whether this inserts tabs or spaces depends on indent-tabs-mode(var)/indent-tabs-mode(fun).
Probably introduced at or before Emacs version 1.9.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/indent.el.gz
(defun tab-to-tab-stop ()
"Insert spaces or tabs to next defined tab-stop column.
The variable `tab-stop-list' is a list of columns at which there are tab stops.
Use \\[edit-tab-stops] to edit them interactively.
Whether this inserts tabs or spaces depends on `indent-tabs-mode'."
(interactive)
(and abbrev-mode (= (char-syntax (preceding-char)) ?w)
(expand-abbrev))
(let ((nexttab (indent-next-tab-stop (current-column))))
(delete-horizontal-space t)
(indent-to nexttab)))