4 ms·
I've seen this before and it's definitely a nice stop-gap solution to a well known and common problem. However the existence of something like this IMO really
by josteink 12y ago
I've seen this before and it's definitely a nice stop-gap solution to a well known and common problem.
However the existence of something like this IMO really shows that a feature like this should be Emacs (25?) itself, at the core, preferably without creating indentation issues by leaving your entire module a nesten s-exp.
In an ideal world something like (ns 'my-package) statement at the start of your module should be enough.
In a less ideal world, that simple solution will cause compatibility problems when you want packages to work for both Emacs pre-ns and Emacs post-ns.
How to get that done properly is a genuinely hard question. Any suggestions? Any takers?
- rson 12y agoFor what it's worth, this macro doesn't cause the indentation issue due to how it's defined[1]. It does, however, leave the extra sexp around your package. From my experimentation the package worked quite well for the most part but I ended up not using it in the end. 1: https://github.com/Bruce-Connor/names/blob/master/names.el#L373 https://github.com/Bruce-Connor/names/blob/master/names.el#L...