]> git.eshelyaron.com Git - emacs.git/commit
Integrate shorthand functionality into elisp-mode.el
authorJoão Távora <joaotavora@gmail.com>
Sun, 20 Sep 2020 20:21:32 +0000 (21:21 +0100)
committerJoão Távora <joaotavora@gmail.com>
Mon, 21 Sep 2020 15:59:51 +0000 (16:59 +0100)
commit8aa2276a5ae97156a8ecfb0e32e86f1224cf1a23
tree831a117778a5eb3d6de4c3d11f62f2d0fd6a92de
parentdd7d0e4dcac46af6c692c10cbd7c66cbc1389828
Integrate shorthand functionality into elisp-mode.el

Also rename the main variable to elisp-shorthands, from the
silly pleonastic shorthand-shorthands.

For some reason, I had to stick the new source-file loading functions
in lisp/international/mule.el, otherwise lisp/loadup.el wouldn't see
them.  This should probably be fixed.

* lisp/shorthand.el: Remove.

* lisp/progmodes/elisp-mode.el (elisp--shorthand-load-wrapper):
Move here.

* src/lread.c (oblookup_considering_shorthand, syms_of_lread):
Rename variable elisp-shorthand, from shorthand-shorthands.

* test/lisp/shorthand-tests.el: Remove.

* test/lisp/progmodes/elisp-mode-tests.el (elisp-shorthand-read-buffer)
(elisp-shorthand-read-from-string)
(elisp-shorthand-load-a-file): New tests.

* test/lisp/progmodes/elisp-resources/simple-shorthand-test.el: New file

* lisp/loadup.el (load-source-file-function): Set to
  load-with-shorthands-and-code-conversion.

* lisp/international/mule.el (hack-elisp-shorthands): Move here.
(load-with-shorthands-and-code-conversion): And here.
lisp/international/mule.el
lisp/loadup.el
lisp/progmodes/elisp-mode.el
lisp/shorthand.el [deleted file]
src/lread.c
test/lisp/progmodes/elisp-mode-tests.el
test/lisp/progmodes/elisp-resources/simple-shorthand-test.el [new file with mode: 0644]
test/lisp/shorthand-tests.el [deleted file]