elisp function that returns the current file being interpreted
Isn't there a function that returns the current file being interpreted? That is, if I call it in foo.el, it will return "foo.el"? The use case is in startup files. No, I don't want u开发者_开发问答ser-init-file, but it is analogous to that.
Surely this has been asked before, but I cannot find the answer anywhere, huh...
Ah! It's called load-file-name.
I had already been using it in one of my init files...
精彩评论