From: Andreas Schwab <schwab@linux-m68k.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Gabriel <gabriel376@hotmail.com>, 49971@debbugs.gnu.org
Subject: bug#49971: 28.0.50; indent-tabs-mode not working globally
Date: Tue, 10 Aug 2021 14:08:19 +0200 [thread overview]
Message-ID: <87k0kt8pu4.fsf@igel.home> (raw)
In-Reply-To: <8335rhh5r5.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 10 Aug 2021 14:57:18 +0300")
On Aug 10 2021, Eli Zaretskii wrote:
>> From: Gabriel <gabriel376@hotmail.com>
>> Date: Mon, 09 Aug 2021 23:33:37 -0300
>>
>> >> 1. emacs -Q
>> >> 2. C-h v 'indent-tabs-mode' (value is t)
>> >> 3. eval '(indent-tabs-mode -1)'
>> >> 4. C-h v 'indent-tabs-mode' (local value is nil; global value is t)
>> >
>> > Where did you see that it's "defined as global"?
>>
>> On simple.el:
>>
>> (define-minor-mode indent-tabs-mode
>> "Toggle whether indentation can insert TAB characters."
>> :global t :group 'indent :variable indent-tabs-mode)
>
> That's the mode, but in your recipe you are looking at the variable,
> not the mode. And the documentation of the variable clearly says:
>
> Automatically becomes buffer-local when set.
That's because it's explicitly made that way (bindings.el:799) despite
the :global declaration (which is about the _variable_ not the mode).
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
next prev parent reply other threads:[~2021-08-10 12:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-09 21:15 bug#49971: 28.0.50; indent-tabs-mode not working globally Gabriel
2021-08-10 2:26 ` Eli Zaretskii
2021-08-10 2:33 ` Gabriel
2021-08-10 11:57 ` Eli Zaretskii
2021-08-10 12:08 ` Andreas Schwab [this message]
2021-08-10 13:30 ` Eli Zaretskii
2021-08-10 13:40 ` Lars Ingebrigtsen
2022-08-22 12:02 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k0kt8pu4.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=49971@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=gabriel376@hotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.