Mercurial > emacs
comparison src/keyboard.c @ 7224:a96533ce8122
(force_auto_save_soon): New function.
(make_lispy_movement): If HAVE_MOUSE, include the mouse handling code.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 30 Apr 1994 07:40:40 +0000 |
parents | 82bb839ac5c6 |
children | 420c92074bd6 |
comparison
equal
deleted
inserted
replaced
7223:38931e897e56 | 7224:a96533ce8122 |
---|---|
661 | 661 |
662 return unbind_to (count, Qnil); | 662 return unbind_to (count, Qnil); |
663 } | 663 } |
664 | 664 |
665 /* When an auto-save happens, record the "time", and don't do again soon. */ | 665 /* When an auto-save happens, record the "time", and don't do again soon. */ |
666 | |
666 record_auto_save () | 667 record_auto_save () |
667 { | 668 { |
668 last_auto_save = num_nonmacro_input_chars; | 669 last_auto_save = num_nonmacro_input_chars; |
670 } | |
671 | |
672 /* Make an auto save happen as soon as possible at command level. */ | |
673 | |
674 force_auto_save_soon () | |
675 { | |
676 last_auto_save = - auto_save_interval - 1; | |
669 } | 677 } |
670 | 678 |
671 DEFUN ("recursive-edit", Frecursive_edit, Srecursive_edit, 0, 0, "", | 679 DEFUN ("recursive-edit", Frecursive_edit, Srecursive_edit, 0, 0, "", |
672 "Invoke the editor command loop recursively.\n\ | 680 "Invoke the editor command loop recursively.\n\ |
673 To get out of the recursive edit, a command can do `(throw 'exit nil)';\n\ | 681 To get out of the recursive edit, a command can do `(throw 'exit nil)';\n\ |
2477 lispy_function_keys, &func_key_syms, | 2485 lispy_function_keys, &func_key_syms, |
2478 (sizeof (lispy_function_keys) | 2486 (sizeof (lispy_function_keys) |
2479 / sizeof (lispy_function_keys[0]))); | 2487 / sizeof (lispy_function_keys[0]))); |
2480 break; | 2488 break; |
2481 | 2489 |
2482 #ifdef MULTI_FRAME | 2490 #if defined(MULTI_FRAME) || defined(HAVE_MOUSE) |
2483 /* A mouse click. Figure out where it is, decide whether it's | 2491 /* A mouse click. Figure out where it is, decide whether it's |
2484 a press, click or drag, and build the appropriate structure. */ | 2492 a press, click or drag, and build the appropriate structure. */ |
2485 case mouse_click: | 2493 case mouse_click: |
2486 case scroll_bar_click: | 2494 case scroll_bar_click: |
2487 { | 2495 { |
2706 return Fcons (head, | 2714 return Fcons (head, |
2707 Fcons (position, | 2715 Fcons (position, |
2708 Qnil)); | 2716 Qnil)); |
2709 } | 2717 } |
2710 } | 2718 } |
2711 #endif /* MULTI_FRAME */ | 2719 #endif /* MULTI_FRAME or HAVE_MOUSE */ |
2712 | 2720 |
2713 /* The 'kind' field of the event is something we don't recognize. */ | 2721 /* The 'kind' field of the event is something we don't recognize. */ |
2714 default: | 2722 default: |
2715 abort (); | 2723 abort (); |
2716 } | 2724 } |