emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] comment-cache 223d16f 2/3: Apply `comment-depth' text


From: Alan Mackenzie
Subject: Re: [Emacs-diffs] comment-cache 223d16f 2/3: Apply `comment-depth' text properties when calling `back_comment'.
Date: Tue, 8 Mar 2016 21:43:43 +0000
User-agent: Mutt/1.5.24 (2015-08-30)

Hello, Dmitry.

On Tue, Mar 08, 2016 at 11:22:26PM +0200, Dmitry Gutov wrote:
> On 03/08/2016 10:07 PM, Alan Mackenzie wrote:

> >> My point is that instead of creating a new kind of "syntax cache" for
> >> this specific purpose, we'd be better off using the cache we already have.

> > Maybe, maybe not.  Special purpose things can have an austere simplicity
> > which their general purpose equivalents lack.  Think of a high quality
> > screwdriver, and compare it to using the screwdriver piece of a Swiss
> > Army knife.

> Consider this: when we implement mixed-major-mode support in Emacs, it's 
> probably going to be via an extension to syntax-ppss.

If you have two different modes, one above the other, you will need two
different syntax tables, one above the other.

> Will an independent comment-cache facility support that automatically, 
> or will it need corresponding changes as well?

Once you've solved the symtax table problem, support will be automatic.

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

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