GNU bug report logs - #48058
tab-width's docstring

Previous Next

Package: emacs;

Reported by: Gustavo Barros <gusbrs.2016 <at> gmail.com>

Date: Tue, 27 Apr 2021 13:12:02 UTC

Severity: minor

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Gustavo Barros <gusbrs.2016 <at> gmail.com>
Subject: bug#48058: closed (Re: bug#48058: tab-width's docstring)
Date: Fri, 30 Apr 2021 10:51:01 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#48058: tab-width's docstring

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 48058 <at> debbugs.gnu.org.

-- 
48058: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=48058
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 48058-done <at> debbugs.gnu.org, gusbrs.2016 <at> gmail.com
Subject: Re: bug#48058: tab-width's docstring
Date: Fri, 30 Apr 2021 13:49:48 +0300
> From: Stefan Kangas <stefan <at> marxist.se>
> Date: Fri, 30 Apr 2021 05:20:12 -0500
> Cc: gusbrs.2016 <at> gmail.com, 48058 <at> debbugs.gnu.org
> 
>     Note that this variable doesn't necessarily affect the size of the
>     indentation step.  However, if the major mode's indentation facility
>     normally inserts one or more TAB characters, this variable will
>     affect the indentation step as well, even if `indent-tabs-mode' is
>     non-nil.
> 
> Otherwise LGTM, please install.

Thanks, done (with one minor deviation: the "normally" part is not
useful here).

[Message part 3 (message/rfc822, inline)]
From: Gustavo Barros <gusbrs.2016 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: tab-width's docstring
Date: Tue, 27 Apr 2021 10:11:30 -0300
Hi All,

In Emacs 27.2 the docstring for `tab-width' reads:

"Distance between tab stops (for display of tab characters), in columns. 
NOTE: This controls the display width of a TAB character, and not the 
size of an indentation step."

But this seems to contradict to the ubiquitous role in actual 
indentation the option currently plays.  It is used by `insert-tab' 
directly.  `tab-to-tab-stop' uses it if `tab-stop-list' is nil, as it is 
by default.  `indent-relative' may use `tab-to-tab-stop'.  And, through 
`indent-relative' and `insert-tab', `tab-width' also affects 
`indent-for-tab-command'.

Am I missing something?  Or is this docstring the remnant of a previous 
change which was left behind?

Best regards,
Gustavo.



This bug report was last modified 4 years and 23 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.