all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.