From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aymeric Agon-Rambosson Newsgroups: gmane.emacs.bugs Subject: bug#67158: [PATCH] Repair tab-always-indent Date: Wed, 15 Nov 2023 01:24:04 +0100 Message-ID: <87cywbrhi3.fsf@X570GP> References: <87msvhqkx6.fsf@X570GP> <837cmktsou.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28957"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.7; emacs 29.1 Cc: 67158@debbugs.gnu.org, Stefan Monnier To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 15 02:58:15 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r35AV-0007Ip-IE for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Nov 2023 02:58:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r359n-0008Qi-9E; Tue, 14 Nov 2023 20:57:31 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r359j-0008Pn-T5 for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2023 20:57:28 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r359j-0002in-KT for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2023 20:57:27 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r35AQ-0007Tt-1g for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2023 20:58:10 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Aymeric Agon-Rambosson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Nov 2023 01:58:10 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67158 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 67158-submit@debbugs.gnu.org id=B67158.170001344828546 (code B ref 67158); Wed, 15 Nov 2023 01:58:10 +0000 Original-Received: (at 67158) by debbugs.gnu.org; 15 Nov 2023 01:57:28 +0000 Original-Received: from localhost ([127.0.0.1]:34415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r359i-0007QF-Hj for submit@debbugs.gnu.org; Tue, 14 Nov 2023 20:57:28 -0500 Original-Received: from forward502b.mail.yandex.net ([178.154.239.146]:54178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r33iB-0004pg-Av for 67158@debbugs.gnu.org; Tue, 14 Nov 2023 19:24:57 -0500 Original-Received: from mail-nwsmtp-smtp-production-main-57.myt.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-57.myt.yp-c.yandex.net [IPv6:2a02:6b8:c12:2527:0:640:434f:0]) by forward502b.mail.yandex.net (Yandex) with ESMTP id BADFC5EECF; Wed, 15 Nov 2023 03:24:10 +0300 (MSK) Original-Received: by mail-nwsmtp-smtp-production-main-57.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id 8OX7iqEBeGk0-wzjlOTCV; Wed, 15 Nov 2023 03:24:10 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1700007850; bh=hCy/srUXtpDTWaaa2jDTVIM22vfHu+MZwAB1+XClBCo=; h=Cc:Message-ID:References:Date:Subject:In-reply-to:To:From; b=VF6+MBSqo/G+XPP8Yrc7zPYUOIxA1eq1/87blDNrMwELWmJtT940t66I60nzoM450 Z4txDTXxJNnG5GSZez/m/JSuwx/5XWCrsccxFGXX4PD4f5vw9R+Yt645b4FadPafEI jQdyb5nu808n7YBqQMg6dU5a+8f0yxIm/J3Sj5Hw= Authentication-Results: mail-nwsmtp-smtp-production-main-57.myt.yp-c.yandex.net; dkim=pass header.i=@yandex.com In-reply-to: <837cmktsou.fsf@gnu.org> X-Mailman-Approved-At: Tue, 14 Nov 2023 20:57:16 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:274339 Archived-At: Le mardi 14 novembre 2023 =C3=A0 14:39, Eli Zaretskii a=20 =C3=A9crit : > 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=20 lines : (setq tab-always-indent 'complete) (setq tab-first-completion 'word) Then type "tty" (without the quotes) on an empty line, place point=20 on the "y", and evaluate '(syntax-after (point))'. You get "(2)" in the minibuffer, which is proof you are in the=20 middle of a word according to the syntax table. Then, with the point still on the "y", press TAB (or evaluate=20 '(indent-for-tab-command)'). "tty" gets autocompleted to "tty-" and the point is placed after=20 the "-". This is in contradiction with what the docstring says about the=20 variable tab-first-completion. This is also reproducible if you set tab-first-completion to=20 either 'word-or-paren or 'word-or-paren-or-punct. A detailed explanation of what causes this can be found in my=20 previous mail. Feel free to ask any questions. The problem is not reproducible anymore with the patch applied. Best, Aymeric