diff options
| author | Stefan Monnier | 2009-08-12 05:07:48 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2009-08-12 05:07:48 +0000 |
| commit | 1ac9108a3d6f91efbf9dc479af92d0f46faf30a7 (patch) | |
| tree | c239abeed9573b080ab721c44a1afd11705b4177 /src/keyboard.c | |
| parent | cf6e27cf471ef190f74f84659fcea68b38218656 (diff) | |
| download | emacs-1ac9108a3d6f91efbf9dc479af92d0f46faf30a7.tar.gz emacs-1ac9108a3d6f91efbf9dc479af92d0f46faf30a7.zip | |
* cmds.c (nonundocount): New global variable.
(keys_of_cmds): Initialize it.
(Fself_insert_command): Use it to combine upto 20 sequential chars
into a single undo entry, just like the Qself_insert_command code in
keyboard.c does.
Call frame_make_pointer_invisible, also like the Qself_insert_command
code in keyboard.c does.
* keyboard.c (command_loop_1): Use the new global nonundocount rather
than its own local replacement for it.
Diffstat (limited to 'src/keyboard.c')
| -rw-r--r-- | src/keyboard.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index b8714a393ec..a49c6465f41 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -1519,12 +1519,13 @@ cancel_hourglass_unwind (arg) | |||
| 1519 | } | 1519 | } |
| 1520 | #endif | 1520 | #endif |
| 1521 | 1521 | ||
| 1522 | extern int nonundocount; /* Declared in cmds.c. */ | ||
| 1523 | |||
| 1522 | Lisp_Object | 1524 | Lisp_Object |
| 1523 | command_loop_1 () | 1525 | command_loop_1 () |
| 1524 | { | 1526 | { |
| 1525 | Lisp_Object cmd; | 1527 | Lisp_Object cmd; |
| 1526 | int lose; | 1528 | int lose; |
| 1527 | int nonundocount; | ||
| 1528 | Lisp_Object keybuf[30]; | 1529 | Lisp_Object keybuf[30]; |
| 1529 | int i; | 1530 | int i; |
| 1530 | int prev_modiff = 0; | 1531 | int prev_modiff = 0; |
| @@ -1540,7 +1541,6 @@ command_loop_1 () | |||
| 1540 | waiting_for_input = 0; | 1541 | waiting_for_input = 0; |
| 1541 | cancel_echoing (); | 1542 | cancel_echoing (); |
| 1542 | 1543 | ||
| 1543 | nonundocount = 0; | ||
| 1544 | this_command_key_count = 0; | 1544 | this_command_key_count = 0; |
| 1545 | this_command_key_count_reset = 0; | 1545 | this_command_key_count_reset = 0; |
| 1546 | this_single_command_key_start = 0; | 1546 | this_single_command_key_start = 0; |
| @@ -1898,7 +1898,7 @@ command_loop_1 () | |||
| 1898 | #endif | 1898 | #endif |
| 1899 | 1899 | ||
| 1900 | nonundocount = 0; | 1900 | nonundocount = 0; |
| 1901 | if (NILP (current_kboard->Vprefix_arg)) | 1901 | if (NILP (current_kboard->Vprefix_arg)) /* FIXME: Why? --Stef */ |
| 1902 | Fundo_boundary (); | 1902 | Fundo_boundary (); |
| 1903 | Fcommand_execute (Vthis_command, Qnil, Qnil, Qnil); | 1903 | Fcommand_execute (Vthis_command, Qnil, Qnil, Qnil); |
| 1904 | 1904 | ||