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

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

Caller of a function


From: Klaus Berndl
Subject: Caller of a function
Date: 14 Jul 2003 09:49:46 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Is there an easy way to find out the caller of the function?

example:

(defun called-fcn ()
  (message "My caller is %s" (function-to-get-the-caller)))

(defun caller-fcn ()
  (called-fcn))

Then evaluating caller-fcn should print out "caller-fcn"....
Is this possible with elisp, d.h. is there something like my
"function-to-get-the-caller"?

Thanks a lot,
Klaus

-- 
Klaus Berndl                    mailto: klaus.berndl@sdm.de
sd&m AG                         http://www.sdm.de
software design & management    
Thomas-Dehler-Str. 27, 81737 München, Germany
Tel +49 89 63812-392, Fax -220


reply via email to

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