emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 8b8b791567: ; Improve documentation of TAB/SPC indentation


From: Eli Zaretskii
Subject: emacs-29 8b8b791567: ; Improve documentation of TAB/SPC indentation
Date: Tue, 27 Dec 2022 13:23:45 -0500 (EST)

branch: emacs-29
commit 8b8b79156798b4ffa791e9a9f0262a5ffdc867e8
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    ; Improve documentation of TAB/SPC indentation
    
    * lisp/indent.el (tab-to-tab-stop):
    * src/indent.c (Findent_to): Mention 'indent-tabs-mode' in doc
    strings.
---
 lisp/indent.el | 3 ++-
 src/indent.c   | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/lisp/indent.el b/lisp/indent.el
index c7ec5c9a3e..6b575a86b5 100644
--- a/lisp/indent.el
+++ b/lisp/indent.el
@@ -784,7 +784,8 @@ If PREV is non-nil, return the previous one instead."
 (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."
+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))
diff --git a/src/indent.c b/src/indent.c
index 4671ccccf9..66edaff67d 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -887,6 +887,8 @@ DEFUN ("indent-to", Findent_to, Sindent_to, 1, 2, "NIndent 
to column: ",
 Optional second argument MINIMUM says always do at least MINIMUM spaces
 even if that goes past COLUMN; by default, MINIMUM is zero.
 
+Whether this uses tabs or spaces depends on `indent-tabs-mode'.
+
 The return value is the column where the insertion ends.  */)
   (Lisp_Object column, Lisp_Object minimum)
 {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]