Simple-minded namespacing in Emacs:
- Do this on an Emacs you don't care about, since this advises basic functions;
- Load
shorthand.el
(or byte-compile and load it); - Load
magnar-string.el
or byte-compile it and loadmagnar-string.elc
; - Try C-h f and check there's no "s-" pollution; Not even the
s-
symbols are interned; - Check that all the functions are namespaced under "magnar-string-";
- Open test.el, and play around there. Open test2.el and play around with magnar-string.el under a different "mstring-" prefix;
- Evaluating code should work. Eldoc should also work. Xref (
M-.
) is broken. Anything else might breaks spectacularly;
Read shorthand.el
: it's less than 50 loc. The idea is to keep only
one obarray, but instruments read
to not pollute it with symbols
that with the shorthands for other longer named symbols.