[Top][All Lists]

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

Re: Yanking text properties

From: Stefan Monnier
Subject: Re: Yanking text properties
Date: Fri, 02 Nov 2001 19:14:18 -0500

> "Stefan Monnier" <monnier+gnu/address@hidden> writes:
> > > be an acceptable partial[1] workaround?
> > 
> > I think the above approach is a bit too heavy-weight.
> > 
> > > We could also use 'after-change-functions' to strip the properties.
> > 
> > That sounds like a better approach.  Although, advising `yank'
> > might work just as well.
> Personally, I'd like to just change the way `buffer-substring' &c work,
> to respect a list of properties to strip when _cutting_.  Since the
> buffer from which the text came knows about which properties it uses
> that are `wierd', it is in a much better position to do know what to do
> about them.
> So a common value might be '(field read-only)

I'm not sure if doing it at the elisp level (i.e. buffer-substring)
rather than at the user-level (i.e. kill or yank) is better.


reply via email to

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