]> 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>
Wed, 22 Sep 2021 10:33:55 +0000 (11:33 +0100)
commitfe4e4c28ecdf08d32dbd9546f7b80a949358c69b
treed4519bca4dc15152371601e8021ae8e114e8df46
parent82528bcb590440681ef299067997269fc72c2c0c
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]