comparison src/keyboard.c @ 36255:1890bad59762

Use display_hourglass_p, start_hourglass, cancel_hourglass instead of the old names.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 21 Feb 2001 13:57:40 +0000
parents ab4e575401d9
children 604d7fae62d1
comparison
equal deleted inserted replaced
36254:f64eaa8f61aa 36255:1890bad59762
1 /* Keyboard and mouse input; editor command loop. 1 /* Keyboard and mouse input; editor command loop.
2 Copyright (C) 1985,86,87,88,89,93,94,95,96,97,99, 2000 2 Copyright (C) 1985,86,87,88,89,93,94,95,96,97,99, 2000, 2001
3 Free Software Foundation, Inc. 3 Free Software Foundation, Inc.
4 4
5 This file is part of GNU Emacs. 5 This file is part of GNU Emacs.
6 6
7 GNU Emacs is free software; you can redistribute it and/or modify 7 GNU Emacs is free software; you can redistribute it and/or modify
918 specbind (Qstandard_output, Qt); 918 specbind (Qstandard_output, Qt);
919 specbind (Qstandard_input, Qt); 919 specbind (Qstandard_input, Qt);
920 } 920 }
921 921
922 #ifdef HAVE_X_WINDOWS 922 #ifdef HAVE_X_WINDOWS
923 /* The command loop has started a busy-cursor timer, so we have to 923 /* The command loop has started an hourglass timer, so we have to
924 cancel it here, otherwise it will fire because the recursive edit 924 cancel it here, otherwise it will fire because the recursive edit
925 can take some time. */ 925 can take some time. */
926 if (display_busy_cursor_p) 926 if (display_hourglass_p)
927 cancel_busy_cursor (); 927 cancel_hourglass ();
928 #endif 928 #endif
929 929
930 /* This function may have been called from a debugger called from 930 /* This function may have been called from a debugger called from
931 within redisplay, for instance by Edebugging a function called 931 within redisplay, for instance by Edebugging a function called
932 from fontification-functions. We want to allow redisplay in 932 from fontification-functions. We want to allow redisplay in
1247 DEFUN ("top-level", Ftop_level, Stop_level, 0, 0, "", 1247 DEFUN ("top-level", Ftop_level, Stop_level, 0, 0, "",
1248 "Exit all recursive editing levels.") 1248 "Exit all recursive editing levels.")
1249 () 1249 ()
1250 { 1250 {
1251 #ifdef HAVE_X_WINDOWS 1251 #ifdef HAVE_X_WINDOWS
1252 if (display_busy_cursor_p) 1252 if (display_hourglass_p)
1253 cancel_busy_cursor (); 1253 cancel_hourglass ();
1254 #endif 1254 #endif
1255 return Fthrow (Qtop_level, Qnil); 1255 return Fthrow (Qtop_level, Qnil);
1256 } 1256 }
1257 1257
1258 DEFUN ("exit-recursive-edit", Fexit_recursive_edit, Sexit_recursive_edit, 0, 0, "", 1258 DEFUN ("exit-recursive-edit", Fexit_recursive_edit, Sexit_recursive_edit, 0, 0, "",
1604 } 1604 }
1605 1605
1606 /* Here for a command that isn't executed directly */ 1606 /* Here for a command that isn't executed directly */
1607 1607
1608 #ifdef HAVE_X_WINDOWS 1608 #ifdef HAVE_X_WINDOWS
1609 if (display_busy_cursor_p) 1609 if (display_hourglass_p)
1610 start_busy_cursor (); 1610 start_hourglass ();
1611 #endif 1611 #endif
1612 1612
1613 nonundocount = 0; 1613 nonundocount = 0;
1614 if (NILP (current_kboard->Vprefix_arg)) 1614 if (NILP (current_kboard->Vprefix_arg))
1615 Fundo_boundary (); 1615 Fundo_boundary ();
1616 Fcommand_execute (Vthis_command, Qnil, Qnil, Qnil); 1616 Fcommand_execute (Vthis_command, Qnil, Qnil, Qnil);
1617 1617
1618 #ifdef HAVE_X_WINDOWS 1618 #ifdef HAVE_X_WINDOWS
1619 if (display_busy_cursor_p) 1619 if (display_hourglass_p)
1620 cancel_busy_cursor (); 1620 cancel_hourglass ();
1621 #endif 1621 #endif
1622 } 1622 }
1623 directly_done: ; 1623 directly_done: ;
1624 current_kboard->Vlast_prefix_arg = Vcurrent_prefix_arg; 1624 current_kboard->Vlast_prefix_arg = Vcurrent_prefix_arg;
1625 1625
8894 this_command_key_count = 0; 8894 this_command_key_count = 0;
8895 this_single_command_key_start = 0; 8895 this_single_command_key_start = 0;
8896 } 8896 }
8897 8897
8898 #ifdef HAVE_X_WINDOWS 8898 #ifdef HAVE_X_WINDOWS
8899 if (display_busy_cursor_p) 8899 if (display_hourglass_p)
8900 cancel_busy_cursor (); 8900 cancel_hourglass ();
8901 #endif 8901 #endif
8902 8902
8903 i = read_key_sequence (keybuf, (sizeof keybuf/sizeof (keybuf[0])), 8903 i = read_key_sequence (keybuf, (sizeof keybuf/sizeof (keybuf[0])),
8904 prompt, ! NILP (dont_downcase_last), 8904 prompt, ! NILP (dont_downcase_last),
8905 ! NILP (can_return_switch_frame), 0); 8905 ! NILP (can_return_switch_frame), 0);
8906 8906
8907 #if 0 /* The following is fine for code reading a key sequence and 8907 #if 0 /* The following is fine for code reading a key sequence and
8908 then proceeding with a lenghty compuation, but it's not good 8908 then proceeding with a lenghty compuation, but it's not good
8909 for code reading keys in a loop, like an input method. */ 8909 for code reading keys in a loop, like an input method. */
8910 #ifdef HAVE_X_WINDOWS 8910 #ifdef HAVE_X_WINDOWS
8911 if (display_busy_cursor_p) 8911 if (display_hourglass_p)
8912 start_busy_cursor (); 8912 start_hourglass ();
8913 #endif 8913 #endif
8914 #endif 8914 #endif
8915 8915
8916 if (i == -1) 8916 if (i == -1)
8917 { 8917 {
8953 this_command_key_count = 0; 8953 this_command_key_count = 0;
8954 this_single_command_key_start = 0; 8954 this_single_command_key_start = 0;
8955 } 8955 }
8956 8956
8957 #ifdef HAVE_X_WINDOWS 8957 #ifdef HAVE_X_WINDOWS
8958 if (display_busy_cursor_p) 8958 if (display_hourglass_p)
8959 cancel_busy_cursor (); 8959 cancel_hourglass ();
8960 #endif 8960 #endif
8961 8961
8962 i = read_key_sequence (keybuf, (sizeof keybuf/sizeof (keybuf[0])), 8962 i = read_key_sequence (keybuf, (sizeof keybuf/sizeof (keybuf[0])),
8963 prompt, ! NILP (dont_downcase_last), 8963 prompt, ! NILP (dont_downcase_last),
8964 ! NILP (can_return_switch_frame), 0); 8964 ! NILP (can_return_switch_frame), 0);
8965 8965
8966 #ifdef HAVE_X_WINDOWS 8966 #ifdef HAVE_X_WINDOWS
8967 if (display_busy_cursor_p) 8967 if (display_hourglass_p)
8968 start_busy_cursor (); 8968 start_hourglass ();
8969 #endif 8969 #endif
8970 8970
8971 if (i == -1) 8971 if (i == -1)
8972 { 8972 {
8973 Vquit_flag = Qt; 8973 Vquit_flag = Qt;