]> git.eshelyaron.com Git - emacs.git/commitdiff
(insert-register): Use insert-for-yank.
authorRichard M. Stallman <rms@gnu.org>
Fri, 19 Apr 2002 00:23:18 +0000 (00:23 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 19 Apr 2002 00:23:18 +0000 (00:23 +0000)
(describe-register-1): Discard text props in yank-excluded-properties.

lisp/register.el

index c93d52c9f9bee2a636116cfaea94895a5531de67..98adce7ae86fdcb7e96cf288fda69da67c4e4bfb 100644 (file)
@@ -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))