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

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

find the file name of the running function programatically


From: Xah
Subject: find the file name of the running function programatically
Date: Wed, 27 Aug 2008 22:26:19 -0700 (PDT)
User-agent: G2/1.0

how to find out the file name of the running function
programmatically?

for example, i have:

(defun command-frequency-write-file (file-name)
  (with-temp-file file-name
    (insert (command-frequency)))
  (with-temp-message (format "Wrote %s" file-name)))

i want to change this function so that it doesn't require any arg.
The file name will just be in the same dir but with a “.txt” suffix.

Thanks.

  Xah
∑ http://xahlee.org/

☄


reply via email to

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