[Top][All Lists]

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

[AUCTeX] Re: Customizing behavior TeX-insert-quote in comments

From: Reiner Steib
Subject: [AUCTeX] Re: Customizing behavior TeX-insert-quote in comments
Date: Wed, 09 Aug 2006 23:48:47 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

On Wed, Aug 09 2006, Ralf Angeli wrote:

> * Reiner Steib (2006-08-09) writes:
>> But I'm not sure if it's the right approach.  Especially it's not
>> clear to me why we check for comments and math two times (font-lock
>> and `texmathp').
> There are people who don't use font locking.

Sure.  But is the font-lock based detection (`font-latex-math-face',
`font-lock-comment-face') more reliable than `texmathp' and

>> Comments?
>> +(defcustom TeX-quote-force-quote-faces '(font-latex-verbatim-face
>> +                                     font-latex-math-face
>> +                                     font-lock-comment-face)
> I'd rather use a defcustom which does not exhibit implementation
> details.  A list of symbols, e.g. 'verbatim, 'math, 'comments, with
> respective explanatory strings for the defcustom could do.

Well, this would require a mapping from these symbols to the faces, so
that the user cannot add arbitrary faces anymore.

Bye, Reiner.
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |

reply via email to

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