# HG changeset patch # User Richard M. Stallman # Date 1011808004 0 # Node ID ec2db12c76709a615ff36314d2c179764e79d50f # Parent 4d674ddf28fb38e164112e44d6b9534b353f1117 (copy-without-properties): New function. diff -r 4d674ddf28fb -r ec2db12c7670 lisp/subr.el --- a/lisp/subr.el Wed Jan 23 04:03:11 2002 +0000 +++ b/lisp/subr.el Wed Jan 23 17:46:44 2002 +0000 @@ -1080,7 +1080,7 @@ (if (> (overlay-end o) end) (move-overlay o end (overlay-end o)) (delete-overlay o))))))) - + ;;;; Miscellanea. ;; A number of major modes set this locally. @@ -1362,6 +1362,12 @@ (cons 'progn body) '(set-match-data save-match-data-internal)))) +(defun copy-without-properties (string) + "Return a copy of STRING with no text properties." + (setq string (concat string)) + (set-text-properties 0 (length string) nil string) + string) + (defun match-string (num &optional string) "Return string of text matched by last search. NUM specifies which parenthesized expression in the last regexp.