help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to use `narrow'?


From: Ilya Zakharevich
Subject: Re: How to use `narrow'?
Date: Tue, 18 Oct 2005 19:41:51 +0000 (UTC)
User-agent: trn [how to get a version via %-escapes???] with a custom header

[A complimentary Cc of this posting was sent to
David Hansen 
<david.hansen@gmx.net>], who wrote in article <87ek6j17i5.fsf@robotron.ath.cx>:
> Is this working?
> 
> (add-hook 'java-scrip-mode-hook 
>           (lambda ()
>             (set
>              (make-local-variable 'font-lock-dont-widen t))))

No, it does not help.  font-lock widens unconditionally.

> ,----[ C-h v font-lock-dont-widen RET ]
> | font-lock-dont-widen is a variable defined in `font-lock'.
> | Its value is nil
> | 
> | Documentation:
> | If non-nil, font-lock will work on the non-widened buffer.
> | Useful for things like RMAIL and Info where the whole buffer is not
> | a very meaningful entity to highlight.
> `----

I would prefer a solution which works in real world, not in some
imaginary settings...  However, it is nice that somebody realized that
widening is a problem.  When will we see it, in 22.1?

Thanks,
Ilya


reply via email to

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