[Top][All Lists]

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

Re: [Emacs-diffs] widen-limits c331b66: Implement buffer-widen-limits fu

From: Eli Zaretskii
Subject: Re: [Emacs-diffs] widen-limits c331b66: Implement buffer-widen-limits functionality
Date: Wed, 23 Mar 2016 17:34:50 +0200

> From: Vitalie Spinu <address@hidden>
> Date: Wed, 23 Mar 2016 15:17:03 +0100
> Cc: address@hidden
> Widen doesn't go wrong in itself. It what you do when you widen. In 
> multi-modes
> which use narrowing to create a micro-universe for inner modes, inner mode 
> might
> widen then compute some stuff on code from other language regions. This leads 
> to
> errors of all kind.
> For example when multi-mode advices font-lock-default-fontify-region it cannot
> control what individual functions in font-lock-keywords are doing. In case of
> syntax-propertize-function it's a complete black box. The function can decide 
> to
> do whatever there.
> Luckily if major-modes doesn't use widen or parse-partial-sexp directly it all
> seem to work quite well with proper advice of relevant functions.

Isn't prog-widen the solution to those issues?

reply via email to

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