summaryrefslogtreecommitdiff
path: root/lisp/indent.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2014-01-27 20:49:02 -0500
committerGlenn Morris <rgm@gnu.org>2014-01-27 20:49:02 -0500
commite3bd7eed8cac658aae9f6f904eec23bf3482d4bb (patch)
tree73b0f743e10345861cd7898845ee96a0bc1c5788 /lisp/indent.el
parenta22359a7676690cf8e5eddd0029f612cdb85ea31 (diff)
downloademacs-e3bd7eed8cac658aae9f6f904eec23bf3482d4bb.tar.gz
Some doc related to tab-stops
* doc/lispref/text.texi (Indent Tabs): Update related to tab-stops. * lisp/indent.el (tab-stop-list): Doc fix. Add :version.
Diffstat (limited to 'lisp/indent.el')
-rw-r--r--lisp/indent.el15
1 files changed, 8 insertions, 7 deletions
diff --git a/lisp/indent.el b/lisp/indent.el
index ca221530458..c042db891c4 100644
--- a/lisp/indent.el
+++ b/lisp/indent.el
@@ -586,16 +586,17 @@ See also `indent-relative-maybe'."
(move-marker opoint nil))
(tab-to-tab-stop))))
-(defcustom tab-stop-list
- nil
+(defcustom tab-stop-list nil
"List of tab stop positions used by `tab-to-tab-stop'.
-This should be a list of integers, ordered from smallest to largest.
-It implicitly extends to infinity by repeating the last step (e.g. '(1 2 5)
-is equivalent to '(1 2 5 8 11)).
-If the list has less than 2 elements, `tab-width' is used as the \"last step\"."
+This should be nil, or a list of integers, ordered from smallest to largest.
+It implicitly extends to infinity through repetition of the last step.
+For example, '(1 2 5) is equivalent to '(1 2 5 8 11 ...). If the list has
+fewer than 2 elements, `tab-width' is used as the \"last step\".
+A value of nil means a tab stop every `tab-width' columns."
:group 'indent
+ :version "24.4" ; from explicit list to nil
+ :safe 'listp
:type '(repeat integer))
-(put 'tab-stop-list 'safe-local-variable 'listp)
(defvar edit-tab-stops-map
(let ((map (make-sparse-keymap)))