summaryrefslogtreecommitdiff
path: root/lisp/register.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2002-04-19 00:23:18 +0000
committerRichard M. Stallman <rms@gnu.org>2002-04-19 00:23:18 +0000
commite7c765c3fc0adbfd1f397bae54b6d24f985927f9 (patch)
tree539778764d1349b92554e344dab058dd226c8224 /lisp/register.el
parentafa0467f08f00add1f7056f8d0ccc0a3aa034d4b (diff)
downloademacs-e7c765c3fc0adbfd1f397bae54b6d24f985927f9.tar.gz
(insert-register): Use insert-for-yank.
(describe-register-1): Discard text props in yank-excluded-properties.
Diffstat (limited to 'lisp/register.el')
-rw-r--r--lisp/register.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/register.el b/lisp/register.el
index c93d52c9f9b..98adce7ae86 100644
--- a/lisp/register.el
+++ b/lisp/register.el
@@ -230,6 +230,9 @@ The Lisp value REGISTER is a character."
(princ (car val))))
((stringp val)
+ (setq val
+ (remove-list-of-text-properties 0 (length val)
+ yank-excluded-properties val))
(if verbose
(progn
(princ "the text:\n")
@@ -253,7 +256,7 @@ Interactively, second arg is non-nil if prefix arg is supplied."
((consp val)
(insert-rectangle val))
((stringp val)
- (insert val))
+ (insert-for-yank val))
((numberp val)
(princ val (current-buffer)))
((and (markerp val) (marker-position val))