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#70217: [PATCH] Add substring-partial-completion style Date: Tue, 28 May 2024 21:36:41 +0300 Message-ID: <86fru1u6km.fsf@gnu.org> References: <86a5kpgdo7.fsf@gnu.org> <86ttilvsy8.fsf@gnu.org> <86ikz0wozc.fsf@gnu.org> <86o78qt1hl.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15464"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70217@debbugs.gnu.org, monnier@iro.umontreal.ca To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 28 20:38:14 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 1sC1i9-0003nD-Re for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 May 2024 20:38:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sC1hq-0005HN-AB; Tue, 28 May 2024 14:37:54 -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 1sC1ho-0005Gq-MF for bug-gnu-emacs@gnu.org; Tue, 28 May 2024 14:37:52 -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 1sC1ho-0004ED-DF for bug-gnu-emacs@gnu.org; Tue, 28 May 2024 14:37:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sC1hx-0007qo-On for bug-gnu-emacs@gnu.org; Tue, 28 May 2024 14:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 May 2024 18:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70217 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 70217-submit@debbugs.gnu.org id=B70217.171692142630052 (code B ref 70217); Tue, 28 May 2024 18:38:01 +0000 Original-Received: (at 70217) by debbugs.gnu.org; 28 May 2024 18:37:06 +0000 Original-Received: from localhost ([127.0.0.1]:51414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sC1h3-0007oe-Q3 for submit@debbugs.gnu.org; Tue, 28 May 2024 14:37:06 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sC1h1-0007o1-DP for 70217@debbugs.gnu.org; Tue, 28 May 2024 14:37:04 -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 1sC1gl-00049G-RO; Tue, 28 May 2024 14:36:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=eGTLQ5UJ22QqCa6RC9EQCVTbEeydm4z3LTGLzTsxcoE=; b=TlGfXkRXS8ny P9XleMibDwWVDsrWyZyaxmuk6qwREy/iskRcrE2XSR6Pz4eFb1tH7FX5iiOrfy6cr23DbKBns2ZEj znUmaPY+g99TPhDwAtLmfWwORor2qFYg7Okue7kL5PaeoBy+mghF9f/rcj7yk4A7ru+lNjno77wZy 0m0kdkkAdN+Y9Iu53eSNLD5+dW+Yg+zaKtIuffS2SDYgtSYc8XVJ7ZrezfKMg3Q4uXC+ROnDemP7R Rc4B+CHWl+/vL5HuM7NVs/ITxo6FOvYtVTP0gRzGhUPQ0qGcgCZkldnbE/HMeLRbcDm4nqbCloG3r pDViT9uYywrGiKrZuNN/tQ==; In-Reply-To: (message from Spencer Baugh on Tue, 28 May 2024 14:16:30 -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:286112 Archived-At: > From: Spencer Baugh > Cc: 70217@debbugs.gnu.org, monnier@iro.umontreal.ca > Date: Tue, 28 May 2024 14:16:30 -0400 > > > and (b) please do not use examples with repeated characters, because > > they can lead readers to make the wrong conclusions due to accidental > > situations. For example, AFAIU valid candidates for "b*/c*" include > > "bcdxyz/c1234" and also "b/x/y/z/c/1/2/3", but readers might > > mistakenly think that "b*" stands for a string made only of "b", or > > that there can be only one slash and it must precede "c". Avoiding > > repeated characters prevents such misunderstandings. > > Excellent point, fixed. Thanks. > > But please (a) don't use "glob" and file wildcard notation, use > > regexps instead; > > True, I removed the word "glob", I agree that's confusing since > e.g. [a-z] or {foo,bar} are valid globs but not valid in > partial-completion. > > Note however that "*" is literally valid syntax with partial-completion, > where as the regexp notation (".*") is not. The partial-completion > documentation already mentions this in (info "(emacs) Completion > Styles"). So I slightly reworded it and continued using "*". Please don't. I really meant what I wrote: "glob" is confusing to users, because of the file-name wildcards connotation. The natural way of describing string patterns in Emacs is regular expressions, not globs.