aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2010-05-19 11:23:53 -0400
committerStefan Monnier2010-05-19 11:23:53 -0400
commitc3bb441dd072089f9e6815d9d41c27b5d84aebde (patch)
tree0f7b40fef1fe47c9784677f9e80d75d999614bba
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.
-rw-r--r--etc/ChangeLog7
-rw-r--r--etc/NEWS27
-rw-r--r--lisp/url/ChangeLog4
-rw-r--r--lisp/url/url-util.el4
-rw-r--r--src/ChangeLog4
-rw-r--r--src/editfns.c11
6 files changed, 53 insertions, 4 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog
index 083035717ba..96a5a85f325 100644
--- a/etc/ChangeLog
+++ b/etc/ChangeLog
@@ -1,3 +1,7 @@
12010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * NEWS: Add sections for Emacs-23.3.
4
12010-05-07 Chong Yidong <cyd@stupidchicken.com> 52010-05-07 Chong Yidong <cyd@stupidchicken.com>
2 6
3 * Version 23.2 released. 7 * Version 23.2 released.
@@ -26,8 +30,7 @@
26 30
272010-03-15 Francesc Rocher <rocher@member.fsf.org> 312010-03-15 Francesc Rocher <rocher@member.fsf.org>
28 32
29 * MORE.STUFF: Remove CEDET entry, now distributed as part of 33 * MORE.STUFF: Remove CEDET entry, now distributed as part of Emacs.
30 Emacs.
31 34
322010-03-06 Glenn Morris <rgm@gnu.org> 352010-03-06 Glenn Morris <rgm@gnu.org>
33 36
diff --git a/etc/NEWS b/etc/NEWS
index b52b1f79f41..9124fe1c069 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -15,6 +15,33 @@ You can narrow news to a specific version by calling `view-emacs-news'
15with a prefix argument or by typing C-u C-h C-n. 15with a prefix argument or by typing C-u C-h C-n.
16 16
17 17
18* Installation Changes in Emacs 23.3
19
20* Startup Changes in Emacs 23.3
21
22* Changes in Emacs 23.3
23
24
25* Editing Changes in Emacs 23.3
26
27
28* Changes in Specialized Modes and Packages in Emacs 23.3
29
30
31* New Modes and Packages in Emacs 23.3
32
33
34* Incompatible Lisp Changes in Emacs 23.3
35
36
37* Lisp changes in Emacs 23.3
38
39** New function byte-to-string, like char-to-string but for bytes.
40
41
42* Changes in Emacs 23.3 on non-free operating systems
43
44
18* Installation Changes in Emacs 23.2 45* Installation Changes in Emacs 23.2
19 46
20** New configure options for Emacs developers. 47** New configure options for Emacs developers.
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog
index a1b045213da..232259f39ea 100644
--- a/lisp/url/ChangeLog
+++ b/lisp/url/ChangeLog
@@ -1,3 +1,7 @@
12010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * url-util.el (url-unhex-string): Don't accidentally decode as latin-1.
4
12010-05-07 Chong Yidong <cyd@stupidchicken.com> 52010-05-07 Chong Yidong <cyd@stupidchicken.com>
2 6
3 * Version 23.2 released. 7 * Version 23.2 released.
diff --git a/lisp/url/url-util.el b/lisp/url/url-util.el
index c0b2595a6e0..e92ccc76285 100644
--- a/lisp/url/url-util.el
+++ b/lisp/url/url-util.el
@@ -322,10 +322,10 @@ forbidden in URL encoding."
322 tmp (substring str 0 start) 322 tmp (substring str 0 start)
323 (cond 323 (cond
324 (allow-newlines 324 (allow-newlines
325 (char-to-string code)) 325 (byte-to-string code))
326 ((or (= code ?\n) (= code ?\r)) 326 ((or (= code ?\n) (= code ?\r))
327 " ") 327 " ")
328 (t (char-to-string code)))) 328 (t (byte-to-string code))))
329 str (substring str (match-end 0))))) 329 str (substring str (match-end 0)))))
330 (setq tmp (concat tmp str)) 330 (setq tmp (concat tmp str))
331 tmp)) 331 tmp))
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);