[15071] in Athena Bugs

home help back first fref pref prev next nref lref last post

bug in `call-interactively'

daemon@ATHENA.MIT.EDU (David Bakhash)
Thu Apr 10 21:44:02 1997

Date: Thu, 10 Apr 1997 21:43:54 -0400 (EDT)
From: David Bakhash <cadet@MIT.EDU>
To: bugs@MIT.EDU

In GNU Emacs 19.30.1 (sparc-sun-solaris2.4, X toolkit) of Sat Sep 21 1996 on downy
configured using `configure  --prefix=/usr/athena --with-x-toolkit --sharedstatedir=/var/tmp --with-pop --with-hesiod --with-kerberos --x-includes= --x-libraries='

This bug seems to be everywhere in emacs and XEmacs.  The problem has to
do with the function `call-interactively'.  the problem has to do with
keyboard macros.

If I define a kbd macro, and then name it `say-hi', and I make the kbd
macro map to the letters "HI", then that macro is a command.  

(defalias 'say-hi
  (read-kbd-macro "HI"))

should end up being interactive.  In fact, the expression:

(commandp 'say-hi)

evals to TRUE.  This is correct.  The error is when I do this:

(call-interactively 'say-hi)

I get :

wrong type of argument: commandp, say-hi

This is totally messed up.  Can this be fixed?  The is screwing up my
strokes program b/c I wanted people to be able to map strokes to kbd
macros, but how can they if I can't call them interactively?  Do you
mind fixing this?

dave

home help back first fref pref prev next nref lref last post