From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Frank Fischer Newsgroups: gmane.emacs.help Subject: Re: defadvice and called-interactively-p Date: Fri, 8 Jun 2012 06:45:29 +0000 (UTC) Message-ID: References: <874nqozyrv.fsf@ericabrahamsen.net> <87txyoyivg.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1339137954 2223 80.91.229.3 (8 Jun 2012 06:45:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Jun 2012 06:45:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 08 08:45:54 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ScsxF-0005K4-J0 for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Jun 2012 08:45:53 +0200 Original-Received: from localhost ([::1]:51434 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScsxF-0000SD-Cm for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Jun 2012 02:45:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Scsx9-0000S5-MX for help-gnu-emacs@gnu.org; Fri, 08 Jun 2012 02:45:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Scsx7-0003SS-84 for help-gnu-emacs@gnu.org; Fri, 08 Jun 2012 02:45:47 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:53073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Scsx6-0003SA-Tr for help-gnu-emacs@gnu.org; Fri, 08 Jun 2012 02:45:45 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Scsx2-000501-Hw for help-gnu-emacs@gnu.org; Fri, 08 Jun 2012 08:45:40 +0200 Original-Received: from mordred.mathematik.tu-chemnitz.de ([134.109.40.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Jun 2012 08:45:40 +0200 Original-Received: from frank-fischer by mordred.mathematik.tu-chemnitz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Jun 2012 08:45:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 13 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: mordred.mathematik.tu-chemnitz.de User-Agent: slrn/0.9.9p1 (Linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85152 Archived-At: On 2012-06-08, Juanma Barranquero wrote: > As an horrible kludge, if you really need a way to make it work and > don't mind the ugliness: > > (defadvice myfunc (around around-myfunc activate) > (if (called-interactively-p 'any) > (call-interactively (ad-get-orig-definition 'myfunc)) > ad-do-it)) Thanks a lot, this is exactly what I'm looking for. No idea why I didn't find `ad-get-orig-definition' on my own :) Frank