lawrence mitchell wence@gmx.li writes:
How about `load-file-name', or does that not work when byte-compiling?
I haven't tried it. All my Emacsen here bind byte-compile-current-file. I assume load-file-name is only bound during load-time and not (necessarily) during compile-time. But we could use it as a fallback if byte-compile-current-file is not bound.
Helmut.