bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#67158: [PATCH] Repair tab-always-indent


From: Aymeric Agon-Rambosson
Subject: bug#67158: [PATCH] Repair tab-always-indent
Date: Wed, 15 Nov 2023 01:24:04 +0100
User-agent: mu4e 1.10.7; emacs 29.1


Le mardi 14 novembre 2023 à 14:39, Eli Zaretskii <eliz@gnu.org> a écrit :

Could you please post a recipe which reproduces the problems you
describe?

With emacs -Q.

On the scratch buffer (lisp-interaction-mode), eval the following lines :

(setq tab-always-indent 'complete)
(setq tab-first-completion 'word)

Then type "tty" (without the quotes) on an empty line, place point on the "y", and evaluate '(syntax-after (point))'.

You get "(2)" in the minibuffer, which is proof you are in the middle of a word according to the syntax table.

Then, with the point still on the "y", press TAB (or evaluate '(indent-for-tab-command)').

"tty" gets autocompleted to "tty-" and the point is placed after the "-".

This is in contradiction with what the docstring says about the variable tab-first-completion.

This is also reproducible if you set tab-first-completion to either 'word-or-paren or 'word-or-paren-or-punct.

A detailed explanation of what causes this can be found in my previous mail. Feel free to ask any questions.

The problem is not reproducible anymore with the patch applied.

Best,

Aymeric






reply via email to

[Prev in Thread] Current Thread [Next in Thread]