[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: font-lock-fontify-syntactically-region: could someone check?
From: |
T. V. Raman |
Subject: |
Re: font-lock-fontify-syntactically-region: could someone check? |
Date: |
Sun, 25 Feb 2007 13:27:53 -0800 |
Yes, I think this is it.
Thanks for catching it for me -- I was looking in all the wrong places.
>>>>> "Ralf" == Ralf Angeli <address@hidden> writes:
Ralf> * T. V. Raman (2007-02-25) writes:
>> I stepped through the code with debug-on-entry but got
>> very confused by the complexity in font-lock --- so I'm
>> still at a loss.
>>
>> The bug shows up in vanilla tex-mode (i.e. the one that
>> ships with emacs 22), texinfo-mode -- as well as all modes
>> provided by auctex. (from comments in the auctex code, it
>> looks like the cloned and later adopted the syntactic
>> fontifier from tex-mode.el)
Ralf>
Ralf> emacspeak-advice.el contains the following code:
Ralf>
Ralf> (add-hook 'text-mode-hook (function (lambda ()
Ralf> (modify-syntax-entry 10 " "))))
Ralf>
Ralf> In TeX-related modes a newline is considered the end of
Ralf> a comment. The code above sets its syntax to
Ralf> whitespace, though. Like this no comment end can be
Ralf> found.
Ralf>
Ralf> -- Ralf
--
Best Regards,
--raman
Email: address@hidden
WWW: http://emacspeak.sf.net/raman/
AIM: emacspeak GTalk: address@hidden
PGP: http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman
IRC: irc://irc.freenode.net/#emacs