aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-03-26 09:17:56 +0000
committerRichard M. Stallman2002-03-26 09:17:56 +0000
commitde9d5ce401f603f49906e38a5ca5dc46f2238cc2 (patch)
treecb96a311f3404f2a67ee1e81d724d1950da958de
parenta5f083741c3290d08bcbd98db70e39c8628a0dcb (diff)
downloademacs-de9d5ce401f603f49906e38a5ca5dc46f2238cc2.tar.gz
emacs-de9d5ce401f603f49906e38a5ca5dc46f2238cc2.zip
(substring-no-properties): Function deleted (now in C).
-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.