From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid Newsgroups: gmane.emacs.bugs Subject: bug#48609: Eglot and tab-always-indent conflict in python-mode Date: Tue, 25 May 2021 12:17:06 +0530 Message-ID: References: <87v979b2tp.fsf@gmail.com> <87k0npb15j.fsf@gmail.com> <87fsydb05v.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21547"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) Cc: Doug Davis , 48609@debbugs.gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 25 08:48:34 2021 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 1llQri-0005Tc-0H for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 May 2021 08:48:34 +0200 Original-Received: from localhost ([::1]:48524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llQrh-0000sw-3K for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 May 2021 02:48:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llQrD-0000sk-LK for bug-gnu-emacs@gnu.org; Tue, 25 May 2021 02:48:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:32981) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llQrC-0003Wy-Cy for bug-gnu-emacs@gnu.org; Tue, 25 May 2021 02:48:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1llQrC-0000BT-AG for bug-gnu-emacs@gnu.org; Tue, 25 May 2021 02:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pankaj Jangid Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 May 2021 06:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48609 X-GNU-PR-Package: emacs Original-Received: via spool by 48609-submit@debbugs.gnu.org id=B48609.1621925237653 (code B ref 48609); Tue, 25 May 2021 06:48:02 +0000 Original-Received: (at 48609) by debbugs.gnu.org; 25 May 2021 06:47:17 +0000 Original-Received: from localhost ([127.0.0.1]:44527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llQqT-0000AS-EK for submit@debbugs.gnu.org; Tue, 25 May 2021 02:47:17 -0400 Original-Received: from mail-pj1-f43.google.com ([209.85.216.43]:46824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llQqS-0000AG-5b for 48609@debbugs.gnu.org; Tue, 25 May 2021 02:47:16 -0400 Original-Received: by mail-pj1-f43.google.com with SMTP id pi6-20020a17090b1e46b029015cec51d7cdso12569132pjb.5 for <48609@debbugs.gnu.org>; Mon, 24 May 2021 23:47:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=/FlZvIAa8i71rYPrNoTPyMOIeKXTEIrEtvd3cn0mPIY=; b=IavhVZV6bV9Y2L1djw1TcYNzgJTpszuzxee62Fsp1/FbfK7QOtJnoPXd4ytVf1ttnm NiebUWwFHjHreoQDSRbI9zDgTs86c14x/B/CnSccbbdoRaquVY//fyB4joYizH3F0ZiU dAxYR81kpuPAmuH4AGW/XRhHUjv9sUziQWofPzez0cSyk9UjT05buuS5fDXh74R3VBDp SfDAq5PTatx59ye23UPecuV760lZMY2KmeKb5pqu2ZL9KC7vss9YA/ZyY66PWE+AgQNx 3KDe4jyMey72FPyhM58KQNeA/gSc/kv32Ynw8jYMKTBXglGqtJEcWj27hY2ufx63UU8Q yuRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=/FlZvIAa8i71rYPrNoTPyMOIeKXTEIrEtvd3cn0mPIY=; b=B8nHfbqlpP1OnAMpGLQSogoAacvIEk0cPyJRpAvNsFxVu3ww3DzjaqQUcmQRg5n1// 6VTxjwJeQ8WPd+IB+7RM9D5Rub4GAfTzZaMi16RhY0gP8LVT3WQ6l0QYD013TaidUjt5 /wRazNpwan4gOKroD2HazeMpaa4Xs6JKZGxq9wo6vWzyu/h+B0xZEusGzIeCB9eO+lVD A+SRDIStx/hQ6Saynr9wBWgP9JzqGVziMpmk39DXozw2NYCNAKql/Wie6izhoRShs/N2 /M69xalFXtcD7tySar9Sip/xMp4m6sM9QZj3bccEuNl23FcUaT3NJswqGWGtWlj/MbgA 2sRw== X-Gm-Message-State: AOAM533Az11Uabmuodme2v7qdaoVfLYviESFSTmOoWmRO+qxyhw6E25p UH89Bbi8lmBFSqpL8ICa4h9duzfNB2dPXw== X-Google-Smtp-Source: ABdhPJzLpo/u8cY9K/PGW3EgcrhS/UWlZh/5PiwXKTPUUGVUWWdYW/eBBbJw+dpE6Ojjrbq1BGYFXA== X-Received: by 2002:a17:90a:4298:: with SMTP id p24mr3240984pjg.144.1621925230110; Mon, 24 May 2021 23:47:10 -0700 (PDT) Original-Received: from mb2.local ([2405:201:5c06:70a7:cd84:943d:bc0:144c]) by smtp.gmail.com with ESMTPSA id v3sm5055598pfb.203.2021.05.24.23.47.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 May 2021 23:47:09 -0700 (PDT) In-Reply-To: <87fsydb05v.fsf@gmail.com> ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Sun, 23 May 2021 22:38:52 +0100") 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" Xref: news.gmane.io gmane.emacs.bugs:207169 Archived-At: Jo=C3=A3o T=C3=A1vora writes: > When Eglot is active, the completion system can find a large number of > completions available for that empty line. Since you have selected > tab-always-indent to be 'complete, Eglot will request and present those > completions in the *Completions* buffer. > > The only way to cancel that operation is by C-g or clicking somewhere > else. This in turn makes it so that the "last" command issued isn't > indent-for-tab-command anymore, and so there aren't two > indent-for-tab-command commands in a row. And that is the criteria > consulted by python.el's indentation function to decide to cycle the > indentation. > > So I'm not sure what needs to be fixed here, if anything, or how you > would like this to behave. I think that the best place should be python.el then. A variable =E2=80=98python-completion-on-empty-line=E2=80=99 or some better name. I do= n=E2=80=99t know if such a variable already exist or not. Need to check. Since the point-position is cycled by python.el, that is the place where it should be configured.