mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-25 06:50:46 -08:00
(Fcommandp): Simplify.
This commit is contained in:
parent
1e0b36be0a
commit
ed16fb98ca
1 changed files with 4 additions and 6 deletions
10
src/eval.c
10
src/eval.c
|
|
@ -1,5 +1,5 @@
|
|||
/* Evaluator for GNU Emacs Lisp interpreter.
|
||||
Copyright (C) 1985, 86, 87, 93, 94, 95, 99, 2000, 2001, 2002
|
||||
Copyright (C) 1985, 86, 87, 93, 94, 95, 99, 2000, 2001, 02, 2004
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Emacs.
|
||||
|
|
@ -1812,13 +1812,11 @@ then strings and vectors are not accepted. */)
|
|||
/* Lists may represent commands. */
|
||||
if (!CONSP (fun))
|
||||
return Qnil;
|
||||
funcar = Fcar (fun);
|
||||
if (!SYMBOLP (funcar))
|
||||
return Fsignal (Qinvalid_function, Fcons (fun, Qnil));
|
||||
funcar = XCAR (fun);
|
||||
if (EQ (funcar, Qlambda))
|
||||
return Fassq (Qinteractive, Fcdr (Fcdr (fun)));
|
||||
return Fassq (Qinteractive, Fcdr (XCDR (fun)));
|
||||
if (EQ (funcar, Qautoload))
|
||||
return Fcar (Fcdr (Fcdr (Fcdr (fun))));
|
||||
return Fcar (Fcdr (Fcdr (XCDR (fun))));
|
||||
else
|
||||
return Qnil;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue