[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get advised function name form inside of the advice
From: |
Marcin Borkowski |
Subject: |
Re: How to get advised function name form inside of the advice |
Date: |
Fri, 04 Mar 2016 15:16:52 +0100 |
User-agent: |
mu4e 0.9.13; emacs 25.1.50.6 |
On 2016-03-04, at 14:36, Vitalie Spinu <address@hidden> wrote:
> Hi,
>
> How to retrieve the name of the original function from the inside of "new"
> advice? I need to condition-case a function and show a meaningful error
> message
> with function name instead of an error.
It seems that you can't do that (and for good reasons). See here:
https://lists.gnu.org/archive/html/help-gnu-emacs/2016-02/msg00218.html
Best,
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University