From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "John Wiegley" Newsgroups: gmane.emacs.devel Subject: Re: [pcomplete.el (pcomplete-completions-at-point)] Why max? Date: Wed, 20 Mar 2019 16:38:54 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="146316"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (darwin) Cc: Tadeus Prastowo , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 21 01:08:44 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6lGF-000bwO-Ld for ged-emacs-devel@m.gmane.org; Thu, 21 Mar 2019 01:08:43 +0100 Original-Received: from localhost ([127.0.0.1]:57025 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6lGE-0000Np-Jf for ged-emacs-devel@m.gmane.org; Wed, 20 Mar 2019 20:08:42 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6lFC-0000Ng-Uj for emacs-devel@gnu.org; Wed, 20 Mar 2019 20:07:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37444) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6lFC-0006XI-GX; Wed, 20 Mar 2019 20:07:38 -0400 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:47073) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1h6lFB-0000VT-TO; Wed, 20 Mar 2019 20:07:38 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 37AF124380; Wed, 20 Mar 2019 20:07:37 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 20 Mar 2019 20:07:37 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrieejgddukecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffujgffkfhffgggtgesthdtredttdertdenucfhrhhomhepfdflohhhnhcu hghivghglhgvhidfuceojhhohhhnfiesghhnuhdrohhrgheqnecuffhomhgrihhnpehnvg ifrghrthhishgrnhhsrdgtohhmnecukfhppeejiedrvdefgedrieelrddugeelnecurfgr rhgrmhepmhgrihhlfhhrohhmpehjohhhnhifodhmvghsmhhtphgruhhthhhpvghrshhonh grlhhithihqdeikeejkedtleeggedqudejjeehfeekudeiqdhjohhhnhifpeepghhnuhdr ohhrghesnhgvfigrrhhtihhsrghnshdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Original-Received: from localhost (76-234-69-149.lightspeed.frokca.sbcglobal.net [76.234.69.149]) by mail.messagingengine.com (Postfix) with ESMTPA id C55B2E475B; Wed, 20 Mar 2019 20:07:35 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Wed, 20 Mar 2019 13:11:19 -0400") Mail-Followup-To: Stefan Monnier , Tadeus Prastowo , emacs-devel X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:234437 Archived-At: >>>>> "SM" == Stefan Monnier writes: SM> It's because when we SM> (string-prefix-p s2 string completion-ignore-case) SM> instead of SM> (string-prefix-p s2 res completion-ignore-case) SM> we still get the correct result if `string` also happens to begin with SM> `s2` (in your cases, `s2` is short, typically the same number of chars as SM> the number of backslashes in your argument). Thank you, Stefan! -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2