From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64351: probabe bug associated with =?UTF-8?Q?=E2=80=9Ccompletion-regexp-list=E2=80=9D?= Date: Sun, 02 Jul 2023 09:18:54 +0300 Message-ID: <833526q1ip.fsf@gnu.org> References: <83v8f5sc6p.fsf@gnu.org> <83h6qosr82.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24359"; mail-complaints-to="usenet@ciao.gmane.io" Cc: one.last.kiss@outlook.com, 64351-done@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 02 08:19:18 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 1qFqQX-00067i-EK for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Jul 2023 08:19:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFqQL-0005L4-PO; Sun, 02 Jul 2023 02:19:05 -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 1qFqQJ-0005Je-Al for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2023 02:19:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qFqQJ-0005kq-23 for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2023 02:19:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qFqQI-0006Gw-Th for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2023 02:19:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Jul 2023 06:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 64351 X-GNU-PR-Package: emacs Mail-Followup-To: 64351@debbugs.gnu.org, eliz@gnu.org, one.last.kiss@outlook.com Original-Received: via spool by 64351-done@debbugs.gnu.org id=D64351.168827871024057 (code D ref 64351); Sun, 02 Jul 2023 06:19:02 +0000 Original-Received: (at 64351-done) by debbugs.gnu.org; 2 Jul 2023 06:18:30 +0000 Original-Received: from localhost ([127.0.0.1]:59048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFqPm-0006Fw-1T for submit@debbugs.gnu.org; Sun, 02 Jul 2023 02:18:30 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56614) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFqPj-0006Fi-7I for 64351-done@debbugs.gnu.org; Sun, 02 Jul 2023 02:18:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qFqPd-0005eB-22; Sun, 02 Jul 2023 02:18:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=YxjeK90XUsY0vRbFo0DgQDv7Q4vh8V6tqENjam49AFk=; b=WcSy205OKa35DhJqQwYV HJFANhi4Kloq4DCEZAIRqAjHn1hgkkyQZA2/mTs7P+vAG9g6d7dgFAKfIdmtQhRFCNSDhhZhAsjg8 K9wQyGqS/Mpd8rRBbiH+uvv2NX5cr+BBI+z1WA6+274Y1RfPdH0/Olb5qN4TM56pZJq2fr4LIF8/2 yIkdW4NA12Vr8zSfePzD0e+0FA4h/EzHGS96Pn/MvFIt1FMjfa9QV6f1TSFzu4fatN031Yx55UdaI AoRk9wZ8vPfrkUf7oU0j3L2TSCT6BOSO9iXSdT8xVYAkOGCE5b9jY44oAGpZEpvBf8fTAJrVdTgcm +2V9dhPZtmydPw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qFqPc-0004yO-I6; Sun, 02 Jul 2023 02:18:20 -0400 In-Reply-To: (message from Stefan Monnier on Sat, 01 Jul 2023 10:19:50 -0400) 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:264447 Archived-At: > From: Stefan Monnier > Cc: one.last.kiss@outlook.com, 64351@debbugs.gnu.org > Date: Sat, 01 Jul 2023 10:19:50 -0400 > > > Would you mind telling more about valid uses of this? > > I'd like to improve the documentation. > > Here's what I know: `completion-regexp-list` used to be virtually unused > in Emacs's code base, so I don't know what was its intended use. > > But when completion UIs started to offer other styles than just > prefix-based completion, they also started to use > `try/all/test-completion` more "internally" (i.e. for intermediate > computations rather than to compute the final list of completions > displayed to the user) and they did it without paying attention to > `completion-regexp-list`, i.e. in ways which tended to just misbehave > when `completion-regexp-list` wasn't nil. > > So, in practice nowadays, the only reliable way to use > `completion-regexp-list` is to think of it as an optional argument to > `try/all/test-completion`, but one that has to be provided via a nearby > let-binding rather than by listing it explicitly at the call site. Thanks, I added something along these lines to the documentation. > > You are saying that you don't like my proposed patch for the emacs-29 > > branch, and would even prefer to leave it unfixed? > > Your patch is harmless, IMO, so it's OK to install it. Installed on the emacs-29 branch, and closing the bug.