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 17:14:57 +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="263892"; 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 17:15:50 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 1h6dsa-0016Up-Nu for ged-emacs-devel@m.gmane.org; Wed, 20 Mar 2019 17:15:48 +0100 Original-Received: from localhost ([127.0.0.1]:50089 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6dsZ-0005Ws-Ll for ged-emacs-devel@m.gmane.org; Wed, 20 Mar 2019 12:15:47 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6drz-0005Vc-Kw for emacs-devel@gnu.org; Wed, 20 Mar 2019 12:15:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h6dry-00011n-Tf for emacs-devel@gnu.org; Wed, 20 Mar 2019 12:15:11 -0400 Original-Received: from mail-it1-x133.google.com ([2607:f8b0:4864:20::133]:35551) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h6dry-0000yw-90 for emacs-devel@gnu.org; Wed, 20 Mar 2019 12:15:10 -0400 Original-Received: by mail-it1-x133.google.com with SMTP id w15so9264008itc.0 for ; Wed, 20 Mar 2019 09:15:09 -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=M0iY8XVcwWd6wTIDdCvUjEGZ3fi7+Xyq/ggu3jDiMAk=; b=Xsoyh4rp6G9OcBCHiGLJr7KYuuPPEpRVYeKJBZrQF1erRdO021aC+PSiBdLk4Y3VZs 1JiLw+j3mG8weCK+K+nJtmDe4iH96ToQXSl8gi/kOeT/UgfxAd0iqfwOJ+OuwUS/MEQa LVur9yo77M8JKnShSJvKUy99KnryhNnELfQuY= 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=M0iY8XVcwWd6wTIDdCvUjEGZ3fi7+Xyq/ggu3jDiMAk=; b=Tw89hwKP0BRFS617bbYkoj7Z3jAbsL7ddBYdbBzEeEh6rEtjpbtAKFOdNfBFWrCM6g u0cQ0VnegtPYv04Kvkg/UQ5Ncc8MXJL9fpnp+xKBJFf7jUWu9Nh9KZGoJD+zMZqU/GIu 2LnMsG7AMPFGqw8lyEsXr8mhMc7XlnAvVn0Cp1sBJ1hUroHFr+ROVFm86Is1uTwD2WzL 7xq7q3BkTyIOSLHBKpGyA+r1icdqD3A7JDwbInsTFTqkguSyeEuLubhSOxE+Ftq5xEgp 4BLM+WdecheY34L1rognqGl4ynddxUOsKyGJgZ/71y/1APeaOO8HdPHHgpywujoGWzZ2 5AcA== X-Gm-Message-State: APjAAAVFvBGCsnZ/Us/pbyk9TzDPQ+YREG9dAO2EPiBNOmCUXr5Og0Fn 6Y02Y9h5jioCnKvDaK6pFxOoBPBmkFtYiazi1n78EgtVBA== X-Google-Smtp-Source: APXvYqzuKoBL9HZY+dY+o9O0QaCoPIRcIb2DRpMCA4sY5HrOflYmWxP21N8v1IRTVMTV3z7kkWGK4DIz9vulEJySE2o= X-Received: by 2002:a05:660c:6c5:: with SMTP id z5mr5425339itk.160.1553098508910; Wed, 20 Mar 2019 09:15:08 -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::133 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:234410 Archived-At: On Wed, Mar 20, 2019 at 3:00 PM Stefan Monnier wrote: > > > $ emacs -Q > > M-x shell > > cd /tmp > > mkdir ABCD\ EF\ GHIJKL > > cd ABCD\ EF > > > > The echo area shows "No match". > > I see it now! > I just pushed the fix below which seems to do the trick! I confirm that commit 18fc4ac5294d85e37d9e544c04b5d4e89ef3237c solves the problem. Why the problem seems to be dependent on the number of characters and their cases? Thank you very much. > Stefan -- Best regards, Tadeus > * lisp/minibuffer.el (completion-table-subvert): Fix typo from rev 5697ca55cb > > diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el > index df0acbb343..dbd24dfa0a 100644 > --- a/lisp/minibuffer.el > +++ b/lisp/minibuffer.el > @@ -269,7 +269,7 @@ completion-table-subvert > (+ beg (- (length s1) (length s2)))) > . ,(and (eq (car-safe res) 'boundaries) (cddr res))))) > ((stringp res) > - (if (string-prefix-p s2 string completion-ignore-case) > + (if (string-prefix-p s2 res completion-ignore-case) > (concat s1 (substring res (length s2))))) > ((eq action t)