From: Stefan Monnier Date: Tue, 19 Feb 2008 04:03:01 +0000 (+0000) Subject: (Fcall_interactively): Use AREF. X-Git-Tag: emacs-pretest-23.0.90~7862 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1b51154227ca5d91d97555c8349f523b7e3b5103;p=emacs.git (Fcall_interactively): Use AREF. --- diff --git a/src/ChangeLog b/src/ChangeLog index 89d76226486..6d80913dd8b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-02-19 Stefan Monnier + + * callint.c (Fcall_interactively): Use AREF. + 2008-02-18 Stefan Monnier * 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 /* Set next_event to point to the first event with parameters. */ for (next_event = 0; next_event < key_count; next_event++) - if (EVENT_HAS_PARAMETERS (XVECTOR (keys)->contents[next_event])) + if (EVENT_HAS_PARAMETERS (AREF (keys, next_event))) break; /* Handle special starting chars `*' and `@'. Also `-'. */ @@ -428,7 +428,7 @@ invoke it. If KEYS is omitted or nil, the return value of Lisp_Object event, tem; event = (next_event < key_count - ? XVECTOR (keys)->contents[next_event] + ? AREF (keys, next_event) : Qnil); if (EVENT_HAS_PARAMETERS (event) && (tem = XCDR (event), CONSP (tem)) @@ -647,13 +647,13 @@ invoke it. If KEYS is omitted or nil, the return value of (SYMBOLP (function) ? (char *) SDATA (SYMBOL_NAME (function)) : "command")); - args[i] = XVECTOR (keys)->contents[next_event++]; + args[i] = AREF (keys, next_event); + next_event++; varies[i] = -1; /* Find the next parameterized event. */ while (next_event < key_count - && ! (EVENT_HAS_PARAMETERS - (XVECTOR (keys)->contents[next_event]))) + && !(EVENT_HAS_PARAMETERS (AREF (keys, next_event)))) next_event++; break;