From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Tadeus Prastowo Newsgroups: gmane.emacs.devel Subject: Re: [pcomplete.el (pcomplete-completions-at-point)] Why max? Date: Wed, 20 Mar 2019 18:17:14 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="82677"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 20 18:35:58 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 1h6f89-000LEs-PU for ged-emacs-devel@m.gmane.org; Wed, 20 Mar 2019 18:35:57 +0100 Original-Received: from localhost ([127.0.0.1]:50954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6f82-0001TK-1n for ged-emacs-devel@m.gmane.org; Wed, 20 Mar 2019 13:35:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44166) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6f3r-0007Bn-D3 for emacs-devel@gnu.org; Wed, 20 Mar 2019 13:31:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h6eqb-0006Or-Jn for emacs-devel@gnu.org; Wed, 20 Mar 2019 13:17:57 -0400 Original-Received: from mail-it1-x131.google.com ([2607:f8b0:4864:20::131]:55501) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h6eqQ-0005zt-UM for emacs-devel@gnu.org; Wed, 20 Mar 2019 13:17:45 -0400 Original-Received: by mail-it1-x131.google.com with SMTP id z126so29913793itd.5 for ; Wed, 20 Mar 2019 10:17:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unitn.it; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SfyipENaucGUso8mM82EmFJDyN3gcREl7PdMuhc0gyg=; b=DKYiyV6jngj0QVvukYuo0Jjd7hpWEVcWKWrdU6g4kTeZAxGyNwygIqTX+8XLoFcnNN +ZETKC7g0OUGMo+3pX8R/gmtlcceFsGM3PYbfW+apHknum3RCqAspQHBDzxFHWkHQ4c3 BW3U9pOu9byjQYuaOjUrAyCEbAjaRI+o4ht7M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SfyipENaucGUso8mM82EmFJDyN3gcREl7PdMuhc0gyg=; b=tJauIChWqv6+sgVkgNpiUgNgUilCxk17frUYQdB+gY+4NlCFiLTsiz3/40O5GPqH4m 7fccsmrK0g8zNhyFpjEmyUExv2p1Xh9/8/OUd3H0PXBEF7TNmq3tnpRTddQKze0zWwwK wH01hp7pnK7WD4czOvHtvW8M6qOq6j8lxcQyHPwWYlufyPTpSx/qZLPQRzkt+OZ2/iVH cr21N8r2yU0qKgPS0OBZakqDHsNndyboE8vRhZcbGszkvc9RaTrEzDthaaZHY01VHuV/ OwcHzWP9kAKmI54zX53zdL4YtZfEMgYTcZQFCQhq33viLDzVV9IORIEu0wSjiW+ZC2Ez S5Hw== X-Gm-Message-State: APjAAAWeEtTM2bUIQkldJEf35oNq7q+E8+4eRMrh6FypD2ZEQekcD5QO Cn36xJERWOuB7wbbuIpU4M4+d/ODp94qOsHmfnWL X-Google-Smtp-Source: APXvYqx8FQ/ekZtXPuG6ODQHImDV4sqCCA2lYV07frhikpbjruN/epp+RRcrDPpFBndZK5/obvHisq9Ut048b+ZBSvw= X-Received: by 2002:a02:960a:: with SMTP id c10mr6159919jai.31.1553102246523; Wed, 20 Mar 2019 10:17:26 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::131 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:234414 Archived-At: On Wed, Mar 20, 2019 at 6:11 PM Stefan Monnier wrote: > > > I confirm that commit 18fc4ac5294d85e37d9e544c04b5d4e89ef3237c solves > > the problem. > > Why the problem seems to be dependent on the number of characters and > > their cases? > > It's because when we > > (string-prefix-p s2 string completion-ignore-case) > > instead of > > (string-prefix-p s2 res completion-ignore-case) > > we still get the correct result if `string` also happens to begin with > `s2` (in your cases, `s2` is short, typically the same number of chars > as the number of backslashes in your argument). I see. Thank you very much. Lastly, do you mind closing the following bug report by saying that it is fixed at commit 18fc4ac5294d85e37d9e544c04b5d4e89ef3237c, please? https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34888 Thanks in advance. > Stefan -- Best regards, Tadeus