# HG changeset patch # User Stefan Monnier # Date 1274282633 14400 # Node ID a224d29f3386a8b0955b3e6889393129bf6c0c82 # Parent 30ebb77362b66c67f4b6cca739fe6384df0b30bb * 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. diff -r 30ebb77362b6 -r a224d29f3386 .bzrignore --- a/.bzrignore Tue May 18 23:51:55 2010 -0400 +++ b/.bzrignore Wed May 19 11:23:53 2010 -0400 @@ -65,3 +65,4 @@ src/temacs src/deps configure.lineno +src/core diff -r 30ebb77362b6 -r a224d29f3386 etc/ChangeLog --- a/etc/ChangeLog Tue May 18 23:51:55 2010 -0400 +++ b/etc/ChangeLog Wed May 19 11:23:53 2010 -0400 @@ -1,3 +1,7 @@ +2010-05-19 Stefan Monnier + + * NEWS: Add sections for Emacs-23.3. + 2010-05-07 Chong Yidong * Version 23.2 released. @@ -26,8 +30,7 @@ 2010-03-15 Francesc Rocher - * MORE.STUFF: Remove CEDET entry, now distributed as part of - Emacs. + * MORE.STUFF: Remove CEDET entry, now distributed as part of Emacs. 2010-03-06 Glenn Morris diff -r 30ebb77362b6 -r a224d29f3386 etc/NEWS --- a/etc/NEWS Tue May 18 23:51:55 2010 -0400 +++ b/etc/NEWS Wed May 19 11:23:53 2010 -0400 @@ -15,6 +15,33 @@ with a prefix argument or by typing C-u C-h C-n. +* Installation Changes in Emacs 23.3 + +* Startup Changes in Emacs 23.3 + +* Changes in Emacs 23.3 + + +* Editing Changes in Emacs 23.3 + + +* Changes in Specialized Modes and Packages in Emacs 23.3 + + +* New Modes and Packages in Emacs 23.3 + + +* Incompatible Lisp Changes in Emacs 23.3 + + +* Lisp changes in Emacs 23.3 + +** New function byte-to-string, like char-to-string but for bytes. + + +* Changes in Emacs 23.3 on non-free operating systems + + * Installation Changes in Emacs 23.2 ** New configure options for Emacs developers. diff -r 30ebb77362b6 -r a224d29f3386 lisp/url/ChangeLog --- a/lisp/url/ChangeLog Tue May 18 23:51:55 2010 -0400 +++ b/lisp/url/ChangeLog Wed May 19 11:23:53 2010 -0400 @@ -1,3 +1,7 @@ +2010-05-19 Stefan Monnier + + * url-util.el (url-unhex-string): Don't accidentally decode as latin-1. + 2010-05-07 Chong Yidong * Version 23.2 released. diff -r 30ebb77362b6 -r a224d29f3386 lisp/url/url-util.el --- a/lisp/url/url-util.el Tue May 18 23:51:55 2010 -0400 +++ b/lisp/url/url-util.el Wed May 19 11:23:53 2010 -0400 @@ -322,10 +322,10 @@ tmp (substring str 0 start) (cond (allow-newlines - (char-to-string code)) + (byte-to-string code)) ((or (= code ?\n) (= code ?\r)) " ") - (t (char-to-string code)))) + (t (byte-to-string code)))) str (substring str (match-end 0))))) (setq tmp (concat tmp str)) tmp)) diff -r 30ebb77362b6 -r a224d29f3386 src/ChangeLog --- a/src/ChangeLog Tue May 18 23:51:55 2010 -0400 +++ b/src/ChangeLog Wed May 19 11:23:53 2010 -0400 @@ -1,3 +1,7 @@ +2010-05-19 Stefan Monnier + + * editfns.c (Fbyte_to_string): New function. + 2010-05-18 Chong Yidong * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to diff -r 30ebb77362b6 -r a224d29f3386 src/editfns.c --- a/src/editfns.c Tue May 18 23:51:55 2010 -0400 +++ b/src/editfns.c Wed May 19 11:23:53 2010 -0400 @@ -220,6 +220,16 @@ return make_string_from_bytes (str, 1, len); } +DEFUN ("byte-to-string", Fbyte_to_string, Sbyte_to_string, 1, 1, 0, + doc: /* Convert arg BYTE to a string containing that byte. */) + (byte) + Lisp_Object byte; +{ + CHECK_NUMBER (byte); + unsigned char b = XINT (byte); + return make_string_from_bytes (&b, 1, 1); +} + DEFUN ("string-to-char", Fstring_to_char, Sstring_to_char, 1, 1, 0, doc: /* Convert arg STRING to a character, the first character of that string. A multibyte character is handled correctly. */) @@ -4686,6 +4696,7 @@ defsubr (&Sgoto_char); defsubr (&Sstring_to_char); defsubr (&Schar_to_string); + defsubr (&Sbyte_to_string); defsubr (&Sbuffer_substring); defsubr (&Sbuffer_substring_no_properties); defsubr (&Sbuffer_string);