aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2012-10-05 17:52:17 -0700
committerPaul Eggert2012-10-05 17:52:17 -0700
commitc6e21c0323ab576a7d600f6074d9ad7b882a3efd (patch)
tree351735aeb81d1a32c01c44481190c5b3bc5bdea9 /src
parent58eaa9ec4c95c1e473c4ca42f97cdfb340310e22 (diff)
downloademacs-c6e21c0323ab576a7d600f6074d9ad7b882a3efd.tar.gz
emacs-c6e21c0323ab576a7d600f6074d9ad7b882a3efd.zip
* keyboard.c (read_char): Remove unnecessary 'volatile's and label.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/keyboard.c12
2 files changed, 7 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index cb17e8192e4..956e78e6c7e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12012-10-06 Paul Eggert <eggert@cs.ucla.edu>
2
3 * keyboard.c (read_char): Remove unnecessary 'volatile's and label.
4
12012-10-05 Eli Zaretskii <eliz@gnu.org> 52012-10-05 Eli Zaretskii <eliz@gnu.org>
2 6
3 * w32proc.c (stop_timer_thread): Fix declaration of 'err'. 7 * w32proc.c (stop_timer_thread): Fix declaration of 'err'.
diff --git a/src/keyboard.c b/src/keyboard.c
index 19ece4a22f1..d06b02024c5 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -2283,11 +2283,10 @@ read_char (int commandflag, ptrdiff_t nmaps, Lisp_Object *maps,
2283 Lisp_Object prev_event, 2283 Lisp_Object prev_event,
2284 int *used_mouse_menu, EMACS_TIME *end_time) 2284 int *used_mouse_menu, EMACS_TIME *end_time)
2285{ 2285{
2286 volatile Lisp_Object c; 2286 Lisp_Object c;
2287 ptrdiff_t jmpcount; 2287 ptrdiff_t jmpcount;
2288 sys_jmp_buf local_getcjmp; 2288 sys_jmp_buf local_getcjmp;
2289 sys_jmp_buf save_jump; 2289 sys_jmp_buf save_jump;
2290 volatile int key_already_recorded = 0;
2291 Lisp_Object tem, save; 2290 Lisp_Object tem, save;
2292 volatile Lisp_Object previous_echo_area_message; 2291 volatile Lisp_Object previous_echo_area_message;
2293 volatile Lisp_Object also_record; 2292 volatile Lisp_Object also_record;
@@ -2519,10 +2518,7 @@ read_char (int commandflag, ptrdiff_t nmaps, Lisp_Object *maps,
2519 return c; /* wrong_kboard_jmpbuf */ 2518 return c; /* wrong_kboard_jmpbuf */
2520 2519
2521 if (! NILP (c)) 2520 if (! NILP (c))
2522 { 2521 goto exit;
2523 key_already_recorded = 1;
2524 goto non_reread_1;
2525 }
2526 } 2522 }
2527 2523
2528 /* Make a longjmp point for quits to use, but don't alter getcjmp just yet. 2524 /* Make a longjmp point for quits to use, but don't alter getcjmp just yet.
@@ -2850,12 +2846,10 @@ read_char (int commandflag, ptrdiff_t nmaps, Lisp_Object *maps,
2850 goto wrong_kboard; 2846 goto wrong_kboard;
2851 } 2847 }
2852 2848
2853 non_reread_1:
2854
2855 /* Buffer switch events are only for internal wakeups 2849 /* Buffer switch events are only for internal wakeups
2856 so don't show them to the user. 2850 so don't show them to the user.
2857 Also, don't record a key if we already did. */ 2851 Also, don't record a key if we already did. */
2858 if (BUFFERP (c) || key_already_recorded) 2852 if (BUFFERP (c))
2859 goto exit; 2853 goto exit;
2860 2854
2861 /* Process special events within read_char 2855 /* Process special events within read_char