aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-08-28 14:24:49 +0000
committerRichard M. Stallman1996-08-28 14:24:49 +0000
commit51603bd058a74e904e9648027e287790c6993fa9 (patch)
treeea06489134e59f14c828a637b9cab534fd28ff71 /src
parent68f44e92d17edddc27645e07c9acfff7b062bbb7 (diff)
downloademacs-51603bd058a74e904e9648027e287790c6993fa9.tar.gz
emacs-51603bd058a74e904e9648027e287790c6993fa9.zip
(command_loop_1): Cancel echoing etc.
before running post-command-hook and such.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index d394cc4f701..a343e1b59b5 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1370,22 +1370,6 @@ command_loop_1 ()
1370 } 1370 }
1371 directly_done: ; 1371 directly_done: ;
1372 1372
1373 /* Note that the value cell will never directly contain nil
1374 if the symbol is a local variable. */
1375 if (!NILP (Vpost_command_hook) && !NILP (Vrun_hooks))
1376 safe_run_hooks (Qpost_command_hook);
1377
1378 if (!NILP (Vdeferred_action_list))
1379 safe_run_hooks (Qdeferred_action_function);
1380
1381 if (!NILP (Vpost_command_idle_hook) && !NILP (Vrun_hooks))
1382 {
1383 if (NILP (Vunread_command_events)
1384 && NILP (Vexecuting_macro)
1385 && !NILP (sit_for (0, post_command_idle_delay, 0, 1)))
1386 safe_run_hooks (Qpost_command_idle_hook);
1387 }
1388
1389 /* If there is a prefix argument, 1373 /* If there is a prefix argument,
1390 1) We don't want Vlast_command to be ``universal-argument'' 1374 1) We don't want Vlast_command to be ``universal-argument''
1391 (that would be dumb), so don't set Vlast_command, 1375 (that would be dumb), so don't set Vlast_command,
@@ -1407,6 +1391,22 @@ command_loop_1 ()
1407 this_single_command_key_start = 0; 1391 this_single_command_key_start = 0;
1408 } 1392 }
1409 1393
1394 /* Note that the value cell will never directly contain nil
1395 if the symbol is a local variable. */
1396 if (!NILP (Vpost_command_hook) && !NILP (Vrun_hooks))
1397 safe_run_hooks (Qpost_command_hook);
1398
1399 if (!NILP (Vdeferred_action_list))
1400 safe_run_hooks (Qdeferred_action_function);
1401
1402 if (!NILP (Vpost_command_idle_hook) && !NILP (Vrun_hooks))
1403 {
1404 if (NILP (Vunread_command_events)
1405 && NILP (Vexecuting_macro)
1406 && !NILP (sit_for (0, post_command_idle_delay, 0, 1)))
1407 safe_run_hooks (Qpost_command_idle_hook);
1408 }
1409
1410 if (!NILP (current_buffer->mark_active) && !NILP (Vrun_hooks)) 1410 if (!NILP (current_buffer->mark_active) && !NILP (Vrun_hooks))
1411 { 1411 {
1412 if (!NILP (Vdeactivate_mark) && !NILP (Vtransient_mark_mode)) 1412 if (!NILP (Vdeactivate_mark) && !NILP (Vtransient_mark_mode))