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: highlight-sexp-mode add-hook with (highlight-sexp-mode 0) Date: Thu, 27 Oct 2022 06:19:58 +0000 Message-ID: References: <83k04ln7nr.fsf@gnu.org> 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="20440"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 27 08:21:51 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 1onwH1-0004vd-9w for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 27 Oct 2022 08:21:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onwFW-0002p0-CL; Thu, 27 Oct 2022 02:20:18 -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 1onwFS-0002GT-Am for help-gnu-emacs@gnu.org; Thu, 27 Oct 2022 02:20:14 -0400 Original-Received: from mail-40138.protonmail.ch ([185.70.40.138]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onwFQ-0000kR-KL for help-gnu-emacs@gnu.org; Thu, 27 Oct 2022 02:20:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1666851609; x=1667110809; bh=aRo0WSDnIGmebhpEqYt2rsIX9fyBWVufTA3aJDVOSlQ=; 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=UTheGikKzsIJYz2NAITksiK0IL6s3nSk8Sr5waiXtyMzwfrCfz2SfAY64y71ELefy s91giQOGadatdiBMkORf/7DF04Km4Auoc4KX8cjAXKvrrMD/w4Xjt+xE+6STtJkyeF IwH2HUVr+9ECUjEvF2kuPNlVyR3uAZOzTI+Q3RiglGPYbQEisEp5ViuLZEFjgCXFp0 tBiGBBkyL2wIQwZBmCc8w8TMFhcJb2ydj+laeDcg9piBrND9s5hDAa2G2vQK41xX8h bB9mOjHOBjDV41UuyObXNyiyoRCvw4DVPxij1/xbimOXnrK6FY9gBsUuwGZD366+Y4 vdu8qS3R3OoLA== In-Reply-To: <83k04ln7nr.fsf@gnu.org> Feedback-ID: 57735886:user:proton Received-SPF: pass client-ip=185.70.40.138; envelope-from=heimeborgia@protonmail.com; helo=mail-40138.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 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: , Original-Sender: "help-gnu-emacs" Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:140424 Archived-At: ------- Original Message ------- On Thursday, October 27th, 2022 at 5:43 AM, Eli Zaretskii wr= ote: > > Date: Wed, 26 Oct 2022 21:55:23 +0000 > > From: Heime heimeborgia@protonmail.com > >=20 > > I am using highlight-sexp-mode with the following in my init file > >=20 > > (add-hook 'emacs-lisp-mode-hook 'highlight-sexp-mode) > >=20 > > But then I also call > >=20 > > (if highlight-sexp-mode (highlight-sexp-mode 0)) > >=20 > > Yet when I load an ".el" file, I still get "highlight-sexp-mode" activa= ted. >=20 >=20 > Crystal ball says you do the latter too early, or in the wrong buffer. Because I do=20 (if highlight-sexp-mode (highlight-sexp-mode 0)) in my init file. Sounds that the procedure should be to remove the mode ho= ok if I want to disable the capture of files by "highlight-sexp-mode" if a mod= e hook had already been activated.