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: Drew Adams
Subject: RE: Idea: Be able to use text properties as face attributes
Date: Wed, 29 Mar 2017 10:08:17 -0700 (PDT)

> > (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.

Yup.  Reuse all of the "existing machinery" provided for faces.

_And_ (as in Lars's example above), manipulate named bundles
of props.

Those two things combined: (1) use _faces_ (2) as the objects
that _encapsulate a bundle of properties_.



reply via email to

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