help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

??? Wrong type argument....


From: Christian Seberino
Subject: ??? Wrong type argument....
Date: Fri, 22 Feb 2002 12:27:51 -0800
User-agent: Mutt/1.2.5i

FROM .emacs:
========================================

(setq compile-command-defined nil)

...

(defun new-compile() (new-compile-command)
   (if (equal compile-command-defined t)

      (compile compile-command)

      (progn (interactive "scompile command: ")
             (setq compile-command new-compile-command)
             (setq compile-command-defined t)
             (compile compile-command))))
========================================

This function should query for compile-command once
and then never thereafter.  When run it gives following
error:

   Wrong type argument: commandp, new-compile

Any ideas?

P.S. It would be nice to replace new-compile-command with
compile-command.  Middle-men just clutter things.
-- 
=======================================================
| Dr. Christian Seberino  || (619) 553-7940  (office) |
| SPAWARSYSCEN 2363       || (619) 553-2836  (fax)    |
| 53560 HULL ST           ||                          |
| SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil |
=======================================================



reply via email to

[Prev in Thread] Current Thread [Next in Thread]