emacs-devel
[Top][All Lists]
Advanced

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

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


From: Ralf Angeli
Subject: Re: font-lock-fontify-syntactically-region: could someone check?
Date: Sun, 25 Feb 2007 20:15:12 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux)

* 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)

emacspeak-advice.el contains the following code:

(add-hook 'text-mode-hook
          (function (lambda ()
                      (modify-syntax-entry 10 " "))))

In TeX-related modes a newline is considered the end of a comment.
The code above sets its syntax to whitespace, though.  Like this no
comment end can be found.

-- 
Ralf




reply via email to

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