From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#31495: 26.1; filename completion -vs- "*" Date: Sun, 20 May 2018 11:19:37 +0900 Message-ID: <871se7hxvq.fsf@gmail.com> References: <877eo1gern.fsf@tromey.com> <87wovzzs8c.fsf@gmail.com> <87tvr3mrwh.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1526782691 21476 195.159.176.226 (20 May 2018 02:18:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 20 May 2018 02:18:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Tom Tromey , 31495@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 20 04:18:06 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 1fKDv7-0005Mv-SL for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 May 2018 04:18:02 +0200 Original-Received: from localhost ([::1]:44886 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKDxE-0008Gn-Su for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 May 2018 22:20:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKDx7-0008GV-UZ for bug-gnu-emacs@gnu.org; Sat, 19 May 2018 22:20:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fKDx4-0004iI-QG for bug-gnu-emacs@gnu.org; Sat, 19 May 2018 22:20:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33622) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fKDx4-0004iB-M3 for bug-gnu-emacs@gnu.org; Sat, 19 May 2018 22:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fKDx4-00021D-D2 for bug-gnu-emacs@gnu.org; Sat, 19 May 2018 22:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 May 2018 02:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31495 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31495-submit@debbugs.gnu.org id=B31495.15267827937740 (code B ref 31495); Sun, 20 May 2018 02:20:02 +0000 Original-Received: (at 31495) by debbugs.gnu.org; 20 May 2018 02:19:53 +0000 Original-Received: from localhost ([127.0.0.1]:41519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fKDwu-00020m-UP for submit@debbugs.gnu.org; Sat, 19 May 2018 22:19:53 -0400 Original-Received: from mail-pl0-f54.google.com ([209.85.160.54]:36935) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fKDws-00020Y-Hc for 31495@debbugs.gnu.org; Sat, 19 May 2018 22:19:50 -0400 Original-Received: by mail-pl0-f54.google.com with SMTP id w19-v6so6748936plq.4 for <31495@debbugs.gnu.org>; Sat, 19 May 2018 19:19:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=VFb/mbU785+cYntWKL1GRPJh5c2CAYFePIOfwkiXRmA=; b=TH0d/Z0N2bSsSr9miNEcSXvWSx/3L9otqJeiihjyBPBN4ittQQAIngdQLZVc84W+MZ rOI4MOyYrTbYkNt+0b8nwX6uVZ7O5mQpM8W1LH7Jnd1prhJi7nWQkcCrNRe7nAdRn9rg tE2XxpS7+sBmBLM4gRDq6m03mnhB1/D42ewY7QVUVwDhhWKsvs8PtaqIDhS8NGdjl9MT Bk/9Th5JJZffplh8tL6C5rpCTDwIDyMShzjvLgucpRX3+uC9hVaU0Zyg0xl5eIzvEIMD jld3ahFoJYcC9wVbdiu14aOMtsqeX9FkLEKVVuxNdb4gQA6svt6+28g/xiSWzM902b8T nsmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=VFb/mbU785+cYntWKL1GRPJh5c2CAYFePIOfwkiXRmA=; b=SAB4H7QoX9ZN7JDpVL2s91dgbOQKbX7AmWrZ2g0UXiCEjnK50ZYuSSgyiIl+WtJV9d r/z9nMCXYZo9gDqzYM8c0KEedNwKPCT3E+/JSZBT6QZcFl8c03JhQH+iErpZUJGn0lfg EY8VtC+iGZILEcqeUpZBW0fh3x9zV3haf5XUO/FVjlHsaoRm6ldHzynQT98xnYO40hbD M+RPjXstco3QWP0L3TuHtqmpfgkxlw//xDuCDNiZZAqRc5fmWoqaByc5FLDg5q+oirPp Q74EBv9H8ibkZD20Srcy6iexuM3FrSprk+8Nj3PG9g3ukZOw8FtHNWdCRxIZn71KMNqW N0Sw== X-Gm-Message-State: ALKqPweZ36Jjm6nHN+ZWDDtWTrXOs0dz+qdxsSdLwal5uPKljU6AGXTg mCwyPQS3muatM4TlbsMS+tBJRw== X-Google-Smtp-Source: AB8JxZpLhVHcljuFosqHfRWzKSvLQl3OGZgMNEWVQLGIC+HSbeP55PMo+ZKDvugD3J5uBwUhHiUyQw== X-Received: by 2002:a17:902:7844:: with SMTP id e4-v6mr15134262pln.296.1526782784606; Sat, 19 May 2018 19:19:44 -0700 (PDT) Original-Received: from calancha-pc (228.225.128.101.dy.bbexcite.jp. [101.128.225.228]) by smtp.gmail.com with ESMTPSA id c20-v6sm25463019pfk.63.2018.05.19.19.19.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 19 May 2018 19:19:43 -0700 (PDT) In-Reply-To: <87tvr3mrwh.fsf@gmx.de> (Michael Albinus's message of "Sat, 19 May 2018 20:17:34 +0200") 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:146306 Archived-At: Michael Albinus writes: > Tino Calancha writes: > > Hi Tino, > >> We could even let the user enable globstar in those shells supporting >> it but having it disable by default (e.g. bash). > > What about ls-lisp? It would be great to have there but it's out of the scope of the patch yet. This is not about add a new dired feature. Instead, the target is to turn on a feature from your shell that is disabled by default. If you use em-ls you have this feature. Same as if you use external program `ls' from zsh or fish shells. The idea is to let users if they want to enable globstar in their shell when its disabled by default. >> +(defconst dired-enable-globstar-in-shell >> + '(("ksh" . "set -G") >> + ("bash" . "shopt -s globstar")) >> + "Alist of (SHELL . COMMAND), where COMMAND enables globstar in SHELL. >> +If `dired-maybe-use-globstar' is non-nil, then `dired-insert-directory' >> +checks this alist to enable globstar in the shell subprocess.") > > This works only if the shell name like bash or ksh is used. Often, just > /bin/sh is used, and you don't know which real shell this file is linked to. My patch use `file-truename' to get the actual shell used by `dired-insert-directory'.