Stephen J. Turnbull wrote:
Andreas Roehler writes:
> Wouldn't `buffer-substring-no-properties' be the right thing here?
Maybe. To do what? The OP finds cut-and-paste of highlighting
undesirable, ie, it's an interactive thing. b-s-n-p isn't even a
command. And Mats says he almost never wants extents copied with the
text, so for GNU compatibility (more precisely, loser code that abuses
text properties where they should be used) we're going to want
functions that can wipe off the duplicability ex post (eg, in a hook),
I think. Or maybe paste-special is the way to go, in which case
b-s-n-p isn't the right thing because it's on the cut/copy side, and
we're looking for a function on the paste side (ie, from the kill
ring, which isn't a buffer, it's a list of strings).
My concern was to reduce the number of
employed functions in Emacsen rather than to augment
them.
The OP asked a thing and described the case, which seem
to differ already somehow. The point I see is only
insertion, condition in original buffer doesn't matter
AFAIU.
You delivered a way to solve this, however with a third
momentum.
With functions already available we could have (or
have?) a yank-without-properties.
Andreas Röhler
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta