[Top][All Lists]

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

Re: Layered display API

From: Dmitry Gutov
Subject: Re: Layered display API
Date: Sat, 16 Aug 2014 13:17:14 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0

On 08/16/2014 11:41 AM, Eli Zaretskii wrote:

Please file a bug report.


Something like this:

   (put-text-property POS1 POS1+4 'eliz "xxxx")
   (put-text-property 1 5 STRING 'eliz "xxxx")
   (put-text-property 8 12 STRING 'eliz "xxxx")

where POS1 is the buffer position of the second 'a', and STRING is the
string that is the value of the 'display' property.

Yes, this doesn't sound too good: it will require modifying the buffer contents, as opposed to using an overlay, which can be removed at once.

Since we'll have to modify display strings, the code will have to account for the display logic, line-prefix, before-string, etc, anyway, if only to calculate which part of our "new" text falls on each respective display property, or on the "plain" buffer text.

reply via email to

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