diff options
| author | Lars Ingebrigtsen <larsi@gnus.org> | 2019-06-14 14:37:29 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen <larsi@gnus.org> | 2019-06-14 14:37:29 +0200 |
| commit | fe12ec4b0d71f8adb572c68c6f662d7783382fb1 (patch) | |
| tree | 8e7393ceea49d72c1d5125f48730624a4d4ba61e | |
| parent | 7b837cd707753919dea0c14207c11643f7a88e87 (diff) | |
| download | emacs-fe12ec4b0d71f8adb572c68c6f662d7783382fb1.tar.gz | |
Unobsolete string-to-multibyte
* lisp/subr.el: Un-obsolete string-to-multibyte, because it's a
useful function. string-to-unibyte has already been un-obsoleted.
| -rw-r--r-- | etc/NEWS | 10 | ||||
| -rw-r--r-- | lisp/subr.el | 4 |
2 files changed, 8 insertions, 6 deletions
@@ -2067,11 +2067,11 @@ The history of variable names read by 'read-variable' is recorded in the new variable 'custom-variable-history'. --- -** The function 'string-to-unibyte' is no longer declared obsolete. -We have found that there are legitimate use cases for this function, -where there's no better alternative. We believe that the incorrect -uses of this function all but disappeared by now, so we are -un-obsoleting it. +** The function 'string-to-unibyte' and `string-to-multibyte' are no +longer declared obsolete. We have found that there are legitimate use +cases for these functions, where there's no better alternative. We +believe that the incorrect uses of these functions all but disappeared +by now, so we are un-obsoleting it. +++ ** New function 'group-name' returns a group name corresponding to GID. diff --git a/lisp/subr.el b/lisp/subr.el index 93a98a4bdb1..d505eb3917f 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -1528,10 +1528,12 @@ be a list of the form returned by `event-start' and `event-end'." ;; representation. This can be useful when one needs to examine ;; individual bytes at known offsets from the string beginning. ;; (make-obsolete 'string-to-unibyte "use `encode-coding-string'." "26.1") +;; string-to-multibyte is also sometimes useful (and there's no good +;; general replacement for it), so it's also been unobsoleted in Emacs 27.1. +;; (make-obsolete 'string-to-multibyte "use `decode-coding-string'." "26.1") ;; bug#23850 (make-obsolete 'string-as-unibyte "use `encode-coding-string'." "26.1") (make-obsolete 'string-make-unibyte "use `encode-coding-string'." "26.1") -(make-obsolete 'string-to-multibyte "use `decode-coding-string'." "26.1") (make-obsolete 'string-as-multibyte "use `decode-coding-string'." "26.1") (make-obsolete 'string-make-multibyte "use `decode-coding-string'." "26.1") |
