[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: find the file name of the running function programatically
From: |
John Paul Wallington |
Subject: |
Re: find the file name of the running function programatically |
Date: |
Thu, 28 Aug 2008 12:47:50 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) |
Xah <xahlee@gmail.com> writes:
> how to find out the file name of the running function
> programmatically?
You can find out the filename of the file in which a function
was defined, if any, using `symbol-file'.
You might work out the running function by looking at what
`backtrace-frame' returns. If you are interested instead in the running
command rather than function then you probably want to use the variables
`last-command' or `this-command'.