From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier 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 10:27:23 -0400 Message-ID: References: <20070909234806.DBF2112A4546@localhost> <18149.17301.189511.214535@gargle.gargle.HOWL> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1189436008 13352 80.91.229.12 (10 Sep 2007 14:53:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2007 14:53:28 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: raman@users.sf.net Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 11 00:53:14 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 1IUrjg-00072u-4V for ged-emacs-devel@m.gmane.org; Tue, 11 Sep 2007 00:28:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUkFJ-0004XE-JZ for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2007 10:28:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IUkEc-0004Da-MQ for emacs-devel@gnu.org; Mon, 10 Sep 2007 10:27:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IUkEb-0004Ch-0a for emacs-devel@gnu.org; Mon, 10 Sep 2007 10:27:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUkEa-0004CY-RG for emacs-devel@gnu.org; Mon, 10 Sep 2007 10:27:28 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IUkEa-00087D-IR for emacs-devel@gnu.org; Mon, 10 Sep 2007 10:27:28 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IUkED-0004Gs-K9 for emacs-pretest-bug@gnu.org; Mon, 10 Sep 2007 10:27:05 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IUkEX-00086X-OT for emacs-pretest-bug@gnu.org; Mon, 10 Sep 2007 10:27:28 -0400 Original-Received: from tomts10.bellnexxia.net ([209.226.175.54] helo=tomts10-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IUkEX-00086D-DV for emacs-pretest-bug@gnu.org; Mon, 10 Sep 2007 10:27:25 -0400 Original-Received: from pastel.home ([70.55.141.227]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070910142724.ZSCI9197.tomts10-srv.bellnexxia.net@pastel.home> for ; Mon, 10 Sep 2007 10:27:24 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id C4883800F; Mon, 10 Sep 2007 10:27:23 -0400 (EDT) In-Reply-To: <18149.17301.189511.214535@gargle.gargle.HOWL> (T. V. Raman's message of "Mon\, 10 Sep 2007 06\:16\:05 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-Detected-Kernel: Solaris 8 (1) 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:78446 gmane.emacs.pretest.bugs:19818 Archived-At: > Here is a more accurate description of the problem. > If you define an advice on a command, and in that advice you > provide an interactive form, > then calling interactive-form later on that function ends up > returning what was created through the advice, and that turns out > to be a piece of code. > I'm hitting this because of how I end up having to advice > commands like copy-to-register -- > whose interactive forms wouldn't provide speech feedback > otherwise. Please give me more concrete data. Here's what I tried: ELISP> (defadvice diff-refine-ignore-spaces-hunk (around sm-test activate) (interactive "") ad-do-it) diff-refine-ignore-spaces-hunk ELISP> (interactive-form 'diff-refine-ignore-spaces-hunk) (interactive "") ELISP> looks correct so far. Stefan