names icon indicating copy to clipboard operation
names copied to clipboard

Compiler warning line numbers are lost

Open kbauer opened this issue 9 years ago • 1 comments

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.

kbauer avatar Sep 15 '15 09:09 kbauer

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.

Malabarba avatar Sep 15 '15 18:09 Malabarba