aboutsummaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorJason Rumney2008-03-19 17:04:18 +0000
committerJason Rumney2008-03-19 17:04:18 +0000
commitd148e14dc586e5f94e158c7396588b8183e42ceb (patch)
treec32cad07b7b8aa8404fe26ec522db8de52b26f87 /src/eval.c
parentcdf8b62f427dc64e3b70a4d5a5602a69f427f1c8 (diff)
downloademacs-d148e14dc586e5f94e158c7396588b8183e42ceb.tar.gz
emacs-d148e14dc586e5f94e158c7396588b8183e42ceb.zip
* w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
(syms_of_w32fns): Initialize them. (HOURGLASS_ID): New constant. (x_window_to_frame): Don't check hourglass_window. (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer. (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor. (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor. (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor. Only change the cursor if hourglass is not active. (Fx_create_frame): Initialize frame's current_cursor. (hourglass_atimer): Remove. (hourglass_started): New function. (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32. (show_hourglass): Adapt to w32, changing argument to frame. * w32term.h (struct w32_output): Remove hourglass_window. Add current_cursor. * eval.c (call_debugger, Fsignal): * keyboard.c (recursive_edit_1, cmd_error, Ftop_level) (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector) (Fexecute_extended_command, cancel_hourglass_unwind): * minibuf.c (read_minibuf): * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c
index 38cf87b509a..62fe01592e6 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -283,7 +283,7 @@ call_debugger (arg)
283 if (SPECPDL_INDEX () + 100 > max_specpdl_size) 283 if (SPECPDL_INDEX () + 100 > max_specpdl_size)
284 max_specpdl_size = SPECPDL_INDEX () + 100; 284 max_specpdl_size = SPECPDL_INDEX () + 100;
285 285
286#ifdef HAVE_X_WINDOWS 286#ifdef HAVE_WINDOW_SYSTEM
287 if (display_hourglass_p) 287 if (display_hourglass_p)
288 cancel_hourglass (); 288 cancel_hourglass ();
289#endif 289#endif
@@ -1640,7 +1640,7 @@ See also the function `condition-case'. */)
1640 1640
1641#if 0 /* rms: I don't know why this was here, 1641#if 0 /* rms: I don't know why this was here,
1642 but it is surely wrong for an error that is handled. */ 1642 but it is surely wrong for an error that is handled. */
1643#ifdef HAVE_X_WINDOWS 1643#ifdef HAVE_WINDOW_SYSTEM
1644 if (display_hourglass_p) 1644 if (display_hourglass_p)
1645 cancel_hourglass (); 1645 cancel_hourglass ();
1646#endif 1646#endif