unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Gabriel <gabriel376@hotmail.com>
Cc: 49971@debbugs.gnu.org
Subject: bug#49971: 28.0.50; indent-tabs-mode not working globally
Date: Tue, 10 Aug 2021 14:57:18 +0300	[thread overview]
Message-ID: <8335rhh5r5.fsf@gnu.org> (raw)
In-Reply-To: <CH2PR01MB58791BC32C24D9642BADAB9E8BF79@CH2PR01MB5879.prod.exchangelabs.com> (message from Gabriel on Mon, 09 Aug 2021 23:33:37 -0300)

> 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.





  reply	other threads:[~2021-08-10 11:57 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 [this message]
2021-08-10 12:08       ` Andreas Schwab
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8335rhh5r5.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=49971@debbugs.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).