]> git.eshelyaron.com Git - emacs.git/commit
Repair `tab-first-completion` (bug#67158)
authorAymeric Agon-Rambosson <aymeric.agon@yandex.com>
Sat, 25 Nov 2023 15:07:49 +0000 (10:07 -0500)
committerEli Zaretskii <eliz@gnu.org>
Wed, 29 Nov 2023 14:19:58 +0000 (16:19 +0200)
commitab9c62c2b33a2555df968d682abb8d093c476409
tree258dd6f901615d02d44e7ec95ea13a13c6bbe0b2
parentcd477bf07d8d996b90e02b5222248264cd6d5c39
Repair `tab-first-completion` (bug#67158)

Copyright-paperwork-exempt: yes

* lisp/indent.el (indent-for-tab-command): Use `syntax-class` to fix
longstanding thinko introduced back in 2020 in commit 64c851166442.
Rework the check for `syn` because TAB always completed when
`tab-first-completion` had value `word-or-paren` or `word-or-paren-or-punct`.

(cherry picked from commit c20226a1ef5fbdfd3e71e2ef8654ee19994c0f2f)
lisp/indent.el