diff options
| author | Juanma Barranquero | 2008-02-11 11:31:13 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2008-02-11 11:31:13 +0000 |
| commit | 4ed4b9757231f30cd8cfc8ef1c2201d937023d4f (patch) | |
| tree | a44f3755366d7135574de3744d05ee8d0924e3bc | |
| parent | 0f71cdf20bc65103c155472c49827dfce4fef01c (diff) | |
| download | emacs-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.
| -rw-r--r-- | src/ChangeLog | 18 | ||||
| -rw-r--r-- | src/keyboard.c | 5 |
2 files changed, 14 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 04babe01a13..9b488a5c1d0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,7 +1,14 @@ | |||
| 1 | 2008-02-11 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * w32menu.c (push_submenu_start, push_submenu_end) | ||
| 4 | (push_left_right_boundary, push_menu_pane, push_menu_item): | ||
| 5 | * keyboard.c (read_key_sequence): Don't pass args with side effects | ||
| 6 | to AREF, it fails when compiling with -DENABLE_CHECKING. | ||
| 7 | |||
| 1 | 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp> | 8 | 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp> |
| 2 | 9 | ||
| 3 | * Makefile.in (${lispsource}international/charprop.el): Delete | 10 | * Makefile.in (${lispsource}international/charprop.el): |
| 4 | this target. | 11 | Delete this target. |
| 5 | 12 | ||
| 6 | * search.c (boyer_moore): Fix incorrect synching of the trunk and | 13 | * search.c (boyer_moore): Fix incorrect synching of the trunk and |
| 7 | emacs-unicode-2. | 14 | emacs-unicode-2. |
| @@ -75,13 +82,10 @@ | |||
| 75 | 82 | ||
| 76 | * s/gnu-linux.h: Remove commented out code. | 83 | * s/gnu-linux.h: Remove commented out code. |
| 77 | 84 | ||
| 78 | * unexec.c: Remove references to obsolete variable | 85 | * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE. |
| 79 | COFF_ENCAPSULATE. | ||
| 80 | 86 | ||
| 81 | * Makefile.in: Update what RMS says about using autoconf. | 87 | * Makefile.in: Update what RMS says about using autoconf. |
| 82 | (C_COMPILER): | 88 | (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable. |
| 83 | (COFF_ENCAPSULATE): | ||
| 84 | (MAKE_PARALLEL): Remove obsolete variable. | ||
| 85 | (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1): | 89 | (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1): |
| 86 | (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1) | 90 | (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1) |
| 87 | (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional. | 91 | (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional. |
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) |