From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#32215: 27.0.50; Minibuffer completion fails with /~ Date: Fri, 20 Jul 2018 16:28:15 +0200 Message-ID: <87h8kuj81s.fsf@rub.de> References: <87tvovhzzt.fsf@gmx.net> <834lgv2imf.fsf@gnu.org> <87pnzjhtom.fsf@gmx.net> <87bmb27m98.fsf@gmail.com> <87va9ajol1.fsf@gmx.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1532096832 23275 195.159.176.226 (20 Jul 2018 14:27:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 20 Jul 2018 14:27:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 32215@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 20 16:27:07 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgWN6-0005sR-A1 for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Jul 2018 16:27:04 +0200 Original-Received: from localhost ([::1]:48412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgWPB-00027c-Gm for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Jul 2018 10:29:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgWP4-00027L-Oa for bug-gnu-emacs@gnu.org; Fri, 20 Jul 2018 10:29:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fgWP0-0002Fg-P0 for bug-gnu-emacs@gnu.org; Fri, 20 Jul 2018 10:29:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44823) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fgWP0-0002Fa-JA for bug-gnu-emacs@gnu.org; Fri, 20 Jul 2018 10:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fgWP0-0003g4-DO for bug-gnu-emacs@gnu.org; Fri, 20 Jul 2018 10:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Jul 2018 14:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32215 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32215-submit@debbugs.gnu.org id=B32215.153209690914091 (code B ref 32215); Fri, 20 Jul 2018 14:29:02 +0000 Original-Received: (at 32215) by debbugs.gnu.org; 20 Jul 2018 14:28:29 +0000 Original-Received: from localhost ([127.0.0.1]:49841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgWOS-0003fD-VD for submit@debbugs.gnu.org; Fri, 20 Jul 2018 10:28:29 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:45263) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgWOQ-0003ex-95 for 32215@debbugs.gnu.org; Fri, 20 Jul 2018 10:28:26 -0400 Original-Received: from rosalinde ([178.6.211.58]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MUUWN-1fXtZZ2ObT-00RHiP; Fri, 20 Jul 2018 16:28:18 +0200 In-Reply-To: (Noam Postavsky's message of "Fri, 20 Jul 2018 09:58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9Aq3bEGokeOaWms5ftgi3Rw X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:148732 Archived-At: On Fri, 20 Jul 2018 09:58:10 -0400 Noam Postavsky wrot= e: > On 20 July 2018 at 04:31, Stephen Berman wrote: >> On Thu, 19 Jul 2018 21:02:11 -0400 Noam Postavsky w= rote: >> >>> Stephen Berman writes: >>> >>>> On Thu, 19 Jul 2018 21:19:36 +0300 Eli Zaretskii wrote: >>>> >>>>>> From: Stephen Berman >>>>>> Date: Thu, 19 Jul 2018 19:55:18 +0200 >>>>>> >>>>>> 0. emacs -Q >>>>>> 1. C-x d / ~ TAB >>>>>> This pops up a *Completions* buffer showing directory names of all >>>>>> members of (system-users), e.g. steve/ >>>>>> 2. Continuing from step 1, when I type any of 's TAB', 'st TAB', 'ste >>>>>> TAB' or 'stev TAB', Emacs responds with [No match], but 'steve TA= B' >>>>>> completes to steve/ >>>>>> >>>>>> The failure only happens with '/~', typing e.g. '~/Dow= nl >>>>>> TAB' here completes to ~/Downloads/ >>>>> >>>>> Doesn't happen here, FWIW. Strange. >>>> >>>> Strange indeed, assuming you tested on GNU/Linux or another POSIX >>>> system, since IIUC on MS-Windows system-users returns only >>>> user-real-login-name (at least it does here on Emacs 25.3 under Windows >>>> 8). I also tested on another GNU/Linux system I have with Emacs 24.3 >>>> and see exactly the same behavior I described above. >>> >>> I see it on both Windows and GNU/Linux. >> >> Like Eli, I'm surprised you see it on Windows. > > Oh, I skipped the TAB in step 1. With that, all of the leading text > before the ~ is removed, so there is no problem (and it indeed > completes immediately to my current user on Windows). > >> >>> I notice that the after typing >>> the first letter of the user name, the leading "/" is no longer in >>> shadow face, >> >> Yes, I didn't notice that when I tested before but I do now. > > Ah, so when you hit TAB, the leading "/" is not removed? Nothing is removed. To be explicit, when I start with -Q and type 'C-x d', the minibuffer displays this: Dired (directory): ~/ with point after '/'. When I now type '/', the face of '~/' changes to shadow, and when I then type '~', the face of the second '/' also changes to shadow. When I now type TAB, the minibuffer looks like this: Dired (directory): ~//~ with '~//' in shadow face, and a *Completions* buffer pops up and shows the directory names of all members of (system-users). When I now type 's TAB', the face of the second '/' changes from shadow to default (black), '[No match]' appears after the cursor and the *Completions* buffer disappears. I.e., the minibuffer looks like this on hitting TAB: Dired (directory): ~//~s=E2=96=88[No match] with '~/' in shadow face and '/~s' in default face, and after a couple of seconds, '[No match]' disappears, leaving the rest. Steve Berman