aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/subr.el8
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.
1367NUM specifies which parenthesized expression in the last regexp. 1373NUM specifies which parenthesized expression in the last regexp.