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 04:27:52 +0100 Message-ID: References: <878s7xkvgi.fsf@zoho.eu> <87im71jeew.fsf@zoho.eu> <8735y5jde6.fsf@zoho.eu> <87y2fxhxjz.fsf@zoho.eu> <871rdnfy2i.fsf@zoho.eu> <87tuqje1ot.fsf@zoho.eu> 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="2561"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: moasenwood@zoho.eu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 11 04:28:57 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 1lA2f2-0000St-BF for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 11 Feb 2021 04:28:56 +0100 Original-Received: from localhost ([::1]:52030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lA2f1-0002Jq-CN for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 10 Feb 2021 22:28:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45632) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lA2e6-0002Jf-MF for help-gnu-emacs@gnu.org; Wed, 10 Feb 2021 22:27:58 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:57579) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lA2e3-0006Rp-9t for help-gnu-emacs@gnu.org; Wed, 10 Feb 2021 22:27:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1613014073; bh=V2wOqoMFkpnQnKGdB0CIzbkkaxY76bItl7QxlfB5l6g=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=FFjSrRYEYeaWCAE1w4uD7OyyqiG2GVmeIDrhlT/C+Gj2bqSsW6ff0Y2xzmC4Ze6HV lYHXeSy/Tc0C8BYMQT5y5KHMEYHwbMEy8Y0ukqCdc28xMbsU/xvXNcKnl+AcDJWy7Q Oj/wNZvgk8BsPEm41glspuMxNraYk+Ass7Crajfg= 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 04:27:52 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87tuqje1ot.fsf@zoho.eu> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:peIzJl+jrNPvZgzazkmOw44dlw9StGokgyGvJEyX5IrdRd+HC5Sedm1QvHYNN/KForA1L hEURXoKukOE5BdFa0VmGqyJAinzs1lWq+41cQCE4TEh8O9mh75CnQS0K5IHSDx615bkzNOiyRAIW DLF8n2OjAOFId1N6UKT5D4I2l0kk2tMSJRwe76Tf9edAFOB5zdI8+FFn0zWa6n4EvcJTUdWiNkCZ /dRhrl9Q5A6Q3uyVR0foPR9jFd4oL8ssawnfeR1ccISI34QiihQcQvvfNzeUNx+x3OOVde7BtO4Y JM= X-UI-Out-Filterresults: notjunk:1;V03:K0:ZbySUbMT9Fc=:QgDwAmnjsjzJDoBu6ZiErV BE1nQxLBiS/pdNFys9DEXQl+i5L9ikbfm/Q+o+1OBvCLLM++F47kDzMai5Yozy1ZrbNhV+D3y 8utGnA1++9vBWMg3f39dM04mz1Ntx+QwQHTtADpP/EZ1rJY38UZaXz1RQMTn/X+JSwyouGQZH +8lxph+oeCoZDB5sBVaXUbxjFif7wkBc4AryXw4uU5yuvosNxJjRGvOTLL57SiTpBSWr8AdiU 5rb2fXphciLAZ/lvlopR+sGpCfUBnPOAzUGrtx2fpt+EvjgSof+z5Wbo3Ywn/wJrL7dTF9eTy VjlfMXEPe1DUBNHX6t8Jy++MBJsRptOHAR4Vondy40FFRvS/zj7itJ7Z7BHn02BMxQT6T+QkY iWU1vcJn8LYYE96ZtI2LIszkSz66038oIODG/bdAgc6KQHrq3fYAe90dBLDgMYb2Z8z4Y3ql6 UDMtCxGGS9AML6JQ55qFoleehknu6GpzJ3m7FndZalksDY2AIunrX15boMvBjwsojQ2Q8cyzQ dfOhhXqQmwrmbymJV8PkWgEJnziH/VUwG4wKpAFaI+RjLq7zQY4ILXoiw89OQQn2MQbklgGOZ kxPXFzBjWHAJg= Received-SPF: pass client-ip=212.227.15.19; 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_H3=0.001, RCVD_IN_MSPIKE_WL=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:127797 Archived-At: I think that I have found a problem with my code, because when I applied the two commands mentioned for tex-mode.el the fontifying was disabled on the entire buffer. (setq-local tex-fontify-script nil) (font-lock-flush) I am actually trying to write a minor-mode for suscript to work also for texinfo, when one can call tex commands. For texinfo, the fontifying is enabled as soon as the mode is called. However, for my minor mode I would like that a function would set things up, and another to disable it. Have copied the following code parts from tex-mode.el and want to write a function that enables the raising and lowering fontification. And anothr that I can call to disable. Have fount the setup in tex-mode.el quite complicated. =2D------- (defcustom tex-fontify-script t) (defcustom tex-font-script-display '(-0.2 0.2)) (defcustom tex-suscript-height-ratio 0.8) (defcustom tex-suscript-height-minimum 0.0) (defun tex-suscript-height height) (defface superscript ) (defface subscript ) (defun tex-font-lock-match-suscript limit) (defun tex-font-lock-suscript pos) (defun tex-font-lock-unfontify-region beg end) > Sent: Thursday, February 11, 2021 at 3:13 PM > From: "Emanuel Berg via Users list for the GNU Emacs text editor" > To: help-gnu-emacs@gnu.org > Subject: Re: tex-mode.el > > Christopher Dimech wrote: > > > Still same problem > > > > (setq-local tex-fontify-script nil) > > (font-lock-flush) > > > > It works in the sense that when I call it the new text is > > not fontified. However, the text that was already fontified > > remains fontified. > > Does it work for you when you start Emacs with -Q? > > -- > underground experts united > http://user.it.uu.se/~embe8573 > https://dataswamp.org/~incal > > >