aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2008-02-19 04:03:01 +0000
committerStefan Monnier2008-02-19 04:03:01 +0000
commit1b51154227ca5d91d97555c8349f523b7e3b5103 (patch)
tree8e7f1c3b83bc99a4eebd97138bb0c04b3f1e656b /src
parenta02bf0c3ee9b76c6e24d12481a4afcfbc22ea0b8 (diff)
downloademacs-1b51154227ca5d91d97555c8349f523b7e3b5103.tar.gz
emacs-1b51154227ca5d91d97555c8349f523b7e3b5103.zip
(Fcall_interactively): Use AREF.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/callint.c10
2 files changed, 9 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 89d76226486..6d80913dd8b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * callint.c (Fcall_interactively): Use AREF.
4
12008-02-18 Stefan Monnier <monnier@iro.umontreal.ca> 52008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2 6
3 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs. 7 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
diff --git a/src/callint.c b/src/callint.c
index 74e0e22fd6d..8a9f8322d9b 100644
--- a/src/callint.c
+++ b/src/callint.c
@@ -390,7 +390,7 @@ invoke it. If KEYS is omitted or nil, the return value of
390 390
391 /* Set next_event to point to the first event with parameters. */ 391 /* Set next_event to point to the first event with parameters. */
392 for (next_event = 0; next_event < key_count; next_event++) 392 for (next_event = 0; next_event < key_count; next_event++)
393 if (EVENT_HAS_PARAMETERS (XVECTOR (keys)->contents[next_event])) 393 if (EVENT_HAS_PARAMETERS (AREF (keys, next_event)))
394 break; 394 break;
395 395
396 /* Handle special starting chars `*' and `@'. Also `-'. */ 396 /* Handle special starting chars `*' and `@'. Also `-'. */
@@ -428,7 +428,7 @@ invoke it. If KEYS is omitted or nil, the return value of
428 Lisp_Object event, tem; 428 Lisp_Object event, tem;
429 429
430 event = (next_event < key_count 430 event = (next_event < key_count
431 ? XVECTOR (keys)->contents[next_event] 431 ? AREF (keys, next_event)
432 : Qnil); 432 : Qnil);
433 if (EVENT_HAS_PARAMETERS (event) 433 if (EVENT_HAS_PARAMETERS (event)
434 && (tem = XCDR (event), CONSP (tem)) 434 && (tem = XCDR (event), CONSP (tem))
@@ -647,13 +647,13 @@ invoke it. If KEYS is omitted or nil, the return value of
647 (SYMBOLP (function) 647 (SYMBOLP (function)
648 ? (char *) SDATA (SYMBOL_NAME (function)) 648 ? (char *) SDATA (SYMBOL_NAME (function))
649 : "command")); 649 : "command"));
650 args[i] = XVECTOR (keys)->contents[next_event++]; 650 args[i] = AREF (keys, next_event);
651 next_event++;
651 varies[i] = -1; 652 varies[i] = -1;
652 653
653 /* Find the next parameterized event. */ 654 /* Find the next parameterized event. */
654 while (next_event < key_count 655 while (next_event < key_count
655 && ! (EVENT_HAS_PARAMETERS 656 && !(EVENT_HAS_PARAMETERS (AREF (keys, next_event))))
656 (XVECTOR (keys)->contents[next_event])))
657 next_event++; 657 next_event++;
658 658
659 break; 659 break;