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

Re: font-lock-fontify-syntactically-region: could someone check?

fixed the bug -- thanks!

Emacspeak Users:
tex-mode and derivatives should now behave correctly.

Many many years ago, I had added a text-mode-hook in emacspeak
that treated newlines as whitespace --- this was to avoid clause
boundaries at each line when speaking a buffer; that ends up
interacting badly with font-lock because the newline then no
longer counts as the end of a comment.

I've checked in the fix; make sure after loading the updated
that you've not inadvertantly saved text-mode-hook via custom --
if you have you will need to M-x customize-variable
text-mode-hook and remote the function there that modifies the
syntax entry for newline (ascii 10).
>>>>> "Ralf" == Ralf Angeli <angeli@caeruleus.net> 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> emacspeak-advice.el contains the following code:
    Ralf> (add-hook 'text-mode-hook (function (lambda ()
    Ralf> (modify-syntax-entry 10 " "))))
    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

Best Regards,

Email:  raman@users.sf.net
WWW:    http://emacspeak.sf.net/raman/
AIM:    emacspeak       GTalk: tv.raman.tv@gmail.com
PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:    irc://irc.freenode.net/#emacs

To unsubscribe from the emacspeak list or change your address on the
emacspeak list send mail to "emacspeak-request@cs.vassar.edu" with a
subject of "unsubscribe" or "help"

If you have questions about this archive or had problems using it, please send mail to:

priestdo@cs.vassar.edu No Soliciting!

Emacspeak List Archive | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 | 2001 | 2000 | 1999 | 1998 | Pre 1998

Emacspeak Files | Emacspeak Blog