aboutsummaryrefslogtreecommitdiffstats
path: root/src/macros.c
diff options
context:
space:
mode:
authorJim Blandy1992-05-18 08:13:37 +0000
committerJim Blandy1992-05-18 08:13:37 +0000
commit502ddf238f0ed280a301426804b2ed16ec1c49cc (patch)
treeb73b5866ff8c59b1be99067bcb342aea95294e8c /src/macros.c
parentf9f15513851223c20a9cbc49ac0cd4cde114a963 (diff)
downloademacs-502ddf238f0ed280a301426804b2ed16ec1c49cc.tar.gz
emacs-502ddf238f0ed280a301426804b2ed16ec1c49cc.zip
entered into RCS
Diffstat (limited to 'src/macros.c')
-rw-r--r--src/macros.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/macros.c b/src/macros.c
index f9c158c89eb..64e91776f67 100644
--- a/src/macros.c
+++ b/src/macros.c
@@ -1,11 +1,11 @@
1/* Keyboard macros. 1/* Keyboard macros.
2 Copyright (C) 1985, 1986 Free Software Foundation, Inc. 2 Copyright (C) 1985, 1986, 1992 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
6GNU Emacs is free software; you can redistribute it and/or modify 6GNU Emacs is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by 7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 1, or (at your option) 8the Free Software Foundation; either version 2, or (at your option)
9any later version. 9any later version.
10 10
11GNU Emacs is distributed in the hope that it will be useful, 11GNU Emacs is distributed in the hope that it will be useful,
@@ -201,9 +201,7 @@ COUNT is a repeat count, or nil for once, or 0 for infinite loop.")
201 prefixarg = Fprefix_numeric_value (prefixarg), 201 prefixarg = Fprefix_numeric_value (prefixarg),
202 repeat = XINT (prefixarg); 202 repeat = XINT (prefixarg);
203 203
204 final = macro; 204 final = indirect_function (macro);
205 while (XTYPE (final) == Lisp_Symbol && !EQ (final, Qunbound))
206 final = XSYMBOL (final)->function;
207 if (XTYPE (final) != Lisp_String 205 if (XTYPE (final) != Lisp_String
208 && XTYPE (final) != Lisp_Vector) 206 && XTYPE (final) != Lisp_Vector)
209 error ("Keyboard macros must be strings or vectors."); 207 error ("Keyboard macros must be strings or vectors.");