Mercurial > emacs
changeset 71839:c31d8ae32af3
(Fstart_kbd_macro): Use CHECK_VECTOR_OR_STRING.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Wed, 12 Jul 2006 13:19:42 +0000 |
parents | a322faa9b90c |
children | 96e9b3cb9809 |
files | src/macros.c |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/macros.c Wed Jul 12 13:19:33 2006 +0000 +++ b/src/macros.c Wed Jul 12 13:19:42 2006 +0000 @@ -97,10 +97,7 @@ int cvt; /* Check the type of last-kbd-macro in case Lisp code changed it. */ - if (!STRINGP (current_kboard->Vlast_kbd_macro) - && !VECTORP (current_kboard->Vlast_kbd_macro)) - current_kboard->Vlast_kbd_macro - = wrong_type_argument (Qarrayp, current_kboard->Vlast_kbd_macro); + CHECK_VECTOR_OR_STRING (current_kboard->Vlast_kbd_macro); len = XINT (Flength (current_kboard->Vlast_kbd_macro));