emacs-devel
[Top][All Lists]
Advanced

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

Re: 23.0.50; interactive-form on advised commands returns compiled advic


From: T. V. Raman
Subject: Re: 23.0.50; interactive-form on advised commands returns compiled advice
Date: 2007年9月10日 19:02:15 -0700

Stefane,
Here is some sample code.
If you byte compile this, then calling interactive-form on foo
will return the byte-compiled code.
;;; Define a function that uses interactive 
(defun foo (c)
(interactive "cChar:")
c)
;;; replace the interactive form via advice 
(defadvice foo (before test pre act comp)
 "Advice the interactive form."
 (interactive
(list
(progn 
(message "hello")
(read-char "Char:")))))
 
;;; (interactive-form 'foo)
;;; returns the new interactive form.
Now byte-compile this code -- you get the compiled code when you
call interactive-form.
Strictly speaking it's unclear whether this is in fact a bug. But
it would be nice if interactive-form 
did not return compiled code.
-- 
Best Regards,
--raman
 
Email: address@hidden
WWW: http://emacspeak.sf.net/raman/
AIM: emacspeak GTalk: address@hidden
PGP: http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC: irc://irc.freenode.net/#emacs

reply via email to

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

AltStyle によって変換されたページ (->オリジナル) /