]> git.eshelyaron.com Git - emacs.git/commitdiff
* url-util.el (url-unhex-string): Don't accidentally decode as latin-1.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 19 May 2010 15:23:53 +0000 (11:23 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 19 May 2010 15:23:53 +0000 (11:23 -0400)
* editfns.c (Fbyte_to_string): New function.
* NEWS: Add sections for Emacs-23.3.

etc/ChangeLog
etc/NEWS
lisp/url/ChangeLog
lisp/url/url-util.el
src/ChangeLog
src/editfns.c

index 083035717baf266c5d63afa6324f0782ccb13bb2..96a5a85f3256801012e2f2c1b72694dd1c8d004a 100644 (file)
@@ -1,3 +1,7 @@
+2010-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * NEWS: Add sections for Emacs-23.3.
+
 2010-05-07  Chong Yidong  <cyd@stupidchicken.com>
 
        * Version 23.2 released.
@@ -26,8 +30,7 @@
 
 2010-03-15  Francesc Rocher  <rocher@member.fsf.org>
 
-       * 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  <rgm@gnu.org>
 
index b52b1f79f416331b0403a4ee8e27eb376d837a91..9124fe1c06995f2ef10ef3691a70420cc0909314 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -14,6 +14,33 @@ for changes in older Emacs versions.
 You can narrow news to a specific version by calling `view-emacs-news'
 with a prefix argument or by typing C-u C-h C-n.
 
+\f
+* Installation Changes in Emacs 23.3
+
+* Startup Changes in Emacs 23.3
+
+* Changes in Emacs 23.3
+
+\f
+* Editing Changes in Emacs 23.3
+
+\f
+* Changes in Specialized Modes and Packages in Emacs 23.3
+
+\f
+* New Modes and Packages in Emacs 23.3
+
+\f
+* Incompatible Lisp Changes in Emacs 23.3
+
+\f
+* Lisp changes in Emacs 23.3
+
+** New function byte-to-string, like char-to-string but for bytes.
+
+\f
+* Changes in Emacs 23.3 on non-free operating systems
+
 \f
 * Installation Changes in Emacs 23.2
 
index a1b045213da9eae5cbd8486d161388bfd3fab09a..232259f39ea53e9a8f40bfc691096ee4fccef7af 100644 (file)
@@ -1,3 +1,7 @@
+2010-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * url-util.el (url-unhex-string): Don't accidentally decode as latin-1.
+
 2010-05-07  Chong Yidong  <cyd@stupidchicken.com>
 
        * Version 23.2 released.
index c0b2595a6e05076205015d1ed8cdcf36647c166c..e92ccc76285249fd753580cb309f1e8947f84a7b 100644 (file)
@@ -322,10 +322,10 @@ forbidden in URL encoding."
                   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))
index 557cda8d4f94307f6a4e715ac674d253a271f5c4..6418e8af4a14be97751bfeb78b6d44524ca4429e 100644 (file)
@@ -1,3 +1,7 @@
+2010-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * editfns.c (Fbyte_to_string): New function.
+
 2010-05-18  Chong Yidong  <cyd@stupidchicken.com>
 
        * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
index 9f30ea064112dce661400b18b070b57bd39a7c14..caac2c5c199f5ebbac81bd04490d3d2249732240 100644 (file)
@@ -220,6 +220,16 @@ usage: (char-to-string CHAR)  */)
   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 @@ functions if all the text being accessed has this property.  */);
   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);