emacs-devel
[Top][All Lists]
Advanced

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

Re: Idea: Be able to use text properties as face attributes


From: Clément Pit-Claudel
Subject: Re: Idea: Be able to use text properties as face attributes
Date: Wed, 29 Mar 2017 11:36:54 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 2017-03-29 11:21, Lars Ingebrigtsen wrote:
> That is:  He wants to say
> 
> (defprop my-prop '(:read-only t :invisible nil :font "futura"))
> (set-text-prop (point-min) (+ (point-min) 4) my-prop)
> (set-text-prop (+ (point-min) 10) (+ (point-min) 20) my-prop)

I think that's what I proposed in response to Drew's original message, and what 
Stefan suggests (it's a natural extension of overlay categories).  But I'm not 
sure it's what Drew had in mind.

Specifically, Drew (IIUC) would like *faces* to behave as these hypothetical 
'defprop's.  This way, all the existing machinery on faces could be reused.

Clément.



reply via email to

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