unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to diff (La)TeX files
@ 2020-05-09  8:38 Marcin Borkowski
  2020-05-09 10:08 ` Teemu Likonen
  2020-05-10 22:19 ` Stefan Monnier
  0 siblings, 2 replies; 5+ messages in thread
From: Marcin Borkowski @ 2020-05-09  8:38 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

Hi all,

when I diff LaTeX files, I get "double font-lock" - both AucTeX's and
diff's.  How would I turn off AUCTeX's font-lock?

Note: I'm not sure whether it's mode-specific, Emacs does not do this in
JS2-mode, but the same happens in Org-mode.  Go figure.

TIA,

-- 
Marcin Borkowski
http://mbork.pl



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to diff (La)TeX files
  2020-05-09  8:38 How to diff (La)TeX files Marcin Borkowski
@ 2020-05-09 10:08 ` Teemu Likonen
  2020-05-09 11:29   ` Marcin Borkowski
  2020-05-10 22:19 ` Stefan Monnier
  1 sibling, 1 reply; 5+ messages in thread
From: Teemu Likonen @ 2020-05-09 10:08 UTC (permalink / raw)
  To: Marcin Borkowski, Help Gnu Emacs mailing list

[-- Attachment #1: Type: text/plain, Size: 394 bytes --]

Marcin Borkowski [2020-05-09T10:38:01+02] wrote:

> when I diff LaTeX files, I get "double font-lock" - both AucTeX's and
> diff's. How would I turn off AUCTeX's font-lock?

(setq TeX-install-font-lock 'ignore)

And then restart the major mode with "M-x latex-mode RET".

-- 
/// Teemu Likonen - .-.. http://www.iki.fi/tlikonen/
// OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 251 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to diff (La)TeX files
  2020-05-09 10:08 ` Teemu Likonen
@ 2020-05-09 11:29   ` Marcin Borkowski
  0 siblings, 0 replies; 5+ messages in thread
From: Marcin Borkowski @ 2020-05-09 11:29 UTC (permalink / raw)
  To: Teemu Likonen; +Cc: Help Gnu Emacs mailing list


On 2020-05-09, at 12:08, Teemu Likonen <tlikonen@iki.fi> wrote:

> Marcin Borkowski [2020-05-09T10:38:01+02] wrote:
>
>> when I diff LaTeX files, I get "double font-lock" - both AucTeX's and
>> diff's. How would I turn off AUCTeX's font-lock?
>
> (setq TeX-install-font-lock 'ignore)

Thanks, but I'm afraid you misunderstood me.  I _do_ want font lock in
my AUCTeX buffers.  I don't want it when diffing LaTeX files (since they
become completely unreadable with all the colors then).

Bonus points if I could easily turn TeX font-lock on and off, leaving
the diff font-lock on all the time.

Best,

-- 
Marcin Borkowski
http://mbork.pl



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to diff (La)TeX files
  2020-05-09  8:38 How to diff (La)TeX files Marcin Borkowski
  2020-05-09 10:08 ` Teemu Likonen
@ 2020-05-10 22:19 ` Stefan Monnier
  2020-05-10 23:13   ` Marcin Borkowski
  1 sibling, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2020-05-10 22:19 UTC (permalink / raw)
  To: help-gnu-emacs

> when I diff LaTeX files, I get "double font-lock" - both AucTeX's and
> diff's.  How would I turn off AUCTeX's font-lock?

I think you want to customize `diff-font-lock-syntax`.


        Stefan




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to diff (La)TeX files
  2020-05-10 22:19 ` Stefan Monnier
@ 2020-05-10 23:13   ` Marcin Borkowski
  0 siblings, 0 replies; 5+ messages in thread
From: Marcin Borkowski @ 2020-05-10 23:13 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: help-gnu-emacs


On 2020-05-11, at 00:19, Stefan Monnier <monnier@iro.umontreal.ca> wrote:

>> when I diff LaTeX files, I get "double font-lock" - both AucTeX's and
>> diff's.  How would I turn off AUCTeX's font-lock?
>
> I think you want to customize `diff-font-lock-syntax`.

Thanks, I found that variable two hours ago;-).  (I didn't expect
a font-lock-related issue to be easily solvable by myself.)

Best,

--
Marcin Borkowski
http://mbork.pl



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-05-10 23:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-09  8:38 How to diff (La)TeX files Marcin Borkowski
2020-05-09 10:08 ` Teemu Likonen
2020-05-09 11:29   ` Marcin Borkowski
2020-05-10 22:19 ` Stefan Monnier
2020-05-10 23:13   ` Marcin Borkowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).