]> 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>
Mon, 27 Sep 2021 00:07:11 +0000 (01:07 +0100)
commit68d73eb154c745cbba7b3fd6a0a0a087d7c157da
tree1b276611e4dabd49a33daa165e38d2cb464340c1
parent71857d410635743d437ce1ee73dff69de50030d6
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
elisp-shorthands.

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