emacs-devel
[Top][All Lists]
Advanced

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

Re: A vision for multiple major modes: some design notes


From: Eli Zaretskii
Subject: Re: A vision for multiple major modes: some design notes
Date: Fri, 22 Apr 2016 12:04:24 +0300

> Date: Thu, 21 Apr 2016 21:33:23 +0000
> Cc: address@hidden, address@hidden
> From: Alan Mackenzie <address@hidden>
> 
> I'll get a fuller reply to you later.  But for now....

Thanks.

> Given a buffer position, we need to be able to find the corresponding
> island chain.  "Obviously", we do this with a text property, which we
> might as well call `island', or possibly `chain'.

Why text properties?  Have you considered a hash table?  I think it
will be faster, and will also avoid a few complications that text
properties bring as baggage you don't necessarily want (like what
happens when you copy text to another location or buffer).



reply via email to

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