[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/emacs-23 r99810: * url-util.el (url-unhex-s
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/emacs-23 r99810: * url-util.el (url-unhex-string): Don't accidentally decode as latin-1. |
Date: |
Wed, 19 May 2010 11:23:53 -0400 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 99810
committer: Stefan Monnier <address@hidden>
branch nick: emacs-23
timestamp: Wed 2010-05-19 11:23:53 -0400
message:
* 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.
modified:
.bzrignore
etc/ChangeLog
etc/NEWS
lisp/url/ChangeLog
lisp/url/url-util.el
src/ChangeLog
src/editfns.c
=== modified file '.bzrignore'
--- a/.bzrignore 2010-04-13 08:58:42 +0000
+++ b/.bzrignore 2010-05-19 15:23:53 +0000
@@ -65,3 +65,4 @@
src/temacs
src/deps
configure.lineno
+src/core
=== modified file 'etc/ChangeLog'
--- a/etc/ChangeLog 2010-05-08 03:28:26 +0000
+++ b/etc/ChangeLog 2010-05-19 15:23:53 +0000
@@ -1,3 +1,7 @@
+2010-05-19 Stefan Monnier <address@hidden>
+
+ * NEWS: Add sections for Emacs-23.3.
+
2010-05-07 Chong Yidong <address@hidden>
* Version 23.2 released.
@@ -26,8 +30,7 @@
2010-03-15 Francesc Rocher <address@hidden>
- * 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 <address@hidden>
=== modified file 'etc/NEWS'
--- a/etc/NEWS 2010-05-03 22:01:23 +0000
+++ b/etc/NEWS 2010-05-19 15:23:53 +0000
@@ -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.
=== modified file 'lisp/url/ChangeLog'
--- a/lisp/url/ChangeLog 2010-05-08 03:28:26 +0000
+++ b/lisp/url/ChangeLog 2010-05-19 15:23:53 +0000
@@ -1,3 +1,7 @@
+2010-05-19 Stefan Monnier <address@hidden>
+
+ * url-util.el (url-unhex-string): Don't accidentally decode as latin-1.
+
2010-05-07 Chong Yidong <address@hidden>
* Version 23.2 released.
=== modified file 'lisp/url/url-util.el'
--- a/lisp/url/url-util.el 2010-01-23 22:50:13 +0000
+++ b/lisp/url/url-util.el 2010-05-19 15:23:53 +0000
@@ -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))
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2010-05-18 18:01:10 +0000
+++ b/src/ChangeLog 2010-05-19 15:23:53 +0000
@@ -1,3 +1,7 @@
+2010-05-19 Stefan Monnier <address@hidden>
+
+ * editfns.c (Fbyte_to_string): New function.
+
2010-05-18 Chong Yidong <address@hidden>
* character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
=== modified file 'src/editfns.c'
--- a/src/editfns.c 2010-03-15 15:51:48 +0000
+++ b/src/editfns.c 2010-05-19 15:23:53 +0000
@@ -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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/emacs-23 r99810: * url-util.el (url-unhex-string): Don't accidentally decode as latin-1.,
Stefan Monnier <=