aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-06-14 14:37:29 +0200
committerLars Ingebrigtsen2019-06-14 14:37:29 +0200
commitfe12ec4b0d71f8adb572c68c6f662d7783382fb1 (patch)
tree8e7393ceea49d72c1d5125f48730624a4d4ba61e
parent7b837cd707753919dea0c14207c11643f7a88e87 (diff)
downloademacs-fe12ec4b0d71f8adb572c68c6f662d7783382fb1.tar.gz
emacs-fe12ec4b0d71f8adb572c68c6f662d7783382fb1.zip
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/NEWS10
-rw-r--r--lisp/subr.el4
2 files changed, 8 insertions, 6 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 043907755ab..3b459e587a2 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2067,11 +2067,11 @@ The history of variable names read by 'read-variable' is recorded in
2067the new variable 'custom-variable-history'. 2067the new variable 'custom-variable-history'.
2068 2068
2069--- 2069---
2070** The function 'string-to-unibyte' is no longer declared obsolete. 2070** The function 'string-to-unibyte' and `string-to-multibyte' are no
2071We have found that there are legitimate use cases for this function, 2071longer declared obsolete. We have found that there are legitimate use
2072where there's no better alternative. We believe that the incorrect 2072cases for these functions, where there's no better alternative. We
2073uses of this function all but disappeared by now, so we are 2073believe that the incorrect uses of these functions all but disappeared
2074un-obsoleting it. 2074by now, so we are un-obsoleting it.
2075 2075
2076+++ 2076+++
2077** New function 'group-name' returns a group name corresponding to GID. 2077** 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'."
1528;; representation. This can be useful when one needs to examine 1528;; representation. This can be useful when one needs to examine
1529;; individual bytes at known offsets from the string beginning. 1529;; individual bytes at known offsets from the string beginning.
1530;; (make-obsolete 'string-to-unibyte "use `encode-coding-string'." "26.1") 1530;; (make-obsolete 'string-to-unibyte "use `encode-coding-string'." "26.1")
1531;; string-to-multibyte is also sometimes useful (and there's no good
1532;; general replacement for it), so it's also been unobsoleted in Emacs 27.1.
1533;; (make-obsolete 'string-to-multibyte "use `decode-coding-string'." "26.1")
1531;; bug#23850 1534;; bug#23850
1532(make-obsolete 'string-as-unibyte "use `encode-coding-string'." "26.1") 1535(make-obsolete 'string-as-unibyte "use `encode-coding-string'." "26.1")
1533(make-obsolete 'string-make-unibyte "use `encode-coding-string'." "26.1") 1536(make-obsolete 'string-make-unibyte "use `encode-coding-string'." "26.1")
1534(make-obsolete 'string-to-multibyte "use `decode-coding-string'." "26.1")
1535(make-obsolete 'string-as-multibyte "use `decode-coding-string'." "26.1") 1537(make-obsolete 'string-as-multibyte "use `decode-coding-string'." "26.1")
1536(make-obsolete 'string-make-multibyte "use `decode-coding-string'." "26.1") 1538(make-obsolete 'string-make-multibyte "use `decode-coding-string'." "26.1")
1537 1539