From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Disabling superscript and subscript face from "tex-mode.el" Date: Tue, 09 Feb 2021 21:09:36 +0100 Message-ID: <875z313sqg.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4453"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.8; emacs 28.0.50 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 09 21:38:00 2021 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 1l9Zlo-00014F-5O for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 09 Feb 2021 21:38:00 +0100 Original-Received: from localhost ([::1]:41972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9Zln-0008E6-7Q for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 09 Feb 2021 15:37:59 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39852) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9ZNd-0000FA-4i for help-gnu-emacs@gnu.org; Tue, 09 Feb 2021 15:13:01 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54397) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9ZNc-0002I4-Rl for help-gnu-emacs@gnu.org; Tue, 09 Feb 2021 15:13:00 -0500 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:59693) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1l9ZNb-0005uZ-41 for help-gnu-emacs@gnu.org; Tue, 09 Feb 2021 15:12:59 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailauth.nyi.internal (Postfix) with ESMTP id E08C327C0054 for ; Tue, 9 Feb 2021 15:12:58 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 09 Feb 2021 15:12:58 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrheehgddufeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpehffgfhvffuffgjkfggtgesthdtre dttdertdenucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdho rhhgqeenucggtffrrghtthgvrhhnpeevveeikeetkeeviefgfeffiedvteeguddvffeuue duveegtddthedvhfeuveffhfenucfkphepleefrddvfeeirddugedurddvvddtnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhrnhdomh gvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeeijeefkeejkeegqdeifeehvdel kedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: from thinkpad-t440p (p5dec8ddc.dip0.t-ipconnect.de [93.236.141.220]) by mail.messagingengine.com (Postfix) with ESMTPA id 49034108005F for ; Tue, 9 Feb 2021 15:12:58 -0500 (EST) In-reply-to: X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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:127738 Archived-At: Christopher Dimech writes: > Am trying to write a function that disables superscript and subscript > face from "tex-mode.el". > > Thought about calling "tex-font-lock-unfontify-region" or > having (setq tex-fontify-script nil). This works for me with emacs -Q: (defun th/tex-toggle-script () (interactive) (setq-local tex-fontify-script (not tex-fontify-script)) (font-lock-flush)) HTH, Tassilo