aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2010-05-19 11:23:53 -0400
committerStefan Monnier2010-05-19 11:23:53 -0400
commitc3bb441dd072089f9e6815d9d41c27b5d84aebde (patch)
tree0f7b40fef1fe47c9784677f9e80d75d999614bba /src
parentab0c07c0209012ff0010c2c24303ee7a4c33a514 (diff)
downloademacs-c3bb441dd072089f9e6815d9d41c27b5d84aebde.tar.gz
emacs-c3bb441dd072089f9e6815d9d41c27b5d84aebde.zip
* url-util.el (url-unhex-string): Don't accidentally decode as latin-1.
* editfns.c (Fbyte_to_string): New function. * NEWS: Add sections for Emacs-23.3.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/editfns.c11
2 files changed, 15 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 557cda8d4f9..6418e8af4a1 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * editfns.c (Fbyte_to_string): New function.
4
12010-05-18 Chong Yidong <cyd@stupidchicken.com> 52010-05-18 Chong Yidong <cyd@stupidchicken.com>
2 6
3 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to 7 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
diff --git a/src/editfns.c b/src/editfns.c
index 9f30ea06411..caac2c5c199 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -220,6 +220,16 @@ usage: (char-to-string CHAR) */)
220 return make_string_from_bytes (str, 1, len); 220 return make_string_from_bytes (str, 1, len);
221} 221}
222 222
223DEFUN ("byte-to-string", Fbyte_to_string, Sbyte_to_string, 1, 1, 0,
224 doc: /* Convert arg BYTE to a string containing that byte. */)
225 (byte)
226 Lisp_Object byte;
227{
228 CHECK_NUMBER (byte);
229 unsigned char b = XINT (byte);
230 return make_string_from_bytes (&b, 1, 1);
231}
232
223DEFUN ("string-to-char", Fstring_to_char, Sstring_to_char, 1, 1, 0, 233DEFUN ("string-to-char", Fstring_to_char, Sstring_to_char, 1, 1, 0,
224 doc: /* Convert arg STRING to a character, the first character of that string. 234 doc: /* Convert arg STRING to a character, the first character of that string.
225A multibyte character is handled correctly. */) 235A multibyte character is handled correctly. */)
@@ -4686,6 +4696,7 @@ functions if all the text being accessed has this property. */);
4686 defsubr (&Sgoto_char); 4696 defsubr (&Sgoto_char);
4687 defsubr (&Sstring_to_char); 4697 defsubr (&Sstring_to_char);
4688 defsubr (&Schar_to_string); 4698 defsubr (&Schar_to_string);
4699 defsubr (&Sbyte_to_string);
4689 defsubr (&Sbuffer_substring); 4700 defsubr (&Sbuffer_substring);
4690 defsubr (&Sbuffer_substring_no_properties); 4701 defsubr (&Sbuffer_substring_no_properties);
4691 defsubr (&Sbuffer_string); 4702 defsubr (&Sbuffer_string);