diff options
| author | Kenichi Handa | 2010-05-25 10:03:44 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2010-05-25 10:03:44 +0900 |
| commit | cdf522217cd425ca6dabb1fc6c0fb7fb9c95883b (patch) | |
| tree | 993ab2a02b7737549c408adb148aed12c86bafd2 /src | |
| parent | 8a2b8c4f7c2a18254fc0b34f236d7487fc7917d4 (diff) | |
| parent | 171eda5358a6c63b4854688a300b0fe22d3fcb38 (diff) | |
| download | emacs-cdf522217cd425ca6dabb1fc6c0fb7fb9c95883b.tar.gz emacs-cdf522217cd425ca6dabb1fc6c0fb7fb9c95883b.zip | |
merge trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/cmds.c | 4 | ||||
| -rw-r--r-- | src/editfns.c | 11 |
3 files changed, 19 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 67911d5def3..959c3fbcb54 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -23,13 +23,16 @@ | |||
| 23 | 23 | ||
| 24 | 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca> | 24 | 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca> |
| 25 | 25 | ||
| 26 | * editfns.c (Fbyte_to_string): New function. | ||
| 27 | |||
| 28 | 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 29 | |||
| 26 | * process.c (Fmake_network_process): Set :host to nil if it's not used. | 30 | * process.c (Fmake_network_process): Set :host to nil if it's not used. |
| 27 | Suggested by Masatake YAMATO <yamato@redhat.com>. | 31 | Suggested by Masatake YAMATO <yamato@redhat.com>. |
| 28 | 32 | ||
| 29 | 2010-05-23 Eli Zaretskii <eliz@gnu.org> | 33 | 2010-05-23 Eli Zaretskii <eliz@gnu.org> |
| 30 | 34 | ||
| 31 | * dispextern.h (init_iterator): Sync prototype with changed | 35 | * dispextern.h (init_iterator): Sync prototype with changed definition. |
| 32 | definition. | ||
| 33 | 36 | ||
| 34 | 2010-05-19 Eli Zaretskii <eliz@gnu.org> | 37 | 2010-05-19 Eli Zaretskii <eliz@gnu.org> |
| 35 | 38 | ||
diff --git a/src/cmds.c b/src/cmds.c index b8a65324e9f..1fdd3729d68 100644 --- a/src/cmds.c +++ b/src/cmds.c | |||
| @@ -278,7 +278,9 @@ DEFUN ("delete-backward-char", Fdelete_backward_char, Sdelete_backward_char, | |||
| 278 | doc: /* Delete the previous N characters (following if N is negative). | 278 | doc: /* Delete the previous N characters (following if N is negative). |
| 279 | Optional second arg KILLFLAG non-nil means kill instead (save in kill ring). | 279 | Optional second arg KILLFLAG non-nil means kill instead (save in kill ring). |
| 280 | Interactively, N is the prefix arg, and KILLFLAG is set if | 280 | Interactively, N is the prefix arg, and KILLFLAG is set if |
| 281 | N was explicitly specified. */) | 281 | N was explicitly specified. |
| 282 | This is meant for interactive use only; from Lisp, better use `delete-char' | ||
| 283 | with a negated argument. */) | ||
| 282 | (n, killflag) | 284 | (n, killflag) |
| 283 | Lisp_Object n, killflag; | 285 | Lisp_Object n, killflag; |
| 284 | { | 286 | { |
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 | ||
| 223 | DEFUN ("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 | |||
| 223 | DEFUN ("string-to-char", Fstring_to_char, Sstring_to_char, 1, 1, 0, | 233 | DEFUN ("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. |
| 225 | A multibyte character is handled correctly. */) | 235 | A 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); |