At the top of my elisp module, I want to do something as simple as:
(message (concat "Loading " (expand-file-name (current-elisp-module) ".")))
At the top of my elisp module, I want to do something as simple as:
(message (concat "Loading " (expand-file-name (current-elisp-module) ".")))
You can use the variable
load-file-name
, which is set by the functionload
, documented as follows:As elaborated in the manual:
Note:
buffer-file-name
as a routine does not work as you might expect it to.