[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Advising a non-interactive function?
From: |
Elena |
Subject: |
Re: Advising a non-interactive function? |
Date: |
Mon, 31 Aug 2009 13:53:11 -0700 (PDT) |
User-agent: |
G2/1.0 |
On 31 Ago, 20:33, Joost Kremers <joostkrem...@yahoo.com> 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.