help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Is there way to read function invoked and its parameters?


From: Drew Adams
Subject: RE: Is there way to read function invoked and its parameters?
Date: Mon, 28 Dec 2020 08:40:30 -0800 (PST)

> > > Reading quickly, so perhaps not understanding the request.
> > > But I'm guessing that advice is what you're looking for.

Still not reading this thread carefully, but I
still have the impression that, for what you want
to do, you can use _advice_.

https://www.gnu.org/software/emacs/manual/html_node/elisp/Advising-Functions.html

When a function gets called you can do anything,
including introspect the current context,
reporting on it, and reinvoking the called arg
(with the same or different args).  Pretty much
anything.

The only limitation of this approach is that,
like `debug-on-entry', it only takes control
when the function is actually invoked.  Other
than that consideration, you can do pretty
much anything, with the full call context at
hand.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]