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: Applying changes to outline-minor-mode-highlight Date: Wed, 14 Jun 2023 16:04:29 +0000 Message-ID: References: <83fs6uuk68.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="15917"; 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 Wed Jun 14 18:05:44 2023 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 1q9T0B-0003u4-Mm for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 14 Jun 2023 18:05:43 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q9SzX-0007Sk-SG; Wed, 14 Jun 2023 12:05:04 -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 1q9SzN-0007Mm-DL for help-gnu-emacs@gnu.org; Wed, 14 Jun 2023 12:04:54 -0400 Original-Received: from mail-4324.protonmail.ch ([185.70.43.24]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9SzL-0005T7-EP for help-gnu-emacs@gnu.org; Wed, 14 Jun 2023 12:04:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1686758686; x=1687017886; bh=DT2KCrEI2crUz/8b5FT2lstFyRPPAhV/30XUBsPINOM=; 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=LnvXOa9Sch62TkRgEkuAQMI0o+dOv6JFtVxty49FIBaOppiwp+eo9gvSl1E3wZkx+ eS4ToxIX/EOxtqpfRPKoDF9MVlNamX1bH7A5+nVFK4EQUgo2NjtQzE+z6mos0XsXbi TC2XYGWL/9oz5BxzgTYlTKZ6IC0Mw3HrEcfc7vKktPmpmGdVS2hBiBXeymXd+qQWky n4C4e53AXvLpa85ibmjKWjpfsK8Ibv5QH8Ebvz+UCEojsR/xDdGmzLonXAzxAkAA91 qiurzGNubhT/WLEFrlZAZ6HdVqKTQ+v+H0py7txdAihgBh3I0xCHi2aAFQrlePThXA 5icveW5vltnSQ== In-Reply-To: <83fs6uuk68.fsf@gnu.org> Feedback-ID: 57735886:user:proton Received-SPF: pass client-ip=185.70.43.24; envelope-from=heimeborgia@protonmail.com; helo=mail-4324.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_H5=0.001, RCVD_IN_MSPIKE_WL=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:143934 Archived-At: ------- Original Message ------- On Thursday, June 15th, 2023 at 3:40 AM, Eli Zaretskii wrote= : > > Date: Wed, 14 Jun 2023 14:24:05 +0000 > > From: Heime heimeborgia@protonmail.com > >=20 > > To change the highlighting of headings one changes the value of outline= -minor-mode-highlight. > >=20 > > But the settings are not taking effect unless I disable outline-minor-m= ode and enable it again. > > How can I change this code so that the changes are applied automaticall= y ? > >=20 > > (defvar hkfocus-setting 3) > >=20 > > (defun hkfocus () > > "todo" > > (interactive) > >=20 > > (pcase hkfocus-setting > > (1 (setq outline-minor-mode-highlight nil) > > (setq hkfocus-setting 2)) > > (2 (setq outline-minor-mode-highlight t)) > > (3 (setq outline-minor-mode-highlight 'append)) > > (4 (setq outline-minor-mode-highlight 'override)) )) >=20 >=20 > Try calling font-lock-flush. Would I just call (font-lock-flush) after the pcase ?