Function: edit-tab-stops
edit-tab-stops is an interactive and byte-compiled function defined in
indent.el.gz.
Signature
(edit-tab-stops)
Documentation
Edit the tab stops used by tab-to-tab-stop.
Creates a buffer *Tab Stops* containing text describing the tab stops.
A colon indicates a column where there is a tab stop.
You can add or remove colons and then do C-c C-c (edit-tab-stops-note-changes) to make changes take effect.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/indent.el.gz
(defun edit-tab-stops ()
"Edit the tab stops used by `tab-to-tab-stop'.
Creates a buffer *Tab Stops* containing text describing the tab stops.
A colon indicates a column where there is a tab stop.
You can add or remove colons and then do \\<edit-tab-stops-map>\\[edit-tab-stops-note-changes] to make changes take effect."
(interactive)
(setq edit-tab-stops-buffer (current-buffer))
(switch-to-buffer (get-buffer-create "*Tab Stops*"))
(use-local-map edit-tab-stops-map)
(setq-local indent-tabs-mode nil)
(overwrite-mode 1)
(setq truncate-lines t)
(erase-buffer)
(let ((tabs tab-stop-list))
(while tabs
(indent-to (car tabs) 0)
(insert ?:)
(setq tabs (cdr tabs))))
(let ((count 0))
(insert ?\n)
(while (< count 8)
(insert (+ count ?0))
(insert " ")
(setq count (1+ count)))
(insert ?\n)
(while (> count 0)
(insert "0123456789")
(setq count (1- count))))
(insert "\nTo install changes, type C-c C-c")
(goto-char (point-min)))