[Top][All Lists]

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

Re: M-w, then C-y. C-y inserts text properties that aren't on original.

From: Alan Mackenzie
Subject: Re: M-w, then C-y. C-y inserts text properties that aren't on original.
Date: Sun, 21 Feb 2010 21:59:51 +0000
User-agent: Mutt/1.5.9i

Hi, Eli,

On Sat, Feb 20, 2010 at 11:25:28AM +0200, Eli Zaretskii wrote:
> > Date: Sat, 20 Feb 2010 11:02:39 +0200
> > From: Eli Zaretskii <address@hidden>
> > Cc: address@hidden

> > I wonder if we could make the code which replaces `category' with what
> > it stands for, with a slightly less general code that replaces only
> > those values of `category' that are used for buttons.  Or some similar
> > change which will make that feature more focused on the problem it
> > needs to solve.

> Here's one idea: make a deep search through the properties of the
> value of the `category' property, looking for any of the properties in
> `yank-excluded-properties'.  If found, do the replacement we do now.

I'm not in favour of anything like this.

The way the current replacement works, it replaces category properties
with "hard" properties.  These "hard" properties then foul up future
category properties, should you apply a different category, or change
the properties on the category symbol.

As Richard said back in 2002, it's a difficult problem to fix, because
there's no general or canonical case.  I think a better way would have
been simply to drop category properties.  But we've got what we've got,
so why not just stick with it?

Alan Mackenzie (Nuremberg, Germany).

reply via email to

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