diff options
| author | Glenn Morris | 2018-04-25 14:40:28 -0400 |
|---|---|---|
| committer | Glenn Morris | 2018-04-25 14:40:28 -0400 |
| commit | 6e65b1e8a9e8d8a7c68ead3016ff0b9265311700 (patch) | |
| tree | a6d571b87626eaec2dc618b84370caaa598155cc | |
| parent | 532f5fb3877ccd535a822f7c3c08d396621b4325 (diff) | |
| download | emacs-6e65b1e8a9e8d8a7c68ead3016ff0b9265311700.tar.gz emacs-6e65b1e8a9e8d8a7c68ead3016ff0b9265311700.zip | |
* lisp/net/eudc.el (split-string): Remove pre-21 fallback definition.
| -rw-r--r-- | lisp/net/eudc.el | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lisp/net/eudc.el b/lisp/net/eudc.el index 98f70bd1f7a..00d8c60311b 100644 --- a/lisp/net/eudc.el +++ b/lisp/net/eudc.el | |||
| @@ -158,25 +158,6 @@ properties on the list." | |||
| 158 | (setq plist (cdr (cdr plist)))) | 158 | (setq plist (cdr (cdr plist)))) |
| 159 | default)) | 159 | default)) |
| 160 | 160 | ||
| 161 | (if (not (fboundp 'split-string)) | ||
| 162 | (defun split-string (string &optional pattern) | ||
| 163 | "Return a list of substrings of STRING which are separated by PATTERN. | ||
| 164 | If PATTERN is omitted, it defaults to \"[ \\f\\t\\n\\r\\v]+\"." | ||
| 165 | (or pattern | ||
| 166 | (setq pattern "[ \f\t\n\r\v]+")) | ||
| 167 | (let (parts (start 0)) | ||
| 168 | (when (string-match pattern string 0) | ||
| 169 | (if (> (match-beginning 0) 0) | ||
| 170 | (setq parts (cons (substring string 0 (match-beginning 0)) nil))) | ||
| 171 | (setq start (match-end 0)) | ||
| 172 | (while (and (string-match pattern string start) | ||
| 173 | (> (match-end 0) start)) | ||
| 174 | (setq parts (cons (substring string start (match-beginning 0)) parts) | ||
| 175 | start (match-end 0)))) | ||
| 176 | (nreverse (if (< start (length string)) | ||
| 177 | (cons (substring string start) parts) | ||
| 178 | parts))))) | ||
| 179 | |||
| 180 | (defun eudc-replace-in-string (str regexp newtext) | 161 | (defun eudc-replace-in-string (str regexp newtext) |
| 181 | "Replace all matches in STR for REGEXP with NEWTEXT. | 162 | "Replace all matches in STR for REGEXP with NEWTEXT. |
| 182 | Value is the new string." | 163 | Value is the new string." |