From: "T. V. Raman" <raman@users.sf.net>
To: monnier@iro.umontreal.ca
Cc: emacs-pretest-bug@gnu.org, raman@users.sf.net
Subject: Re: 23.0.50; interactive-form on advised commands returns compiled advice
Date: Mon, 10 Sep 2007 19:02:15 -0700 [thread overview]
Message-ID: <18149.63271.38380.259485@gargle.gargle.HOWL> (raw)
In-Reply-To: <jwvy7fe7g2h.fsf-monnier+emacs@gnu.org>
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: raman@users.sf.net
WWW: http://emacspeak.sf.net/raman/
AIM: emacspeak GTalk: tv.raman.tv@gmail.com
PGP: http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman
IRC: irc://irc.freenode.net/#emacs
next prev parent reply other threads:[~2007-09-11 2:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-09 23:48 23.0.50; interactive-form on advised commands returns compiled advice raman
2007-09-10 2:55 ` Stefan Monnier
2007-09-10 13:16 ` T. V. Raman
2007-09-10 14:27 ` Stefan Monnier
2007-09-11 2:02 ` T. V. Raman [this message]
2007-09-11 3:04 ` Stefan Monnier
2007-09-10 23:55 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18149.63271.38380.259485@gargle.gargle.HOWL \
--to=raman@users.sf.net \
--cc=emacs-pretest-bug@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.