diff options
| author | Richard M. Stallman | 2002-01-23 17:46:44 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-01-23 17:46:44 +0000 |
| commit | c5802acf35515ef346f465d09eaf10d658be2c4b (patch) | |
| tree | e01b0aa848aa86a4deb59f760622ce27fa21d457 | |
| parent | 8b06876c0421c1665e4add80c8adcb7746485727 (diff) | |
| download | emacs-c5802acf35515ef346f465d09eaf10d658be2c4b.tar.gz emacs-c5802acf35515ef346f465d09eaf10d658be2c4b.zip | |
(copy-without-properties): New function.
| -rw-r--r-- | lisp/subr.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index c199bee05dc..4512fbfafb0 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -1080,7 +1080,7 @@ Overlays might be moved and or split." | |||
| 1080 | (if (> (overlay-end o) end) | 1080 | (if (> (overlay-end o) end) |
| 1081 | (move-overlay o end (overlay-end o)) | 1081 | (move-overlay o end (overlay-end o)) |
| 1082 | (delete-overlay o))))))) | 1082 | (delete-overlay o))))))) |
| 1083 | 1083 | ||
| 1084 | ;;;; Miscellanea. | 1084 | ;;;; Miscellanea. |
| 1085 | 1085 | ||
| 1086 | ;; A number of major modes set this locally. | 1086 | ;; A number of major modes set this locally. |
| @@ -1362,6 +1362,12 @@ Value is what BODY returns." | |||
| 1362 | (cons 'progn body) | 1362 | (cons 'progn body) |
| 1363 | '(set-match-data save-match-data-internal)))) | 1363 | '(set-match-data save-match-data-internal)))) |
| 1364 | 1364 | ||
| 1365 | (defun copy-without-properties (string) | ||
| 1366 | "Return a copy of STRING with no text properties." | ||
| 1367 | (setq string (concat string)) | ||
| 1368 | (set-text-properties 0 (length string) nil string) | ||
| 1369 | string) | ||
| 1370 | |||
| 1365 | (defun match-string (num &optional string) | 1371 | (defun match-string (num &optional string) |
| 1366 | "Return string of text matched by last search. | 1372 | "Return string of text matched by last search. |
| 1367 | NUM specifies which parenthesized expression in the last regexp. | 1373 | NUM specifies which parenthesized expression in the last regexp. |