Malabarba / names

A Namespace implementation for Emacs-Lisp
250 stars 19 forks source link

Compiler warning line numbers are lost #23

Open kbauer opened 9 years ago

kbauer commented 9 years ago

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.
Malabarba commented 9 years ago

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.