names
names copied to clipboard
Compiler warning line numbers are lost
When using names.el
, compiler errors always report the (define-namespace
line making it hard to track down the exact position. As a minimal example:
1: (require 'names)
2: (require 'cl-macs)
3: (define-namespace here ; <-- error reported here
4: (defun -x () "Item: x")
5: (defun -y () (cl-loop invalid-keyword))
6: )
Compiling this gives the error message
In toplevel form:
names-issue.el:3:1:Error: Expected a cl-loop keyword, found invalid-keyword
Done with errors.
Yes, that's an annoying limitation. I've thought about it before, but I don't think there's any reasonable way to avoid it.
Suggestions welcome.