unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* find the file name of the running function programatically
@ 2008-08-28  5:26 Xah
  2008-08-28  7:54 ` Chat
  2008-08-28 11:47 ` John Paul Wallington
  0 siblings, 2 replies; 3+ messages in thread
From: Xah @ 2008-08-28  5:26 UTC (permalink / raw)
  To: help-gnu-emacs

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/^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-08-28 11:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-28  5:26 find the file name of the running function programatically Xah
2008-08-28  7:54 ` Chat
2008-08-28 11:47 ` John Paul Wallington

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).