[Top][All Lists]

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

how to determine the current function?

From: Kevin Rodgers
Subject: how to determine the current function?
Date: Thu, 13 Feb 2003 16:14:10 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

I could probably find out how to do this by looking into the implementation of
the Emacs Lisp debuggers (debug.el and edebug.el), but I thought I'd be lazy and
ask the experts here first.

I want to know whether I can distinguish between calls to 2 functions defined
like this:

(defun foo () ...)
(fset 'bar 'foo)

within a piece of advice:

(defadvice foo (after ...)
  ;; How can I determine whether called as foo or as bar?

<a href="mailto:&lt;kevin.rodgers&#64;;";>Kevin Rodgers</a>

reply via email to

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