aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/subr.el13
1 files changed, 0 insertions, 13 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index bca1fcf23d3..ad6e07437ab 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -1483,19 +1483,6 @@ The value returned is the value of the last form in BODY."
1483 (cons 'progn body) 1483 (cons 'progn body)
1484 '(set-match-data save-match-data-internal)))) 1484 '(set-match-data save-match-data-internal))))
1485 1485
1486(defun substring-no-properties (string &optional from to)
1487 "Return a substring of STRING, with no text properties.
1488The substring starts at index FROM and ends before TO.
1489If FROM is nil or omitted, it defaults to the beginning of STRING.
1490If TO is nil or omitted, it defaults to the end of STRING.
1491If FROM or TO is negative, it counts from the end.
1492
1493Simply (substring-no-properties STRING) copies a string without
1494its properties."
1495 (let ((str (substring string (or from 0) to)))
1496 (set-text-properties 0 (length str) nil str)
1497 str))
1498
1499(defun match-string (num &optional string) 1486(defun match-string (num &optional string)
1500 "Return string of text matched by last search. 1487 "Return string of text matched by last search.
1501NUM specifies which parenthesized expression in the last regexp. 1488NUM specifies which parenthesized expression in the last regexp.