]> git.eshelyaron.com Git - emacs.git/commit
Don't apply shorthands to punctuation-only symbols (bug#51089)
authorJoão Távora <joaotavora@gmail.com>
Mon, 11 Oct 2021 21:19:51 +0000 (22:19 +0100)
committerJoão Távora <joaotavora@gmail.com>
Mon, 11 Oct 2021 21:29:16 +0000 (22:29 +0100)
commitcf1409db71152926767da189bf044c3a63e77128
treedc5aa47220a48823b5e7139a630d7b790b7db89f
parentb3d0f53b296a0876ec7a55ae840868e65ed54e14
Don't apply shorthands to punctuation-only symbols (bug#51089)

This includes symbols used for arithmetic functions such as -, /=,
etc.  Using "-" or "/=" is still possible but doing so won't shadow
those functions.

* doc/lispref/symbols.texi (Shorthand, Exceptions): New
subsubsection.

* src/lread.c (read1): Exempt punctionation-only symbols from
oblookup_considering_shorthand.

* test/lisp/progmodes/elisp-mode-tests.el
(elisp-dont-shadow-punctuation-only-symbols): Tweak test.
doc/lispref/symbols.texi
src/lread.c
test/lisp/progmodes/elisp-mode-tests.el