From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: Re: Disabling minor mode after setting imenu-generic-expression Date: Thu, 29 Aug 2024 10:21:31 +0000 Message-ID: References: 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="35848"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 29 12:22:19 2024 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 1sjcIE-0009Cc-Ta for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 29 Aug 2024 12:22:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sjcHd-0006Vs-A7; Thu, 29 Aug 2024 06:21:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sjcHb-0006Vd-BZ for help-gnu-emacs@gnu.org; Thu, 29 Aug 2024 06:21:39 -0400 Original-Received: from mail-4319.protonmail.ch ([185.70.43.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sjcHZ-0002kB-Ah for help-gnu-emacs@gnu.org; Thu, 29 Aug 2024 06:21:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1724926894; x=1725186094; bh=N1/Ky2Ph5PqhpksQ1P1CQnHa/CHBcSheFyXd7gN6CJQ=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=jNA0aNDXDrq18EJjf01bJS6GDC9U4l6/Va40hY6QKxgO4TTnhCwGuJlW2628zRcM9 OudwYpZ46qlM+RjNFSBcc45cgAUWjsvSsP+gV/NZvWE1wqFLQta/AisscABE1/dsFp Xk9dLBYrc27K2Ubp4glURgRrVHyEEPS+21ylKNk6HMd5SO4kKUR5tkepzAUTYaWQDF pJLgaGS/GKCqlJXjeaHKsji0rHCszf/d6rr678x7GCgSUX29HiOYhSgvy3wgCaKEnw 9T0UfGjRAaM0CHQeFH8pJpt1lRabrbq7NcM2DoEwpyUX6tkEwxADEyzxXX9K390WlO 0MOC40csAsb5w== In-Reply-To: Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 497c69e8689214cafcd34e724504be95b18aa1a5 Received-SPF: pass client-ip=185.70.43.19; envelope-from=heimeborgia@protonmail.com; helo=mail-4319.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_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147849 Archived-At: On Thursday, August 29th, 2024 at 1:21 PM, Stefan Monnier via Users=20 list for the GNU Emacs text editor wrote: > > You have been asking this question every day for the last week (I > > might be exaggerating a bit) and got no answers. This should cue you > > to the idea that the functionality you seek is not well suited to be a > > minor mode. >=20 >=20 > In my case the lack of answer is because I don't understand > the question. > I read it as "After changing the name on my mailbox, how do I set it > back". Presumably if you know how to change it in the first place, you > should know how to set it back (unless maybe you can change the name on > the mailbox but you can't read the name on the mailbox?). - Stefan I could save the default set by the major mode before changing it. But will all the buffer local things, I am unsure what to use. Currently, I set the value with (setq imenu-generic-expression But when disabling the mode I want to revert to the original.