From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: tex-mode.el Date: Thu, 11 Feb 2021 14:29:43 +0100 Message-ID: References: <878s7xkvgi.fsf@zoho.eu> <87im71jeew.fsf@zoho.eu> <20210209201315.GD30277@tuxteam.de> <20210209204537.GE30277@tuxteam.de> <877dngtw7l.fsf@web.de> <87a6sbxob4.fsf@web.de> <874kiji6pz.fsf@web.de> 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="21886"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 11 15:04:25 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 1lACa1-0005ZY-M6 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 11 Feb 2021 15:04:25 +0100 Original-Received: from localhost ([::1]:44636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lACa0-0000nF-NT for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 11 Feb 2021 09:04:24 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAC2X-0003bG-EV for help-gnu-emacs@gnu.org; Thu, 11 Feb 2021 08:29:49 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:58847) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAC2U-0003nI-9w for help-gnu-emacs@gnu.org; Thu, 11 Feb 2021 08:29:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1613050183; bh=ZAKgWryBWrju+YsAhQtI/+9C7sgqwjU6cklelrMV9LA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=HKtoUjEvh0wxYOzPaDOhcCLlR4vFS5Ehb1+0me/JIzyAdLrFOAKAg21B7g3v7ftBZ y8VdFABBw6al9jBpGtsI4zMO7MpxM/lTJcsc1IJcFzb9Q61C525LdbGE6pORQlyaC9 boMfdMqGT6DU2a91dawe8901Gfrabxr8d2raUKsc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs12.server.lan [172.19.170.180]) (via HTTP); Thu, 11 Feb 2021 14:29:43 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <874kiji6pz.fsf@web.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:nOdKqu7A7IAXgrGpOvMtaU6ZBpIssfgjppaoKO4IFSwGBvxu49c3By20vqFCHu+fGYck9 /HIOiwBTEY/x+HAOMSUs5JpWqzAgqDLrGJ+6xwmMYG0XOryjlzoVDsPlzGQ9K2zERkTpRXFSlWrc a+Zq07Irp2RU8noGtgbG7BW61Ofb5MbOz8NGIeHu6OInb0MOpzRJqwfXFm9Frcf0ZebpKRa42Q9E w9CeAaQ5NfLJ760PF+MzyOAyZi2+PAYrAcTIQDBO/XS/tods9+dvsfNJHgA0obUIoHRCcsm0b7jn qo= X-UI-Out-Filterresults: notjunk:1;V03:K0:mNi4m5t5ahY=:bq7SyOKuIxCHjlH5JsuhJ9 hHLjqNlnkld9DFJbfH4KKor6IivYc8tC+M3kPpRYYJYPNRxumucSoE2Iq44459xnwbfrkuc0a JIrohLzjd6+YTpHCYcLH+I+ATuWWrHEr/fQUP+wZ4kxz8wzHcoRmFaWIHTXhTu+n5gnUhyCux 9gI8FAW2DWrcTYS4E6XpAM3BxUBTPS3HslNwE0XGoUlrVOze3KFMtgUc0gUnbjQt3SPPQRh60 xGae85cfkMXxfp8oT4dJOvKSBWAehvVQogtBOFLxXDajz8Whhb+rSqF+fB/Emmc8nfwexzdY5 7I4GZLUyMnhlfhptsJkOOLkdatiXOXrAQV8Hu4QqlRuMSrSj2qpa0dIhATOFnkf694O14A5Ib eXHolm4CXUBj7qTkqv3QXI5SvhhZ3/9cytdm+M9JdBozyoDjwbdtJ8S4LsMzdT9rU/UPajob2 eGh8d+/VAQlF74G6oAvGdoN8Wy6Ge1VtlrZpWvnRlxyhBITSfblLe0liDd06qCCfW11HYFaAH CfPGHjirW2jAAv1GxQJhlfimghZbJ71+I6uII7CeHNEKOrSZQ+Z3XQ/tqN5F/8e8k4QQmCrkz w+D9T/xYK6LrQ= Received-SPF: pass client-ip=212.227.15.15; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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.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:127811 Archived-At: The whole point would be to call "(tex-font-lock-match-suscript limit)" and "(tex-font-lock-suscript pos)", which is then to be added to font-lock. My minor-mode has the equivalent code under different function names. > Sent: Thursday, February 11, 2021 at 4:11 PM > From: "Michael Heerdegen" > To: "Christopher Dimech" > Cc: help-gnu-emacs@gnu.org > Subject: Re: tex-mode.el > > Christopher Dimech writes: > > > When I used "tex-mode.el", the suscript fontification can be disabled > > using the following function. But does not work with my minor-mode. > > > > (defun supinf-disable () > > (interactive) > > (setq-local tex-fontify-script nil) > > (font-lock-flush)) > > I would M-x trace-function to check if `supinf-disable-cruc' (enter the > name at the prompt) is called when you disable. It should be. And the > function seems to do the job. > > > I am trying to have two functions, one to enable, another > > to disable. Enabling is also creating me problems to set up. > > The code in tex-mode.el is in quite a mess and surely does not > > help a lot. > > It's no simple stuff. I'll try to have another look tomorrow when I get > the time - or do you have any concrete questions? > > Michael. > >