aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorJuanma Barranquero2008-02-11 11:31:13 +0000
committerJuanma Barranquero2008-02-11 11:31:13 +0000
commit4ed4b9757231f30cd8cfc8ef1c2201d937023d4f (patch)
treea44f3755366d7135574de3744d05ee8d0924e3bc /src/keyboard.c
parent0f71cdf20bc65103c155472c49827dfce4fef01c (diff)
downloademacs-4ed4b9757231f30cd8cfc8ef1c2201d937023d4f.tar.gz
emacs-4ed4b9757231f30cd8cfc8ef1c2201d937023d4f.zip
(read_key_sequence): Don't pass args with side effects to AREF,
it fails when compiling with -DENABLE_CHECKING.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 81e2feadbd8..78298b96681 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -9590,7 +9590,8 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last,
9590 } 9590 }
9591 9591
9592 GROW_RAW_KEYBUF; 9592 GROW_RAW_KEYBUF;
9593 ASET (raw_keybuf, raw_keybuf_count++, key); 9593 ASET (raw_keybuf, raw_keybuf_count, key);
9594 raw_keybuf_count++;
9594 } 9595 }
9595 9596
9596 /* Clicks in non-text areas get prefixed by the symbol 9597 /* Clicks in non-text areas get prefixed by the symbol
@@ -9617,7 +9618,7 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last,
9617 { 9618 {
9618 Lisp_Object window, posn; 9619 Lisp_Object window, posn;
9619 9620
9620 window = POSN_WINDOW (EVENT_START (key)); 9621 window = POSN_WINDOW (EVENT_START (key));
9621 posn = POSN_POSN (EVENT_START (key)); 9622 posn = POSN_POSN (EVENT_START (key));
9622 9623
9623 if (CONSP (posn) 9624 if (CONSP (posn)