diff options
| author | Richard M. Stallman | 1993-07-26 05:34:46 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-07-26 05:34:46 +0000 |
| commit | 9fd7d808494d1c3e2782cea503cef2c623532fe3 (patch) | |
| tree | 2a969e6dce91125faf6d7b933cd1940adfc0a139 /src | |
| parent | af1b8606a799b1514c180ce601b27ac13da6304b (diff) | |
| download | emacs-9fd7d808494d1c3e2782cea503cef2c623532fe3.tar.gz emacs-9fd7d808494d1c3e2782cea503cef2c623532fe3.zip | |
(kbd_buffer_store_event): Apply all the modifiers bits
before testing for quit_char and stop_character. Don't alter
event->code, though.
(interrupt_signal): Tell Fdo_auto_save not to print msg.
Print "Auto-save done" here.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 359a480aac2..fc1ac681f16 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -445,6 +445,7 @@ void (*keyboard_init_hook) (); | |||
| 445 | 445 | ||
| 446 | static int read_avail_input (); | 446 | static int read_avail_input (); |
| 447 | static void get_input_pending (); | 447 | static void get_input_pending (); |
| 448 | static int readable_events (); | ||
| 448 | static Lisp_Object read_char_menu_prompt (); | 449 | static Lisp_Object read_char_menu_prompt (); |
| 449 | static Lisp_Object make_lispy_event (); | 450 | static Lisp_Object make_lispy_event (); |
| 450 | static Lisp_Object make_lispy_movement (); | 451 | static Lisp_Object make_lispy_movement (); |
| @@ -1748,6 +1749,10 @@ kbd_buffer_store_event (event) | |||
| 1748 | if (event->modifiers & ctrl_modifier) | 1749 | if (event->modifiers & ctrl_modifier) |
| 1749 | c = make_ctrl_char (c); | 1750 | c = make_ctrl_char (c); |
| 1750 | 1751 | ||
| 1752 | c |= (event->modifiers | ||
| 1753 | & (meta_modifier | alt_modifier | ||
| 1754 | | hyper_modifier | super_modifier)); | ||
| 1755 | |||
| 1751 | if (c == quit_char) | 1756 | if (c == quit_char) |
| 1752 | { | 1757 | { |
| 1753 | extern SIGTYPE interrupt_signal (); | 1758 | extern SIGTYPE interrupt_signal (); |
| @@ -1779,8 +1784,6 @@ kbd_buffer_store_event (event) | |||
| 1779 | sys_suspend (); | 1784 | sys_suspend (); |
| 1780 | return; | 1785 | return; |
| 1781 | } | 1786 | } |
| 1782 | |||
| 1783 | XSET (event->code, Lisp_Int, c); | ||
| 1784 | } | 1787 | } |
| 1785 | 1788 | ||
| 1786 | if (kbd_store_ptr - kbd_buffer == KBD_BUFFER_SIZE) | 1789 | if (kbd_store_ptr - kbd_buffer == KBD_BUFFER_SIZE) |
| @@ -4835,7 +4838,10 @@ interrupt_signal () | |||
| 4835 | printf ("Auto-save? (y or n) "); | 4838 | printf ("Auto-save? (y or n) "); |
| 4836 | fflush (stdout); | 4839 | fflush (stdout); |
| 4837 | if (((c = getchar ()) & ~040) == 'Y') | 4840 | if (((c = getchar ()) & ~040) == 'Y') |
| 4838 | Fdo_auto_save (Qnil, Qnil); | 4841 | { |
| 4842 | Fdo_auto_save (Qt, Qnil); | ||
| 4843 | printf ("Auto-save done\n"); | ||
| 4844 | } | ||
| 4839 | while (c != '\n') c = getchar (); | 4845 | while (c != '\n') c = getchar (); |
| 4840 | #ifdef VMS | 4846 | #ifdef VMS |
| 4841 | printf ("Abort (and enter debugger)? (y or n) "); | 4847 | printf ("Abort (and enter debugger)? (y or n) "); |