diff options
| author | Juanma Barranquero | 2007-06-08 20:18:14 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2007-06-08 20:18:14 +0000 |
| commit | 977f6cfb17e96a49f0998dece38da6fce302d0ab (patch) | |
| tree | 1b1a717c95780d3517ccccd826b3f25821e386f3 /src | |
| parent | 80bad45fc8052b3e13122d4843443bb2d77b3882 (diff) | |
| download | emacs-977f6cfb17e96a49f0998dece38da6fce302d0ab.tar.gz emacs-977f6cfb17e96a49f0998dece38da6fce302d0ab.zip | |
(Fdelete_and_extract_region): Use empty_unibyte_string.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 35 | ||||
| -rw-r--r-- | src/callint.c | 2 | ||||
| -rw-r--r-- | src/editfns.c | 2 |
3 files changed, 37 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 9b88e6a2fa3..82eeaf3ad26 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,38 @@ | |||
| 1 | 2007-06-08 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * callint.c (Fcall_interactively): | ||
| 4 | * editfns.c (Fdelete_and_extract_region): | ||
| 5 | * fileio.c (Fread_file_name): | ||
| 6 | * fns.c (Fmapconcat): | ||
| 7 | * keyboard.c (cmd_error_internal): | ||
| 8 | * keymap.c (Fkey_description): | ||
| 9 | * lread.c (openp): | ||
| 10 | * minibuf.c (read_minibuf): | ||
| 11 | * search.c (wordify): | ||
| 12 | * sunfns.c (sel_read): | ||
| 13 | * xdisp.c (Fformat_mode_line, syms_of_xdisp): | ||
| 14 | * xfns.c (x_default_scroll_bar_color_parameter): | ||
| 15 | * xmenu.c (menu_help_callback): | ||
| 16 | * xselect.c (Fx_get_atom_name): | ||
| 17 | * xterm.c (x_term_init): Use empty_unibyte_string. | ||
| 18 | |||
| 19 | 2007-06-08 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change) | ||
| 20 | |||
| 21 | * alloc.c (init_strings): Initialize canonical empty strings. | ||
| 22 | (make_uninit_string, make_uninit_multibyte_string): Return appropriate | ||
| 23 | canonical empty string when the requested size is 0. | ||
| 24 | |||
| 25 | * emacs.c (empty_unibyte_string): Rename from empty_string. | ||
| 26 | (empty_multibyte_string): New canonical empty string. | ||
| 27 | (syms_of_emacs): Don't initialize empty_string. | ||
| 28 | |||
| 29 | * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte | ||
| 30 | string, if appropriate. | ||
| 31 | (empty_unibyte_string, empty_multibyte_string): New externs. | ||
| 32 | (empty_string): Remove extern. | ||
| 33 | |||
| 34 | * lread.c (syms_of_lread): Use empty_unibyte_string. | ||
| 35 | |||
| 1 | 2007-06-07 Jason Rumney <jasonr@gnu.org> | 36 | 2007-06-07 Jason Rumney <jasonr@gnu.org> |
| 2 | 37 | ||
| 3 | * s/ms-w32.h: Don't define HAVE_TZNAME. | 38 | * s/ms-w32.h: Don't define HAVE_TZNAME. |
diff --git a/src/callint.c b/src/callint.c index 39b2046e8fc..a989f9afe6d 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -585,7 +585,7 @@ invoke it. If KEYS is omitted or nil, the return value of | |||
| 585 | case 'G': /* Possibly nonexistent file name, | 585 | case 'G': /* Possibly nonexistent file name, |
| 586 | default to directory alone. */ | 586 | default to directory alone. */ |
| 587 | args[i] = Fread_file_name (callint_message, | 587 | args[i] = Fread_file_name (callint_message, |
| 588 | Qnil, Qnil, Qnil, build_string (""), Qnil); | 588 | Qnil, Qnil, Qnil, empty_unibyte_string, Qnil); |
| 589 | break; | 589 | break; |
| 590 | 590 | ||
| 591 | case 'i': /* Ignore an argument -- Does not do I/O */ | 591 | case 'i': /* Ignore an argument -- Does not do I/O */ |
diff --git a/src/editfns.c b/src/editfns.c index 2f759a38dd0..aca3383943d 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -3031,7 +3031,7 @@ DEFUN ("delete-and-extract-region", Fdelete_and_extract_region, | |||
| 3031 | { | 3031 | { |
| 3032 | validate_region (&start, &end); | 3032 | validate_region (&start, &end); |
| 3033 | if (XINT (start) == XINT (end)) | 3033 | if (XINT (start) == XINT (end)) |
| 3034 | return build_string (""); | 3034 | return empty_unibyte_string; |
| 3035 | return del_range_1 (XINT (start), XINT (end), 1, 1); | 3035 | return del_range_1 (XINT (start), XINT (end), 1, 1); |
| 3036 | } | 3036 | } |
| 3037 | 3037 | ||