]> git.eshelyaron.com Git - emacs.git/commit
Rework elisp-shorthands to only allow only prefix substitution
authorJoão Távora <joaotavora@gmail.com>
Wed, 23 Dec 2020 19:57:27 +0000 (19:57 +0000)
committerJoão Távora <joaotavora@gmail.com>
Wed, 22 Sep 2021 10:33:56 +0000 (11:33 +0100)
commit62523a0009fc208e8f258d2e7d794249de05b9f7
tree3b79e4524a6cab019c4e350e22330c2922f26693
parent2f95a95041d070b60cb54d91480c83e96ea73325
Rework elisp-shorthands to only allow only prefix substitution

This simplification in requirements makes for more complex C code but
that code is much less wasteful in Lisp strings than the previous
implementation.

* src/lread.c (read1): Rework.
(Fintern): Rework.
(Fintern_soft): Rework.
(Funintern): Rework.
(oblookup_considering_shorthand): Rewrite.

* test/lisp/progmodes/elisp-mode-tests.el (elisp-shorthand-read-buffer)
(elisp-shorthand-read-from-string): Use new format of
shorthand-longhand-.

* test/lisp/progmodes/elisp-resources/simple-shorthand-test.el (f-test)
(f-test2, f-test3): Use new form of elisp-shorthands.
src/lread.c
test/lisp/progmodes/elisp-mode-tests.el
test/lisp/progmodes/elisp-resources/simple-shorthand-test.el