How to get rid of text attributes?
Stephen J. Turnbull
stephen at xemacs.org
Sat Dec 27 10:57:46 EST 2008
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).
More information about the XEmacs-Beta
mailing list