From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "T. V. Raman" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.50; interactive-form on advised commands returns compiled advice Date: Mon, 10 Sep 2007 19:02:15 -0700 Message-ID: <18149.63271.38380.259485@gargle.gargle.HOWL> References: <20070909234806.DBF2112A4546@localhost> <18149.17301.189511.214535@gargle.gargle.HOWL> Reply-To: raman@users.sf.net NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1189476943 32601 80.91.229.12 (11 Sep 2007 02:15:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2007 02:15:43 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, raman@users.sf.net To: monnier@iro.umontreal.ca Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 11 12:15:29 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IV2ZV-0000or-UR for ged-emacs-devel@m.gmane.org; Tue, 11 Sep 2007 12:02:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUv59-0006ZB-8p for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2007 22:02:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IUv56-0006Yr-2g for emacs-devel@gnu.org; Mon, 10 Sep 2007 22:02:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IUv53-0006Yf-Iu for emacs-devel@gnu.org; Mon, 10 Sep 2007 22:02:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUv53-0006Yc-Fz for emacs-devel@gnu.org; Mon, 10 Sep 2007 22:02:21 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IUv53-0000ji-2e for emacs-devel@gnu.org; Mon, 10 Sep 2007 22:02:21 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IUv4f-0006wp-GA for emacs-pretest-bug@gnu.org; Mon, 10 Sep 2007 22:01:57 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IUv4z-0000jG-Cv for emacs-pretest-bug@gnu.org; Mon, 10 Sep 2007 22:02:20 -0400 Original-Received: from rwcrmhc12.comcast.net ([216.148.227.152]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IUv4z-0000j4-4W for emacs-pretest-bug@gnu.org; Mon, 10 Sep 2007 22:02:17 -0400 Original-Received: from localhost (c-71-202-191-236.hsd1.ca.comcast.net[71.202.191.236]) by comcast.net (rwcrmhc12) with ESMTP id <20070911020215m1200fbioue>; Tue, 11 Sep 2007 02:02:15 +0000 Original-Received: by localhost (Postfix, from userid 1000) id 1573612A4546; Mon, 10 Sep 2007 19:02:15 -0700 (PDT) In-Reply-To: X-Mailer: VM alpha-478 under Emacs 23.0.50.10 (i686-pc-linux-gnu) x-attribution: tvr X-Detected-Kernel: NetCache Data OnTap 5.x X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:78549 gmane.emacs.pretest.bugs:19841 Archived-At: 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