Andreas Matthias <[email protected]> writes:

> Visiting the file below in docTeX-mode displays the second vertical
> bar in |\foobar| in font-latex-sedate-face, whereas it was displayed
> in font-latex-doctex-documentation-face with older AUCTeX versions.

Applies also to tex/latex.

> Are there rationales for this change?

I had changed a bit font-lock stuff in order go a step towards LaTeX3
highlighting.  Basically, macros used to be hard-coded as \\[a-zA-Z]+
and now they are recognized as a \\ followed by one or many symbol or
word characters.  However, | had symbol syntax, thus the | in \foobar|
was treated as being part of the macro.

I now changed the | syntax to "paired delimiter".  Now the old
fontification is back, and as a cool side-effect when you type |
actually || with point in between is inserted (with recent GNU emacsen
that have electric pair enabled by default).

> I prefer the former representation.

Yup, cause that's the correct one. :-)

If you want, you can test the git version.  I think I'll also do a new
ELPA release anytime soon cause there was some critical customization
bug which just got fixed but I don't know exactly when I come to this.

Bye,
Tassilo


_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to