From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#49971: 28.0.50; indent-tabs-mode not working globally Date: Tue, 10 Aug 2021 14:08:19 +0200 Message-ID: <87k0kt8pu4.fsf@igel.home> References: <837dgughm0.fsf@gnu.org> <8335rhh5r5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18188"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cc: Gabriel , 49971@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 10 14:09:14 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDQZF-0004Vw-Oh for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Aug 2021 14:09:13 +0200 Original-Received: from localhost ([::1]:36148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDQZE-0001r9-9w for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Aug 2021 08:09:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDQZ4-0001qe-N7 for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 08:09:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47071) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDQZ4-0001KF-EZ for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 08:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDQZ4-0004Vd-3v for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 08:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Aug 2021 12:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49971 X-GNU-PR-Package: emacs Original-Received: via spool by 49971-submit@debbugs.gnu.org id=B49971.162859730617289 (code B ref 49971); Tue, 10 Aug 2021 12:09:02 +0000 Original-Received: (at 49971) by debbugs.gnu.org; 10 Aug 2021 12:08:26 +0000 Original-Received: from localhost ([127.0.0.1]:58617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDQYT-0004Um-Sa for submit@debbugs.gnu.org; Tue, 10 Aug 2021 08:08:26 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:36795) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDQYQ-0004Ub-VE for 49971@debbugs.gnu.org; Tue, 10 Aug 2021 08:08:24 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4GkWts0Ww3z1qwyR; Tue, 10 Aug 2021 14:08:20 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4GkWtr5qGpz1qqy8; Tue, 10 Aug 2021 14:08:20 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 9lGIeH5RWXEj; Tue, 10 Aug 2021 14:08:20 +0200 (CEST) X-Auth-Info: JWco8XIK6tcjwfPxxV0XqmZsu38wq0/ZJjk5RYC7EA+hQctzVSSYRyDHthKCHK8S Original-Received: from igel.home (ppp-46-244-191-35.dynamic.mnet-online.de [46.244.191.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 10 Aug 2021 14:08:19 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 1000) id 4F9712C2595; Tue, 10 Aug 2021 14:08:19 +0200 (CEST) X-Yow: I had pancake makeup for brunch! In-Reply-To: <8335rhh5r5.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 10 Aug 2021 14:57:18 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:211480 Archived-At: On Aug 10 2021, Eli Zaretskii wrote: >> From: Gabriel >> 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."