aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2016-01-31 10:38:41 -0800
committerPaul Eggert2016-01-31 10:39:14 -0800
commit7b1d2b1b620b0c5815fba705eedd5f1353f0c488 (patch)
tree74bda7ea7ac061e6c2aad0dfecb8dba0a1a7aa31 /src
parenta8273dacd51fc2dfa917722ad25390c64759318d (diff)
downloademacs-7b1d2b1b620b0c5815fba705eedd5f1353f0c488.tar.gz
emacs-7b1d2b1b620b0c5815fba705eedd5f1353f0c488.zip
Fix (c & 040) typo in emergency escapes
* src/keyboard.c (handle_interrupt): Fix recently-introduced typo (040 should have been ~040) that silently suppressed auto-saves after emergency escapes. Redo comparison to avoid similar problems.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 20aa2dbd389..546c0128328 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -10302,7 +10302,7 @@ handle_interrupt (bool in_signal_handler)
10302 { 10302 {
10303 write_stdout ("Auto-save? (y or n) "); 10303 write_stdout ("Auto-save? (y or n) ");
10304 c = read_stdin (); 10304 c = read_stdin ();
10305 if ((c & 040) == 'Y') 10305 if (c == 'y' || c == 'Y')
10306 { 10306 {
10307 Fdo_auto_save (Qt, Qnil); 10307 Fdo_auto_save (Qt, Qnil);
10308#ifdef MSDOS 10308#ifdef MSDOS
@@ -10334,7 +10334,7 @@ handle_interrupt (bool in_signal_handler)
10334 write_stdout ("Abort (and dump core)? (y or n) "); 10334 write_stdout ("Abort (and dump core)? (y or n) ");
10335#endif 10335#endif
10336 c = read_stdin (); 10336 c = read_stdin ();
10337 if ((c & ~040) == 'Y') 10337 if (c == 'y' || c == 'Y')
10338 emacs_abort (); 10338 emacs_abort ();
10339 while (c != '\n') 10339 while (c != '\n')
10340 c = read_stdin (); 10340 c = read_stdin ();