help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tex-mode.el


From: Christopher Dimech
Subject: Re: tex-mode.el
Date: Thu, 11 Feb 2021 14:29:43 +0100

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" <michael_heerdegen@web.de>
> To: "Christopher Dimech" <dimech@gmx.com>
> Cc: help-gnu-emacs@gnu.org
> Subject: Re: tex-mode.el
>
> Christopher Dimech <dimech@gmx.com> 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.
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]