From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: goncholden Newsgroups: gmane.emacs.help Subject: Re: Turning electric-indent-mode off, for a specific buffer Date: Mon, 13 Jun 2022 12:01:48 +0000 Message-ID: References: <87bkuxe7dt.fsf@yahoo.com> <8735g9e1v0.fsf@yahoo.com> <87v8t5ce6v.fsf@yahoo.com> <4DUz-kf-CK2qVDH5pFZDC7c-vBuAu4wvT0bFwIEfcukj9m9mqKhHFx2kEizjKCveMd2afYBVOfqfu1UYrGtr7GYs7YdwuchsvtKWrh4sLuA=@protonmail.com> <874k0odc76.fsf@yahoo.com> Reply-To: goncholden Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27002"; mail-complaints-to="usenet@ciao.gmane.io" Cc: goncholden via Users list for the GNU Emacs text editor To: Po Lu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 13 14:27:00 2022 Return-path: Envelope-to: geh-help-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 1o0j9o-0006oN-7e for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 13 Jun 2022 14:27:00 +0200 Original-Received: from localhost ([::1]:53816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o0j9m-0007Fk-SE for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 13 Jun 2022 08:26:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41120) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0ila-0008Tf-83 for help-gnu-emacs@gnu.org; Mon, 13 Jun 2022 08:01:58 -0400 Original-Received: from mail-4318.protonmail.ch ([185.70.43.18]:29599) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0ilV-0005xe-DM for help-gnu-emacs@gnu.org; Mon, 13 Jun 2022 08:01:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1655121711; x=1655380911; bh=itfa2UHAHO0mP3QULfPOWPLInlNL0BU0eZEUfl4EV7g=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=vc/GWeVKXfhP89mS254IjYtP3n+pE720kuiloSHGcj5uJCEuDvjA5O4D0E9HB86oi YRcijOblsNh92l8i4bS5YBJpIsq5CYip6WIX4FnA/cQCU7+M6I7/P/3++IOkiOfUAB CIWKvMoOsvKWBV6HXRYeJvBIlY484awbz2Tgiy++uz9eIPEi/FkzcQ1czOb6t5H0pm DL6WqVoKXrYdSebdRphMU68ORj+DSk+WQeCpsonvpQ/rLOw6CaihJIq9ViMK+6DKZ3 RC+HHlv3EpuYy03m3q1nF6VNG4uz1QSwEi95P2bdUz/nL5mKxRE3VWur4zJJHYMsk7 HkJCrLaJIrffw== In-Reply-To: <874k0odc76.fsf@yahoo.com> Feedback-ID: 43053548:user:proton Received-SPF: pass client-ip=185.70.43.18; envelope-from=goncholden@protonmail.com; helo=mail-4318.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:137789 Archived-At: ------- Original Message ------- On Monday, June 13th, 2022 at 11:39 PM, Po Lu wrote: > goncholden goncholden@protonmail.com writes: > > > Doing "C-h v electric-indent-mode" says that setting this variable > > directly does not take effect, but one can customize it. It is very > > confusing. How is it ok to customize it and what happens when you do? > > > > Perhaps this needs change so one does not customize it? > > > electric-indent-mode is a global minor mode. > Customizing it turns the mode on or off, while setting the variable > itself has no effect. Then customizing electric-indent-mode does not customize the variable but t= he minor-mode? If I remember correctly, when defining a minor-mode, a vari= able is also created automatically. From your discussion, it seems that th= ere would also exist a function with the same name.