diff options
| author | Richard M. Stallman | 2002-03-26 09:17:56 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-03-26 09:17:56 +0000 |
| commit | de9d5ce401f603f49906e38a5ca5dc46f2238cc2 (patch) | |
| tree | cb96a311f3404f2a67ee1e81d724d1950da958de | |
| parent | a5f083741c3290d08bcbd98db70e39c8628a0dcb (diff) | |
| download | emacs-de9d5ce401f603f49906e38a5ca5dc46f2238cc2.tar.gz emacs-de9d5ce401f603f49906e38a5ca5dc46f2238cc2.zip | |
(substring-no-properties): Function deleted (now in C).
| -rw-r--r-- | lisp/subr.el | 13 |
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. | ||
| 1488 | The substring starts at index FROM and ends before TO. | ||
| 1489 | If FROM is nil or omitted, it defaults to the beginning of STRING. | ||
| 1490 | If TO is nil or omitted, it defaults to the end of STRING. | ||
| 1491 | If FROM or TO is negative, it counts from the end. | ||
| 1492 | |||
| 1493 | Simply (substring-no-properties STRING) copies a string without | ||
| 1494 | its 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. |
| 1501 | NUM specifies which parenthesized expression in the last regexp. | 1488 | NUM specifies which parenthesized expression in the last regexp. |