From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#74019: [PATCH] Optionally preserve selected candidate across *Completions* update Date: Sun, 27 Oct 2024 09:55:04 +0200 Organization: LINKOV.NET Message-ID: <86r082athz.fsf@mail.linkov.net> References: <86a5erbbwl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31598"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: Spencer Baugh , Andrea Corallo , Stefan Monnier , 74019@debbugs.gnu.org, Stefan Kangas To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 27 08:59:38 2024 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 1t4yBW-00085d-1t for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Oct 2024 08:59:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t4yBP-0007bz-2i; Sun, 27 Oct 2024 03:59:31 -0400 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 1t4yBM-0007YA-QZ for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2024 03:59:29 -0400 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 1t4yBM-0004Z5-IW for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2024 03:59:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=g+UiD1CGlj1T0Q1h8aTCKHJcbgEc2WMlUkM97kIfLNY=; b=SAnetZYJu9fVOLRoXuKvAyuF95d5b45Au8VjK7TJE/NcO0bXL4A5yfA5ckYJgUuxPyYiVP0g2tffc37crPIJxpYEHfiuIFjtXkRy70zyAra6IY6LdVIZyrLdrZn/iONSIkDOGO6xD/TxMUn+IOMpoXjJ0oOQJMDvFObuDkF1M4D6O11L8Z5PF4NGedcU0x10Ly8kDiQNvPTFlHuFvq1vbywCztuYPQq8gZsZRY0s3kn55/bywZm3mF6/TZcU8OKLOqQeFszQ/ShZnQwkhXmYqBU2R4IfVd74d0OWNrMEyoZ8EPpEN+0vbK1FZwrr7NqjvWGJVAGjiI33ZtAD3PWIhg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t4yBu-0007XF-Mm for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2024 04:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Oct 2024 08:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74019 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74019-submit@debbugs.gnu.org id=B74019.173001595328871 (code B ref 74019); Sun, 27 Oct 2024 08:00:02 +0000 Original-Received: (at 74019) by debbugs.gnu.org; 27 Oct 2024 07:59:13 +0000 Original-Received: from localhost ([127.0.0.1]:43678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4yB7-0007Vb-5B for submit@debbugs.gnu.org; Sun, 27 Oct 2024 03:59:13 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:52597) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4yB5-0007VL-Du for 74019@debbugs.gnu.org; Sun, 27 Oct 2024 03:59:11 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id C49BA240003; Sun, 27 Oct 2024 07:58:28 +0000 (UTC) In-Reply-To: <86a5erbbwl.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 26 Oct 2024 09:45:14 +0300") X-GND-Sasl: juri@linkov.net 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:294307 Archived-At: >> Add completion-preserve-selection, a defcustom which allows keeping the >> same selected candidate after *Completions* is updated by >> minibuffer-completion-help. > > Shouldn't we stop complicating the completion machinery at some point? > It is already basically impenetrable, and if someone still can reason > about what it does in any specific case, my hat's off to them; I have > long ago reached the point where the _only_ way of understanding > what's going on is to step with a debugger through the code -- and it > doesn't help that some of the code is in Lisp and some in C, so Lisp > calls into C, which calls back into Lisp, etc., thus one needs to > interrupt the stepping, fire up a different debugger, then go back. The last sorely missing feature related to the completions window is auto-updating the list of completions as you type. There are several proposed implementations, and we have to merge them sooner or later. IIUC, this patch makes preparations to achieve this goal sooner.