diff options
| author | Richard M. Stallman | 2001-11-18 06:49:25 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-11-18 06:49:25 +0000 |
| commit | 48e3f3d7a4b2345b89d5a0a4f1ab7bd97f1896b3 (patch) | |
| tree | b63b7cf5deaadbd504aa83081e7e6ba523921126 | |
| parent | 70b199c35a3960b2b9a49f0a8efbc3ef6202f9d4 (diff) | |
| download | emacs-48e3f3d7a4b2345b89d5a0a4f1ab7bd97f1896b3.tar.gz emacs-48e3f3d7a4b2345b89d5a0a4f1ab7bd97f1896b3.zip | |
(string-to-sequence): Make it obsolete.
(string-to-list, string-to-vector): Implement them directly
using append and vconcat, not with string-to-sequence.
| -rw-r--r-- | lisp/international/mule-util.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/international/mule-util.el b/lisp/international/mule-util.el index f66420a8686..e0ad655cbde 100644 --- a/lisp/international/mule-util.el +++ b/lisp/international/mule-util.el | |||
| @@ -56,16 +56,19 @@ TYPE should be `list' or `vector'." | |||
| 56 | (error "Invalid type: %s" type))) | 56 | (error "Invalid type: %s" type))) |
| 57 | ;;; val) | 57 | ;;; val) |
| 58 | ) | 58 | ) |
| 59 | (make-obsolete 'string-to-sequence | ||
| 60 | "Use `string-to-list' or `string-to-vector'" | ||
| 61 | "21.3") | ||
| 59 | 62 | ||
| 60 | ;;;###autoload | 63 | ;;;###autoload |
| 61 | (defsubst string-to-list (string) | 64 | (defsubst string-to-list (string) |
| 62 | "Return a list of characters in STRING." | 65 | "Return a list of characters in STRING." |
| 63 | (string-to-sequence string 'list)) | 66 | (append string nil)) |
| 64 | 67 | ||
| 65 | ;;;###autoload | 68 | ;;;###autoload |
| 66 | (defsubst string-to-vector (string) | 69 | (defsubst string-to-vector (string) |
| 67 | "Return a vector of characters in STRING." | 70 | "Return a vector of characters in STRING." |
| 68 | (string-to-sequence string 'vector)) | 71 | (vconcat string)) |
| 69 | 72 | ||
| 70 | ;;;###autoload | 73 | ;;;###autoload |
| 71 | (defun store-substring (string idx obj) | 74 | (defun store-substring (string idx obj) |