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 function 'load
. The documentation string is:
load-file-name is a variable defined in `lread.c'. Its value is nil
Documentation: Full name of file being loaded by `load'.
Note: buffer-file-name
as a routine does not work as you might expect it to.