From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Elena Newsgroups: gmane.emacs.help Subject: Re: Advising a non-interactive function? Date: Mon, 31 Aug 2009 13:53:11 -0700 (PDT) Organization: http://groups.google.com Message-ID: <0e1cafd0-6c44-4b6f-b820-7c968a957d32@g23g2000vbr.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1251754854 24530 80.91.229.12 (31 Aug 2009 21:40:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 31 Aug 2009 21:40: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 Mon Aug 31 23:40:47 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MiEcH-0007A3-Cy for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Aug 2009 23:40:45 +0200 Original-Received: from localhost ([127.0.0.1]:38090 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiEcG-00025T-Sw for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Aug 2009 17:40:44 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!g23g2000vbr.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 11 Original-NNTP-Posting-Host: 94.36.76.122 Original-X-Trace: posting.google.com 1251751991 15109 127.0.0.1 (31 Aug 2009 20:53:11 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 31 Aug 2009 20:53:11 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g23g2000vbr.googlegroups.com; posting-host=94.36.76.122; posting-account=AFCLjAoAAABJAOf_HjgEEEi3ty-lG5m2 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:172553 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67693 Archived-At: On 31 Ago, 20:33, Joost Kremers wrote: > what makes you think that a non-interactive function cannot be defadvice'd? According to the docs, every function can be advised, but I've never seen an example showing how to advise a function which took arguments not available by a call to 'interactive'. For instance, how would you define a 'before advice' to 'define-key', whose prototype is this: (define-key keymap key def) Thanks.