diff options
| author | Karoly Lorentey | 2006-12-03 12:15:03 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2006-12-03 12:15:03 +0000 |
| commit | 14bcc1e098410087a837313e2fc822319ff2e8ca (patch) | |
| tree | e468aebbb8d84438d81eb08bf6b77bfeaf664ea7 /src | |
| parent | 5665a02fd1d009506f246d5f77896e3995127954 (diff) | |
| parent | 704ec54b3f2a40026ea7835b76e040c7335a56c1 (diff) | |
| download | emacs-14bcc1e098410087a837313e2fc822319ff2e8ca.tar.gz emacs-14bcc1e098410087a837313e2fc822319ff2e8ca.zip | |
Merged from emacs@sv.gnu.org.
Patches applied:
* emacs@sv.gnu.org/emacs--devo--0--patch-474
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-475
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-476
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-477
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-478
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-150
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-151
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-152
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-584
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 23 | ||||
| -rw-r--r-- | src/dispnew.c | 29 | ||||
| -rw-r--r-- | src/gtkutil.c | 18 | ||||
| -rw-r--r-- | src/mac.c | 10 | ||||
| -rw-r--r-- | src/macterm.c | 10 | ||||
| -rw-r--r-- | src/sysdep.c | 10 |
6 files changed, 58 insertions, 42 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f86c4c6a21c..ce3c7d1435b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,26 @@ | |||
| 1 | 2006-10-16 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * gtkutil.c (get_utf8_string): Remove warnings with casts. | ||
| 4 | (xg_tool_bar_button_cb): Ditto | ||
| 5 | (xg_tool_bar_callback): Ditto. | ||
| 6 | |||
| 7 | 2006-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 8 | |||
| 9 | * dispnew.c (adjust_frame_glyphs_for_frame_redisplay): Remove unused | ||
| 10 | variable ch_dim. | ||
| 11 | (adjust_frame_glyphs_for_window_redisplay): Likewise. Don't allocate | ||
| 12 | menu bar window matrices on non-X systems. | ||
| 13 | |||
| 14 | * mac.c (Fmac_get_preference, Fmac_code_convert_string): Add GCPROs. | ||
| 15 | |||
| 16 | * macterm.c (mac_query_char_extents): Don't return glyph ID if layout | ||
| 17 | adjustment is needed. | ||
| 18 | (mac_load_query_font): Check if width and height are positive. | ||
| 19 | |||
| 20 | 2006-10-14 Richard Stallman <rms@gnu.org> | ||
| 21 | |||
| 22 | * sysdep.c (init_sys_modes): Delete DEFVAR_LISP in the wrong place. | ||
| 23 | |||
| 1 | 2006-10-13 Chong Yidong <cyd@stupidchicken.com> | 24 | 2006-10-13 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 25 | ||
| 3 | * xdisp.c (decode_mode_spec): Ignore %c and %l constructs in frame | 26 | * xdisp.c (decode_mode_spec): Ignore %c and %l constructs in frame |
diff --git a/src/dispnew.c b/src/dispnew.c index 394c550fa73..5ace8ac2985 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -1786,11 +1786,9 @@ check_matrix_invariants (w) | |||
| 1786 | 1786 | ||
| 1787 | X and Y are column/row within the frame glyph matrix where | 1787 | X and Y are column/row within the frame glyph matrix where |
| 1788 | sub-matrices for the window tree rooted at WINDOW must be | 1788 | sub-matrices for the window tree rooted at WINDOW must be |
| 1789 | allocated. CH_DIM contains the dimensions of the smallest | 1789 | allocated. DIM_ONLY_P non-zero means that the caller of this |
| 1790 | character that could be used during display. DIM_ONLY_P non-zero | 1790 | function is only interested in the result matrix dimension, and |
| 1791 | means that the caller of this function is only interested in the | 1791 | matrix adjustments should not be performed. |
| 1792 | result matrix dimension, and matrix adjustments should not be | ||
| 1793 | performed. | ||
| 1794 | 1792 | ||
| 1795 | The function returns the total width/height of the sub-matrices of | 1793 | The function returns the total width/height of the sub-matrices of |
| 1796 | the window tree. If called on a frame root window, the computation | 1794 | the window tree. If called on a frame root window, the computation |
| @@ -2038,8 +2036,7 @@ required_matrix_width (w) | |||
| 2038 | 2036 | ||
| 2039 | 2037 | ||
| 2040 | /* Allocate window matrices for window-based redisplay. W is the | 2038 | /* Allocate window matrices for window-based redisplay. W is the |
| 2041 | window whose matrices must be allocated/reallocated. CH_DIM is the | 2039 | window whose matrices must be allocated/reallocated. */ |
| 2042 | size of the smallest character that could potentially be used on W. */ | ||
| 2043 | 2040 | ||
| 2044 | static void | 2041 | static void |
| 2045 | allocate_matrices_for_window_redisplay (w) | 2042 | allocate_matrices_for_window_redisplay (w) |
| @@ -2272,7 +2269,6 @@ static void | |||
| 2272 | adjust_frame_glyphs_for_frame_redisplay (f) | 2269 | adjust_frame_glyphs_for_frame_redisplay (f) |
| 2273 | struct frame *f; | 2270 | struct frame *f; |
| 2274 | { | 2271 | { |
| 2275 | struct dim ch_dim; | ||
| 2276 | struct dim matrix_dim; | 2272 | struct dim matrix_dim; |
| 2277 | int pool_changed_p; | 2273 | int pool_changed_p; |
| 2278 | int window_change_flags; | 2274 | int window_change_flags; |
| @@ -2281,10 +2277,6 @@ adjust_frame_glyphs_for_frame_redisplay (f) | |||
| 2281 | if (!FRAME_LIVE_P (f)) | 2277 | if (!FRAME_LIVE_P (f)) |
| 2282 | return; | 2278 | return; |
| 2283 | 2279 | ||
| 2284 | /* Determine the smallest character in any font for F. On | ||
| 2285 | console windows, all characters have dimension (1, 1). */ | ||
| 2286 | ch_dim.width = ch_dim.height = 1; | ||
| 2287 | |||
| 2288 | top_window_y = FRAME_TOP_MARGIN (f); | 2280 | top_window_y = FRAME_TOP_MARGIN (f); |
| 2289 | 2281 | ||
| 2290 | /* Allocate glyph pool structures if not already done. */ | 2282 | /* Allocate glyph pool structures if not already done. */ |
| @@ -2373,22 +2365,14 @@ static void | |||
| 2373 | adjust_frame_glyphs_for_window_redisplay (f) | 2365 | adjust_frame_glyphs_for_window_redisplay (f) |
| 2374 | struct frame *f; | 2366 | struct frame *f; |
| 2375 | { | 2367 | { |
| 2376 | struct dim ch_dim; | ||
| 2377 | struct window *w; | 2368 | struct window *w; |
| 2378 | 2369 | ||
| 2379 | xassert (FRAME_WINDOW_P (f) && FRAME_LIVE_P (f)); | 2370 | xassert (FRAME_WINDOW_P (f) && FRAME_LIVE_P (f)); |
| 2380 | 2371 | ||
| 2381 | /* Get minimum sizes. */ | ||
| 2382 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 2383 | ch_dim.width = FRAME_SMALLEST_CHAR_WIDTH (f); | ||
| 2384 | ch_dim.height = FRAME_SMALLEST_FONT_HEIGHT (f); | ||
| 2385 | #else | ||
| 2386 | ch_dim.width = ch_dim.height = 1; | ||
| 2387 | #endif | ||
| 2388 | |||
| 2389 | /* Allocate/reallocate window matrices. */ | 2372 | /* Allocate/reallocate window matrices. */ |
| 2390 | allocate_matrices_for_window_redisplay (XWINDOW (FRAME_ROOT_WINDOW (f))); | 2373 | allocate_matrices_for_window_redisplay (XWINDOW (FRAME_ROOT_WINDOW (f))); |
| 2391 | 2374 | ||
| 2375 | #ifdef HAVE_X_WINDOWS | ||
| 2392 | /* Allocate/ reallocate matrices of the dummy window used to display | 2376 | /* Allocate/ reallocate matrices of the dummy window used to display |
| 2393 | the menu bar under X when no X toolkit support is available. */ | 2377 | the menu bar under X when no X toolkit support is available. */ |
| 2394 | #if ! defined (USE_X_TOOLKIT) && ! defined (USE_GTK) | 2378 | #if ! defined (USE_X_TOOLKIT) && ! defined (USE_GTK) |
| @@ -2412,7 +2396,8 @@ adjust_frame_glyphs_for_window_redisplay (f) | |||
| 2412 | XSETFASTINT (w->total_cols, FRAME_TOTAL_COLS (f)); | 2396 | XSETFASTINT (w->total_cols, FRAME_TOTAL_COLS (f)); |
| 2413 | allocate_matrices_for_window_redisplay (w); | 2397 | allocate_matrices_for_window_redisplay (w); |
| 2414 | } | 2398 | } |
| 2415 | #endif /* not USE_X_TOOLKIT */ | 2399 | #endif /* not USE_X_TOOLKIT && not USE_GTK */ |
| 2400 | #endif /* HAVE_X_WINDOWS */ | ||
| 2416 | 2401 | ||
| 2417 | #ifndef USE_GTK | 2402 | #ifndef USE_GTK |
| 2418 | /* Allocate/ reallocate matrices of the tool bar window. If we | 2403 | /* Allocate/ reallocate matrices of the tool bar window. If we |
diff --git a/src/gtkutil.c b/src/gtkutil.c index 18b3607fc6f..2370855248a 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -523,8 +523,8 @@ get_utf8_string (str) | |||
| 523 | char *cp, *up; | 523 | char *cp, *up; |
| 524 | GError *error = NULL; | 524 | GError *error = NULL; |
| 525 | 525 | ||
| 526 | while (! (cp = g_locale_to_utf8 (p, -1, &bytes_read, | 526 | while (! (cp = g_locale_to_utf8 ((char *)p, -1, &bytes_read, |
| 527 | &bytes_written, &error)) | 527 | &bytes_written, &error)) |
| 528 | && error->code == G_CONVERT_ERROR_ILLEGAL_SEQUENCE) | 528 | && error->code == G_CONVERT_ERROR_ILLEGAL_SEQUENCE) |
| 529 | { | 529 | { |
| 530 | ++nr_bad; | 530 | ++nr_bad; |
| @@ -541,13 +541,13 @@ get_utf8_string (str) | |||
| 541 | if (cp) g_free (cp); | 541 | if (cp) g_free (cp); |
| 542 | 542 | ||
| 543 | up = utf8_str = xmalloc (strlen (str) + nr_bad * 4 + 1); | 543 | up = utf8_str = xmalloc (strlen (str) + nr_bad * 4 + 1); |
| 544 | p = str; | 544 | p = (unsigned char *)str; |
| 545 | 545 | ||
| 546 | while (! (cp = g_locale_to_utf8 (p, -1, &bytes_read, | 546 | while (! (cp = g_locale_to_utf8 ((char *)p, -1, &bytes_read, |
| 547 | &bytes_written, &error)) | 547 | &bytes_written, &error)) |
| 548 | && error->code == G_CONVERT_ERROR_ILLEGAL_SEQUENCE) | 548 | && error->code == G_CONVERT_ERROR_ILLEGAL_SEQUENCE) |
| 549 | { | 549 | { |
| 550 | strncpy (up, p, bytes_written); | 550 | strncpy (up, (char *)p, bytes_written); |
| 551 | sprintf (up + bytes_written, "\\%03o", p[bytes_written]); | 551 | sprintf (up + bytes_written, "\\%03o", p[bytes_written]); |
| 552 | up[bytes_written+4] = '\0'; | 552 | up[bytes_written+4] = '\0'; |
| 553 | up += bytes_written+4; | 553 | up += bytes_written+4; |
| @@ -3362,8 +3362,9 @@ xg_tool_bar_button_cb (widget, event, user_data) | |||
| 3362 | GdkEventButton *event; | 3362 | GdkEventButton *event; |
| 3363 | gpointer user_data; | 3363 | gpointer user_data; |
| 3364 | { | 3364 | { |
| 3365 | g_object_set_data (G_OBJECT (user_data), XG_TOOL_BAR_LAST_MODIFIER, | 3365 | /* Casts to avoid warnings when gpointer is 64 bits and int is 32 bits */ |
| 3366 | (gpointer) event->state); | 3366 | gpointer ptr = (gpointer) (EMACS_INT) event->state; |
| 3367 | g_object_set_data (G_OBJECT (user_data), XG_TOOL_BAR_LAST_MODIFIER, ptr); | ||
| 3367 | return FALSE; | 3368 | return FALSE; |
| 3368 | } | 3369 | } |
| 3369 | 3370 | ||
| @@ -3375,7 +3376,8 @@ xg_tool_bar_callback (w, client_data) | |||
| 3375 | { | 3376 | { |
| 3376 | /* The EMACS_INT cast avoids a warning. */ | 3377 | /* The EMACS_INT cast avoids a warning. */ |
| 3377 | int idx = (int) (EMACS_INT) client_data; | 3378 | int idx = (int) (EMACS_INT) client_data; |
| 3378 | int mod = (int) g_object_get_data (G_OBJECT (w), XG_TOOL_BAR_LAST_MODIFIER); | 3379 | int mod = (int) (EMACS_INT) g_object_get_data (G_OBJECT (w), |
| 3380 | XG_TOOL_BAR_LAST_MODIFIER); | ||
| 3379 | 3381 | ||
| 3380 | FRAME_PTR f = (FRAME_PTR) g_object_get_data (G_OBJECT (w), XG_FRAME_DATA); | 3382 | FRAME_PTR f = (FRAME_PTR) g_object_get_data (G_OBJECT (w), XG_FRAME_DATA); |
| 3381 | Lisp_Object key, frame; | 3383 | Lisp_Object key, frame; |
| @@ -4611,6 +4611,7 @@ otherwise. */) | |||
| 4611 | CFStringRef app_id, key_str; | 4611 | CFStringRef app_id, key_str; |
| 4612 | CFPropertyListRef app_plist = NULL, plist; | 4612 | CFPropertyListRef app_plist = NULL, plist; |
| 4613 | Lisp_Object result = Qnil, tmp; | 4613 | Lisp_Object result = Qnil, tmp; |
| 4614 | struct gcpro gcpro1, gcpro2; | ||
| 4614 | 4615 | ||
| 4615 | if (STRINGP (key)) | 4616 | if (STRINGP (key)) |
| 4616 | key = Fcons (key, Qnil); | 4617 | key = Fcons (key, Qnil); |
| @@ -4627,6 +4628,8 @@ otherwise. */) | |||
| 4627 | if (!NILP (hash_bound)) | 4628 | if (!NILP (hash_bound)) |
| 4628 | CHECK_NUMBER (hash_bound); | 4629 | CHECK_NUMBER (hash_bound); |
| 4629 | 4630 | ||
| 4631 | GCPRO2 (key, format); | ||
| 4632 | |||
| 4630 | BLOCK_INPUT; | 4633 | BLOCK_INPUT; |
| 4631 | 4634 | ||
| 4632 | app_id = kCFPreferencesCurrentApplication; | 4635 | app_id = kCFPreferencesCurrentApplication; |
| @@ -4681,6 +4684,8 @@ otherwise. */) | |||
| 4681 | 4684 | ||
| 4682 | UNBLOCK_INPUT; | 4685 | UNBLOCK_INPUT; |
| 4683 | 4686 | ||
| 4687 | UNGCPRO; | ||
| 4688 | |||
| 4684 | return result; | 4689 | return result; |
| 4685 | } | 4690 | } |
| 4686 | 4691 | ||
| @@ -4846,6 +4851,7 @@ On successful conversion, return the result string, else return nil. */) | |||
| 4846 | Lisp_Object string, source, target, normalization_form; | 4851 | Lisp_Object string, source, target, normalization_form; |
| 4847 | { | 4852 | { |
| 4848 | Lisp_Object result = Qnil; | 4853 | Lisp_Object result = Qnil; |
| 4854 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; | ||
| 4849 | CFStringEncoding src_encoding, tgt_encoding; | 4855 | CFStringEncoding src_encoding, tgt_encoding; |
| 4850 | CFStringRef str = NULL; | 4856 | CFStringRef str = NULL; |
| 4851 | 4857 | ||
| @@ -4856,6 +4862,8 @@ On successful conversion, return the result string, else return nil. */) | |||
| 4856 | CHECK_SYMBOL (target); | 4862 | CHECK_SYMBOL (target); |
| 4857 | CHECK_SYMBOL (normalization_form); | 4863 | CHECK_SYMBOL (normalization_form); |
| 4858 | 4864 | ||
| 4865 | GCPRO4 (string, source, target, normalization_form); | ||
| 4866 | |||
| 4859 | BLOCK_INPUT; | 4867 | BLOCK_INPUT; |
| 4860 | 4868 | ||
| 4861 | src_encoding = get_cfstring_encoding_from_lisp (source); | 4869 | src_encoding = get_cfstring_encoding_from_lisp (source); |
| @@ -4896,6 +4904,8 @@ On successful conversion, return the result string, else return nil. */) | |||
| 4896 | 4904 | ||
| 4897 | UNBLOCK_INPUT; | 4905 | UNBLOCK_INPUT; |
| 4898 | 4906 | ||
| 4907 | UNGCPRO; | ||
| 4908 | |||
| 4899 | return result; | 4909 | return result; |
| 4900 | } | 4910 | } |
| 4901 | 4911 | ||
diff --git a/src/macterm.c b/src/macterm.c index 6902ac72304..d4ce2a1b298 100644 --- a/src/macterm.c +++ b/src/macterm.c | |||
| @@ -1198,7 +1198,12 @@ mac_query_char_extents (style, c, | |||
| 1198 | err1 = ATSUGetGlyphInfo (text_layout, kATSUFromTextBeginning, | 1198 | err1 = ATSUGetGlyphInfo (text_layout, kATSUFromTextBeginning, |
| 1199 | kATSUToTextEnd, &count, | 1199 | kATSUToTextEnd, &count, |
| 1200 | &glyph_info_array); | 1200 | &glyph_info_array); |
| 1201 | if (err1 == noErr) | 1201 | if (err1 == noErr |
| 1202 | /* Make sure that we don't have to make layout | ||
| 1203 | adjustments. */ | ||
| 1204 | && glyph_info_array.glyphs[0].deltaY == 0.0f | ||
| 1205 | && glyph_info_array.glyphs[0].idealX == 0.0f | ||
| 1206 | && glyph_info_array.glyphs[0].screenX == 0) | ||
| 1202 | { | 1207 | { |
| 1203 | xassert (glyph_info_array.glyphs[0].glyphID); | 1208 | xassert (glyph_info_array.glyphs[0].glyphID); |
| 1204 | *cg_glyph = glyph_info_array.glyphs[0].glyphID; | 1209 | *cg_glyph = glyph_info_array.glyphs[0].glyphID; |
| @@ -7963,7 +7968,8 @@ mac_load_query_font (f, fontname) | |||
| 7963 | NULL | 7968 | NULL |
| 7964 | #endif | 7969 | #endif |
| 7965 | ); | 7970 | ); |
| 7966 | if (err != noErr) | 7971 | if (err != noErr |
| 7972 | || space_bounds->width <= 0 || FONT_HEIGHT (font) <= 0) | ||
| 7967 | { | 7973 | { |
| 7968 | mac_unload_font (&one_mac_display_info, font); | 7974 | mac_unload_font (&one_mac_display_info, font); |
| 7969 | return NULL; | 7975 | return NULL; |
diff --git a/src/sysdep.c b/src/sysdep.c index 6d630c4832f..07f5f2e8a30 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -1421,16 +1421,6 @@ init_sys_modes (tty_out) | |||
| 1421 | { | 1421 | { |
| 1422 | struct emacs_tty tty; | 1422 | struct emacs_tty tty; |
| 1423 | 1423 | ||
| 1424 | #ifdef MAC_OS8 | ||
| 1425 | /* cus-start.el complains if delete-exited-processes is not defined */ | ||
| 1426 | #ifndef subprocesses | ||
| 1427 | DEFVAR_BOOL ("delete-exited-processes", &delete_exited_processes, | ||
| 1428 | doc: /* *Non-nil means delete processes immediately when they exit. | ||
| 1429 | nil means don't delete them until `list-processes' is run. */); | ||
| 1430 | delete_exited_processes = 0; | ||
| 1431 | #endif | ||
| 1432 | #endif /* MAC_OS8 */ | ||
| 1433 | |||
| 1434 | #ifdef VMS | 1424 | #ifdef VMS |
| 1435 | #if 0 | 1425 | #if 0 |
| 1436 | static int oob_chars[2] = {0, 1 << 7}; /* catch C-g's */ | 1426 | static int oob_chars[2] = {0, 1 << 7}; /* catch C-g's */ |