diff options
| author | Miles Bader | 2005-09-30 11:43:45 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-09-30 11:43:45 +0000 |
| commit | c4e8cde8c6cea5ab85abbac10626bd5c1fe5a6af (patch) | |
| tree | 5ea3dab08718e0458f0033773ec6921a37212d2b /src | |
| parent | 7b9dc9afcc06c9d5c3e3f75f3bb420d57cd1de12 (diff) | |
| parent | 070860c37ab005c2c94276e2230c4bfe67f50c14 (diff) | |
| download | emacs-c4e8cde8c6cea5ab85abbac10626bd5c1fe5a6af.tar.gz emacs-c4e8cde8c6cea5ab85abbac10626bd5c1fe5a6af.zip | |
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-86
Merge from emacs--cvs-trunk--0
Patches applied:
* emacs--cvs-trunk--0 (patch 562-568)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 125-128)
- Merge from emacs--cvs-trunk--0
- Update from CVS
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 45 | ||||
| -rw-r--r-- | src/editfns.c | 10 | ||||
| -rw-r--r-- | src/fns.c | 6 | ||||
| -rw-r--r-- | src/image.c | 18 | ||||
| -rw-r--r-- | src/keyboard.c | 14 | ||||
| -rw-r--r-- | src/macgui.h | 13 | ||||
| -rw-r--r-- | src/marker.c | 1 | ||||
| -rw-r--r-- | src/process.c | 1 | ||||
| -rw-r--r-- | src/systime.h | 3 | ||||
| -rw-r--r-- | src/xdisp.c | 1 | ||||
| -rw-r--r-- | src/xterm.c | 6 | ||||
| -rw-r--r-- | src/xterm.h | 1 |
12 files changed, 80 insertions, 39 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 4012f446f99..cd25ba97e90 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,46 @@ | |||
| 1 | 2005-09-29 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box): | ||
| 4 | Rename argument name `string' to `format-string'. | ||
| 5 | (Fformat): Doc fix. | ||
| 6 | |||
| 7 | 2005-09-28 Kim F. Storm <storm@cua.dk> | ||
| 8 | |||
| 9 | * image.c (gif_load): Fix size of allocated image buffer | ||
| 10 | for images where a sub-image may be larger than the image's | ||
| 11 | total height/width specifications. | ||
| 12 | |||
| 13 | 2005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 14 | |||
| 15 | * macgui.h (struct _XCharStruct): Each member now takes short value. | ||
| 16 | |||
| 17 | 2005-09-27 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 18 | |||
| 19 | * xfaces.c (lookup_derived_face): Add parameter type. | ||
| 20 | |||
| 21 | * xdisp.c (cursor_row_fully_visible_p): Add parameter type. | ||
| 22 | |||
| 23 | * marker.c (verify_bytepos): Add parameter type. | ||
| 24 | |||
| 25 | * process.c (get_operating_system_release): Move prototype ... | ||
| 26 | |||
| 27 | * systime.h (get_operating_system_release): ... here. | ||
| 28 | |||
| 29 | * xterm.c (set_vertical_scroll_bar): Move prototype ... | ||
| 30 | (handle_one_xevent): Refer to union field to match the type | ||
| 31 | required by the function definition. | ||
| 32 | |||
| 33 | * xterm.h: ... here. | ||
| 34 | |||
| 35 | * fns.c (internal_equal, seed_random): Fix prototypes. | ||
| 36 | (internal_equal): Add missing parameter. | ||
| 37 | |||
| 38 | 2005-09-25 Richard M. Stallman <rms@gnu.org> | ||
| 39 | |||
| 40 | * keyboard.c (update_menu_bindings): Variable deleted. | ||
| 41 | (syms_of_keyboard): Don't defvar it. | ||
| 42 | (parse_menu_item): Don't test it. | ||
| 43 | |||
| 1 | 2005-09-23 Richard M. Stallman <rms@gnu.org> | 44 | 2005-09-23 Richard M. Stallman <rms@gnu.org> |
| 2 | 45 | ||
| 3 | * editfns.c (Fformat): Explicitly test for end of format string | 46 | * editfns.c (Fformat): Explicitly test for end of format string |
| @@ -9,7 +52,7 @@ | |||
| 9 | BROKEN_GET_CURRENT_DIR_NAME. | 52 | BROKEN_GET_CURRENT_DIR_NAME. |
| 10 | 53 | ||
| 11 | * sysdep.c (get_current_dir_name): Also define if | 54 | * sysdep.c (get_current_dir_name): Also define if |
| 12 | BROKEN_GET_CURRENT_DIR_NAME. | 55 | BROKEN_GET_CURRENT_DIR_NAME. |
| 13 | 56 | ||
| 14 | * m/ibmrs6000.h: Test for USG5, not USG5_4. | 57 | * m/ibmrs6000.h: Test for USG5, not USG5_4. |
| 15 | 58 | ||
diff --git a/src/editfns.c b/src/editfns.c index 98828352375..2fa6ffcca5c 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -3256,7 +3256,7 @@ If the first argument is nil or the empty string, the function clears | |||
| 3256 | any existing message; this lets the minibuffer contents show. See | 3256 | any existing message; this lets the minibuffer contents show. See |
| 3257 | also `current-message'. | 3257 | also `current-message'. |
| 3258 | 3258 | ||
| 3259 | usage: (message STRING &rest ARGS) */) | 3259 | usage: (message FORMAT-STRING &rest ARGS) */) |
| 3260 | (nargs, args) | 3260 | (nargs, args) |
| 3261 | int nargs; | 3261 | int nargs; |
| 3262 | Lisp_Object *args; | 3262 | Lisp_Object *args; |
| @@ -3286,7 +3286,7 @@ to be formatted under control of the string. See `format' for details. | |||
| 3286 | If the first argument is nil or the empty string, clear any existing | 3286 | If the first argument is nil or the empty string, clear any existing |
| 3287 | message; let the minibuffer contents show. | 3287 | message; let the minibuffer contents show. |
| 3288 | 3288 | ||
| 3289 | usage: (message-box STRING &rest ARGS) */) | 3289 | usage: (message-box FORMAT-STRING &rest ARGS) */) |
| 3290 | (nargs, args) | 3290 | (nargs, args) |
| 3291 | int nargs; | 3291 | int nargs; |
| 3292 | Lisp_Object *args; | 3292 | Lisp_Object *args; |
| @@ -3348,7 +3348,7 @@ to be formatted under control of the string. See `format' for details. | |||
| 3348 | If the first argument is nil or the empty string, clear any existing | 3348 | If the first argument is nil or the empty string, clear any existing |
| 3349 | message; let the minibuffer contents show. | 3349 | message; let the minibuffer contents show. |
| 3350 | 3350 | ||
| 3351 | usage: (message-or-box STRING &rest ARGS) */) | 3351 | usage: (message-or-box FORMAT-STRING &rest ARGS) */) |
| 3352 | (nargs, args) | 3352 | (nargs, args) |
| 3353 | int nargs; | 3353 | int nargs; |
| 3354 | Lisp_Object *args; | 3354 | Lisp_Object *args; |
| @@ -3413,8 +3413,8 @@ usage: (propertize STRING &rest PROPERTIES) */) | |||
| 3413 | : SBYTES (STRING)) | 3413 | : SBYTES (STRING)) |
| 3414 | 3414 | ||
| 3415 | DEFUN ("format", Fformat, Sformat, 1, MANY, 0, | 3415 | DEFUN ("format", Fformat, Sformat, 1, MANY, 0, |
| 3416 | doc: /* Format a string out of a control-string and arguments. | 3416 | doc: /* Format a string out of a format-string and arguments. |
| 3417 | The first argument is a control string. | 3417 | The first argument is a format control string. |
| 3418 | The other arguments are substituted into it to make the result, a string. | 3418 | The other arguments are substituted into it to make the result, a string. |
| 3419 | It may contain %-sequences meaning to substitute the next argument. | 3419 | It may contain %-sequences meaning to substitute the next argument. |
| 3420 | %s means print a string argument. Actually, prints any object, with `princ'. | 3420 | %s means print a string argument. Actually, prints any object, with `princ'. |
| @@ -77,10 +77,10 @@ Lisp_Object Qcodeset, Qdays, Qmonths, Qpaper; | |||
| 77 | 77 | ||
| 78 | extern Lisp_Object Qinput_method_function; | 78 | extern Lisp_Object Qinput_method_function; |
| 79 | 79 | ||
| 80 | static int internal_equal (); | 80 | static int internal_equal P_ ((Lisp_Object , Lisp_Object, int, int)); |
| 81 | 81 | ||
| 82 | extern long get_random (); | 82 | extern long get_random (); |
| 83 | extern void seed_random (); | 83 | extern void seed_random P_ ((long)); |
| 84 | 84 | ||
| 85 | #ifndef HAVE_UNISTD_H | 85 | #ifndef HAVE_UNISTD_H |
| 86 | extern long time (); | 86 | extern long time (); |
| @@ -2169,7 +2169,7 @@ internal_equal (o1, o2, depth, props) | |||
| 2169 | if (!internal_equal (OVERLAY_START (o1), OVERLAY_START (o2), | 2169 | if (!internal_equal (OVERLAY_START (o1), OVERLAY_START (o2), |
| 2170 | depth + 1, props) | 2170 | depth + 1, props) |
| 2171 | || !internal_equal (OVERLAY_END (o1), OVERLAY_END (o2), | 2171 | || !internal_equal (OVERLAY_END (o1), OVERLAY_END (o2), |
| 2172 | depth + 1)) | 2172 | depth + 1, props)) |
| 2173 | return 0; | 2173 | return 0; |
| 2174 | o1 = XOVERLAY (o1)->plist; | 2174 | o1 = XOVERLAY (o1)->plist; |
| 2175 | o2 = XOVERLAY (o2)->plist; | 2175 | o2 = XOVERLAY (o2)->plist; |
diff --git a/src/image.c b/src/image.c index 6ec0734e785..bdc78c2d718 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -7369,8 +7369,17 @@ gif_load (f, img) | |||
| 7369 | return 0; | 7369 | return 0; |
| 7370 | } | 7370 | } |
| 7371 | 7371 | ||
| 7372 | width = img->width = max (gif->SWidth, gif->Image.Left + gif->Image.Width); | 7372 | image_top = gif->SavedImages[ino].ImageDesc.Top; |
| 7373 | height = img->height = max (gif->SHeight, gif->Image.Top + gif->Image.Height); | 7373 | image_left = gif->SavedImages[ino].ImageDesc.Left; |
| 7374 | image_width = gif->SavedImages[ino].ImageDesc.Width; | ||
| 7375 | image_height = gif->SavedImages[ino].ImageDesc.Height; | ||
| 7376 | |||
| 7377 | width = img->width = max (gif->SWidth, | ||
| 7378 | max (gif->Image.Left + gif->Image.Width, | ||
| 7379 | image_left + image_width)); | ||
| 7380 | height = img->height = max (gif->SHeight, | ||
| 7381 | max (gif->Image.Top + gif->Image.Height, | ||
| 7382 | image_top + image_height)); | ||
| 7374 | 7383 | ||
| 7375 | /* Create the X image and pixmap. */ | 7384 | /* Create the X image and pixmap. */ |
| 7376 | if (!x_create_x_image_and_pixmap (f, width, height, 0, &ximg, &img->pixmap)) | 7385 | if (!x_create_x_image_and_pixmap (f, width, height, 0, &ximg, &img->pixmap)) |
| @@ -7405,11 +7414,6 @@ gif_load (f, img) | |||
| 7405 | requires more than can be done here (see the gif89 spec, | 7414 | requires more than can be done here (see the gif89 spec, |
| 7406 | disposal methods). Let's simply assume that the part | 7415 | disposal methods). Let's simply assume that the part |
| 7407 | not covered by a sub-image is in the frame's background color. */ | 7416 | not covered by a sub-image is in the frame's background color. */ |
| 7408 | image_top = gif->SavedImages[ino].ImageDesc.Top; | ||
| 7409 | image_left = gif->SavedImages[ino].ImageDesc.Left; | ||
| 7410 | image_width = gif->SavedImages[ino].ImageDesc.Width; | ||
| 7411 | image_height = gif->SavedImages[ino].ImageDesc.Height; | ||
| 7412 | |||
| 7413 | for (y = 0; y < image_top; ++y) | 7417 | for (y = 0; y < image_top; ++y) |
| 7414 | for (x = 0; x < width; ++x) | 7418 | for (x = 0; x < width; ++x) |
| 7415 | XPutPixel (ximg, x, y, FRAME_BACKGROUND_PIXEL (f)); | 7419 | XPutPixel (ximg, x, y, FRAME_BACKGROUND_PIXEL (f)); |
diff --git a/src/keyboard.c b/src/keyboard.c index 64b6b86244c..3eabf6a5a8a 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -474,10 +474,6 @@ int input_pending; | |||
| 474 | 474 | ||
| 475 | int meta_key; | 475 | int meta_key; |
| 476 | 476 | ||
| 477 | /* Non-zero means force key bindings update in parse_menu_item. */ | ||
| 478 | |||
| 479 | int update_menu_bindings; | ||
| 480 | |||
| 481 | extern char *pending_malloc_warning; | 477 | extern char *pending_malloc_warning; |
| 482 | 478 | ||
| 483 | /* Circular buffer for pre-read keyboard input. */ | 479 | /* Circular buffer for pre-read keyboard input. */ |
| @@ -7402,9 +7398,7 @@ parse_menu_item (item, notreal, inmenubar) | |||
| 7402 | else | 7398 | else |
| 7403 | def = AREF (item_properties, ITEM_PROPERTY_DEF); | 7399 | def = AREF (item_properties, ITEM_PROPERTY_DEF); |
| 7404 | 7400 | ||
| 7405 | if (!update_menu_bindings) | 7401 | if (NILP (XCAR (cachelist))) /* Have no saved key. */ |
| 7406 | chkcache = 0; | ||
| 7407 | else if (NILP (XCAR (cachelist))) /* Have no saved key. */ | ||
| 7408 | { | 7402 | { |
| 7409 | if (newcache /* Always check first time. */ | 7403 | if (newcache /* Always check first time. */ |
| 7410 | /* Should we check everything when precomputing key | 7404 | /* Should we check everything when precomputing key |
| @@ -11407,12 +11401,6 @@ suppressed only after special commands that set | |||
| 11407 | `disable-point-adjustment' (which see) to non-nil. */); | 11401 | `disable-point-adjustment' (which see) to non-nil. */); |
| 11408 | Vglobal_disable_point_adjustment = Qnil; | 11402 | Vglobal_disable_point_adjustment = Qnil; |
| 11409 | 11403 | ||
| 11410 | DEFVAR_BOOL ("update-menu-bindings", &update_menu_bindings, | ||
| 11411 | doc: /* Non-nil means updating menu bindings is allowed. | ||
| 11412 | A value of nil means menu bindings should not be updated. | ||
| 11413 | Used during Emacs' startup. */); | ||
| 11414 | update_menu_bindings = 1; | ||
| 11415 | |||
| 11416 | DEFVAR_LISP ("minibuffer-message-timeout", &Vminibuffer_message_timeout, | 11404 | DEFVAR_LISP ("minibuffer-message-timeout", &Vminibuffer_message_timeout, |
| 11417 | doc: /* *How long to display an echo-area message when the minibuffer is active. | 11405 | doc: /* *How long to display an echo-area message when the minibuffer is active. |
| 11418 | If the value is not a number, such messages don't time out. */); | 11406 | If the value is not a number, such messages don't time out. */); |
diff --git a/src/macgui.h b/src/macgui.h index 607890317e1..fc777de03ba 100644 --- a/src/macgui.h +++ b/src/macgui.h | |||
| @@ -95,11 +95,14 @@ typedef GWorldPtr Pixmap; | |||
| 95 | /* Emulate XCharStruct. */ | 95 | /* Emulate XCharStruct. */ |
| 96 | typedef struct _XCharStruct | 96 | typedef struct _XCharStruct |
| 97 | { | 97 | { |
| 98 | int rbearing; | 98 | short lbearing; /* origin to left edge of raster */ |
| 99 | int lbearing; | 99 | short rbearing; /* origin to right edge of raster */ |
| 100 | int width; | 100 | short width; /* advance to next char's origin */ |
| 101 | int ascent; | 101 | short ascent; /* baseline to top edge of raster */ |
| 102 | int descent; | 102 | short descent; /* baseline to bottom edge of raster */ |
| 103 | #if 0 | ||
| 104 | unsigned short attributes; /* per char flags (not predefined) */ | ||
| 105 | #endif | ||
| 103 | } XCharStruct; | 106 | } XCharStruct; |
| 104 | 107 | ||
| 105 | #define STORE_XCHARSTRUCT(xcs, w, bds) \ | 108 | #define STORE_XCHARSTRUCT(xcs, w, bds) \ |
diff --git a/src/marker.c b/src/marker.c index 9b85930f357..882054b74f9 100644 --- a/src/marker.c +++ b/src/marker.c | |||
| @@ -256,6 +256,7 @@ buf_charpos_to_bytepos (b, charpos) | |||
| 256 | 256 | ||
| 257 | int | 257 | int |
| 258 | verify_bytepos (charpos) | 258 | verify_bytepos (charpos) |
| 259 | int charpos; | ||
| 259 | { | 260 | { |
| 260 | int below = 1; | 261 | int below = 1; |
| 261 | int below_byte = 1; | 262 | int below_byte = 1; |
diff --git a/src/process.c b/src/process.c index 5bab9684a7a..bebced812e8 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -187,7 +187,6 @@ extern Lisp_Object QCfilter; | |||
| 187 | 187 | ||
| 188 | #include "syswait.h" | 188 | #include "syswait.h" |
| 189 | 189 | ||
| 190 | extern void set_waiting_for_input P_ ((EMACS_TIME *)); | ||
| 191 | extern char *get_operating_system_release (); | 190 | extern char *get_operating_system_release (); |
| 192 | 191 | ||
| 193 | #ifndef USE_CRT_DLL | 192 | #ifndef USE_CRT_DLL |
diff --git a/src/systime.h b/src/systime.h index 12d8d406d8e..1d0022e93d7 100644 --- a/src/systime.h +++ b/src/systime.h | |||
| @@ -154,6 +154,9 @@ extern time_t timezone; | |||
| 154 | 154 | ||
| 155 | extern int set_file_times __P ((const char *, EMACS_TIME, EMACS_TIME)); | 155 | extern int set_file_times __P ((const char *, EMACS_TIME, EMACS_TIME)); |
| 156 | 156 | ||
| 157 | /* defined in keyboard.c */ | ||
| 158 | extern void set_waiting_for_input __P ((EMACS_TIME *)); | ||
| 159 | |||
| 157 | /* Compare times T1 and T2. Value is 0 if T1 and T2 are the same. | 160 | /* Compare times T1 and T2. Value is 0 if T1 and T2 are the same. |
| 158 | Value is < 0 if T1 is less than T2. Value is > 0 otherwise. */ | 161 | Value is < 0 if T1 is less than T2. Value is > 0 otherwise. */ |
| 159 | 162 | ||
diff --git a/src/xdisp.c b/src/xdisp.c index dddea77b572..27ab728502a 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -11470,6 +11470,7 @@ static int | |||
| 11470 | cursor_row_fully_visible_p (w, force_p, current_matrix_p) | 11470 | cursor_row_fully_visible_p (w, force_p, current_matrix_p) |
| 11471 | struct window *w; | 11471 | struct window *w; |
| 11472 | int force_p; | 11472 | int force_p; |
| 11473 | int current_matrix_p; | ||
| 11473 | { | 11474 | { |
| 11474 | struct glyph_matrix *matrix; | 11475 | struct glyph_matrix *matrix; |
| 11475 | struct glyph_row *row; | 11476 | struct glyph_row *row; |
diff --git a/src/xterm.c b/src/xterm.c index 8eead3d566c..655627abded 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -4030,8 +4030,6 @@ static Boolean xaw3d_arrow_scroll; | |||
| 4030 | 4030 | ||
| 4031 | static Boolean xaw3d_pick_top; | 4031 | static Boolean xaw3d_pick_top; |
| 4032 | 4032 | ||
| 4033 | extern void set_vertical_scroll_bar P_ ((struct window *)); | ||
| 4034 | |||
| 4035 | /* Action hook installed via XtAppAddActionHook when toolkit scroll | 4033 | /* Action hook installed via XtAppAddActionHook when toolkit scroll |
| 4036 | bars are used.. The hook is responsible for detecting when | 4034 | bars are used.. The hook is responsible for detecting when |
| 4037 | the user ends an interaction with the scroll bar, and generates | 4035 | the user ends an interaction with the scroll bar, and generates |
| @@ -6759,13 +6757,13 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit) | |||
| 6759 | && (int)(event.xbutton.time - ignore_next_mouse_click_timeout) > 0) | 6757 | && (int)(event.xbutton.time - ignore_next_mouse_click_timeout) > 0) |
| 6760 | { | 6758 | { |
| 6761 | ignore_next_mouse_click_timeout = 0; | 6759 | ignore_next_mouse_click_timeout = 0; |
| 6762 | construct_mouse_click (&inev.ie, &event, f); | 6760 | construct_mouse_click (&inev.ie, &event.xbutton, f); |
| 6763 | } | 6761 | } |
| 6764 | if (event.type == ButtonRelease) | 6762 | if (event.type == ButtonRelease) |
| 6765 | ignore_next_mouse_click_timeout = 0; | 6763 | ignore_next_mouse_click_timeout = 0; |
| 6766 | } | 6764 | } |
| 6767 | else | 6765 | else |
| 6768 | construct_mouse_click (&inev.ie, &event, f); | 6766 | construct_mouse_click (&inev.ie, &event.xbutton, f); |
| 6769 | } | 6767 | } |
| 6770 | } | 6768 | } |
| 6771 | } | 6769 | } |
diff --git a/src/xterm.h b/src/xterm.h index da474beef58..8f15184e09a 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -1006,6 +1006,7 @@ extern XtAppContext Xt_app_con; | |||
| 1006 | extern void x_query_colors P_ ((struct frame *f, XColor *, int)); | 1006 | extern void x_query_colors P_ ((struct frame *f, XColor *, int)); |
| 1007 | extern void x_query_color P_ ((struct frame *f, XColor *)); | 1007 | extern void x_query_color P_ ((struct frame *f, XColor *)); |
| 1008 | extern void x_clear_area P_ ((Display *, Window, int, int, int, int, int)); | 1008 | extern void x_clear_area P_ ((Display *, Window, int, int, int, int, int)); |
| 1009 | extern void set_vertical_scroll_bar P_ ((struct window *)); | ||
| 1009 | 1010 | ||
| 1010 | extern int x_dispatch_event P_ ((XEvent *, Display *)); | 1011 | extern int x_dispatch_event P_ ((XEvent *, Display *)); |
| 1011 | 1012 | ||