diff options
| author | Paul Eggert | 2011-04-28 09:11:49 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-28 09:11:49 -0700 |
| commit | 49b14d65c3f6b0a981ca032c6801d2c39ab1591a (patch) | |
| tree | a8f2453f845c0f3846e42388b566caf25cf8bd81 /src | |
| parent | ede49d7153ed628078bcbc2473f898904b5250ea (diff) | |
| parent | d1bb66232235211a8383356ef2851f68ac864a3f (diff) | |
| download | emacs-49b14d65c3f6b0a981ca032c6801d2c39ab1591a.tar.gz emacs-49b14d65c3f6b0a981ca032c6801d2c39ab1591a.zip | |
Merge from mainline.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 10 | ||||
| -rw-r--r-- | src/doprnt.c | 4 | ||||
| -rw-r--r-- | src/w32fns.c | 12 |
3 files changed, 16 insertions, 10 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 40fb601e061..f9ca67e703d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -23,6 +23,16 @@ | |||
| 23 | 23 | ||
| 24 | * fns.c (Frandom): Let EMACS_UINT be wider than unsigned long. | 24 | * fns.c (Frandom): Let EMACS_UINT be wider than unsigned long. |
| 25 | 25 | ||
| 26 | 2011-04-28 Eli Zaretskii <eliz@gnu.org> | ||
| 27 | |||
| 28 | * doprnt.c (doprnt): Don't return value smaller than the buffer | ||
| 29 | size if the message was truncated. (Bug#8545). | ||
| 30 | |||
| 31 | 2011-04-28 Juanma Barranquero <lekktu@gmail.com> | ||
| 32 | |||
| 33 | * w32fns.c (Fx_change_window_property, Fx_delete_window_property) | ||
| 34 | (Fx_window_property): #if-0 the whole functions, not just the bodies. | ||
| 35 | |||
| 26 | 2011-04-27 Paul Eggert <eggert@cs.ucla.edu> | 36 | 2011-04-27 Paul Eggert <eggert@cs.ucla.edu> |
| 27 | 37 | ||
| 28 | * doprnt.c (doprnt): Support "ll" length modifier, for long long. | 38 | * doprnt.c (doprnt): Support "ll" length modifier, for long long. |
diff --git a/src/doprnt.c b/src/doprnt.c index a6becc7454f..63dba9f5850 100644 --- a/src/doprnt.c +++ b/src/doprnt.c | |||
| @@ -403,7 +403,9 @@ doprnt (char *buffer, register size_t bufsize, const char *format, | |||
| 403 | while (fmt < format_end && --bufsize > 0 && !CHAR_HEAD_P (*fmt)); | 403 | while (fmt < format_end && --bufsize > 0 && !CHAR_HEAD_P (*fmt)); |
| 404 | if (!CHAR_HEAD_P (*fmt)) | 404 | if (!CHAR_HEAD_P (*fmt)) |
| 405 | { | 405 | { |
| 406 | bufptr = save_bufptr; | 406 | /* Truncate, but return value that will signal to caller |
| 407 | that the buffer was too small. */ | ||
| 408 | *save_bufptr = 0; | ||
| 407 | break; | 409 | break; |
| 408 | } | 410 | } |
| 409 | } | 411 | } |
diff --git a/src/w32fns.c b/src/w32fns.c index 821cc671646..bdf9dce9411 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -4865,6 +4865,8 @@ If TERMINAL is omitted or nil, that stands for the selected frame's display. */ | |||
| 4865 | Window properties | 4865 | Window properties |
| 4866 | ***********************************************************************/ | 4866 | ***********************************************************************/ |
| 4867 | 4867 | ||
| 4868 | #if 0 /* TODO : port window properties to W32 */ | ||
| 4869 | |||
| 4868 | DEFUN ("x-change-window-property", Fx_change_window_property, | 4870 | DEFUN ("x-change-window-property", Fx_change_window_property, |
| 4869 | Sx_change_window_property, 2, 6, 0, | 4871 | Sx_change_window_property, 2, 6, 0, |
| 4870 | doc: /* Change window property PROP to VALUE on the X window of FRAME. | 4872 | doc: /* Change window property PROP to VALUE on the X window of FRAME. |
| @@ -4884,7 +4886,6 @@ If OUTER_P is non-nil, the property is changed for the outer X window of | |||
| 4884 | FRAME. Default is to change on the edit X window. */) | 4886 | FRAME. Default is to change on the edit X window. */) |
| 4885 | (Lisp_Object prop, Lisp_Object value, Lisp_Object frame, Lisp_Object type, Lisp_Object format, Lisp_Object outer_p) | 4887 | (Lisp_Object prop, Lisp_Object value, Lisp_Object frame, Lisp_Object type, Lisp_Object format, Lisp_Object outer_p) |
| 4886 | { | 4888 | { |
| 4887 | #if 0 /* TODO : port window properties to W32 */ | ||
| 4888 | struct frame *f = check_x_frame (frame); | 4889 | struct frame *f = check_x_frame (frame); |
| 4889 | Atom prop_atom; | 4890 | Atom prop_atom; |
| 4890 | 4891 | ||
| @@ -4901,8 +4902,6 @@ FRAME. Default is to change on the edit X window. */) | |||
| 4901 | XFlush (FRAME_W32_DISPLAY (f)); | 4902 | XFlush (FRAME_W32_DISPLAY (f)); |
| 4902 | UNBLOCK_INPUT; | 4903 | UNBLOCK_INPUT; |
| 4903 | 4904 | ||
| 4904 | #endif /* TODO */ | ||
| 4905 | |||
| 4906 | return value; | 4905 | return value; |
| 4907 | } | 4906 | } |
| 4908 | 4907 | ||
| @@ -4913,8 +4912,6 @@ DEFUN ("x-delete-window-property", Fx_delete_window_property, | |||
| 4913 | FRAME nil or omitted means use the selected frame. Value is PROP. */) | 4912 | FRAME nil or omitted means use the selected frame. Value is PROP. */) |
| 4914 | (Lisp_Object prop, Lisp_Object frame) | 4913 | (Lisp_Object prop, Lisp_Object frame) |
| 4915 | { | 4914 | { |
| 4916 | #if 0 /* TODO : port window properties to W32 */ | ||
| 4917 | |||
| 4918 | struct frame *f = check_x_frame (frame); | 4915 | struct frame *f = check_x_frame (frame); |
| 4919 | Atom prop_atom; | 4916 | Atom prop_atom; |
| 4920 | 4917 | ||
| @@ -4926,7 +4923,6 @@ FRAME nil or omitted means use the selected frame. Value is PROP. */) | |||
| 4926 | /* Make sure the property is removed when we return. */ | 4923 | /* Make sure the property is removed when we return. */ |
| 4927 | XFlush (FRAME_W32_DISPLAY (f)); | 4924 | XFlush (FRAME_W32_DISPLAY (f)); |
| 4928 | UNBLOCK_INPUT; | 4925 | UNBLOCK_INPUT; |
| 4929 | #endif /* TODO */ | ||
| 4930 | 4926 | ||
| 4931 | return prop; | 4927 | return prop; |
| 4932 | } | 4928 | } |
| @@ -4951,8 +4947,6 @@ Value is nil if FRAME hasn't a property with name PROP or if PROP has | |||
| 4951 | no value of TYPE (always string in the MS Windows case). */) | 4947 | no value of TYPE (always string in the MS Windows case). */) |
| 4952 | (Lisp_Object prop, Lisp_Object frame) | 4948 | (Lisp_Object prop, Lisp_Object frame) |
| 4953 | { | 4949 | { |
| 4954 | #if 0 /* TODO : port window properties to W32 */ | ||
| 4955 | |||
| 4956 | struct frame *f = check_x_frame (frame); | 4950 | struct frame *f = check_x_frame (frame); |
| 4957 | Atom prop_atom; | 4951 | Atom prop_atom; |
| 4958 | int rc; | 4952 | int rc; |
| @@ -4992,10 +4986,10 @@ no value of TYPE (always string in the MS Windows case). */) | |||
| 4992 | 4986 | ||
| 4993 | return prop_value; | 4987 | return prop_value; |
| 4994 | 4988 | ||
| 4995 | #endif /* TODO */ | ||
| 4996 | return Qnil; | 4989 | return Qnil; |
| 4997 | } | 4990 | } |
| 4998 | 4991 | ||
| 4992 | #endif /* TODO */ | ||
| 4999 | 4993 | ||
| 5000 | 4994 | ||
| 5001 | /*********************************************************************** | 4995 | /*********************************************************************** |