From debbugs-submit-bounces@debbugs.gnu.org Fri May 18 11:33:47 2018 Received: (at submit) by debbugs.gnu.org; 18 May 2018 15:33:47 +0000 Received: from localhost ([127.0.0.1]:39948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fJhO7-0005D8-8x for submit@debbugs.gnu.org; Fri, 18 May 2018 11:33:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46399) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fJhO6-0005Cw-5j for submit@debbugs.gnu.org; Fri, 18 May 2018 11:33:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJhNz-0006me-G0 for submit@debbugs.gnu.org; Fri, 18 May 2018 11:33:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53015) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fJhNz-0006mX-Bx for submit@debbugs.gnu.org; Fri, 18 May 2018 11:33:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJhNu-0004a0-Di for bug-gnu-emacs@gnu.org; Fri, 18 May 2018 11:33:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJhNq-0006fA-AD for bug-gnu-emacs@gnu.org; Fri, 18 May 2018 11:33:34 -0400 Received: from gateway23.websitewelcome.com ([192.185.49.180]:33303) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fJhNp-0006X0-Vq for bug-gnu-emacs@gnu.org; Fri, 18 May 2018 11:33:30 -0400 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway23.websitewelcome.com (Postfix) with ESMTP id D3BC11312F for ; Fri, 18 May 2018 10:33:17 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id JhNdfrvVGBcCXJhNdfnaDS; Fri, 18 May 2018 10:33:17 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Xn8Csn+l/lLkW22o/pieCWMqao6kM2MdtFRE+D0guIk=; b=Gfid4zghb6siWq3kligw/AtPFr 2nHhC+hkVU1LFudhnJtNBkYgGb12ptINAxLPXQGwjc3K10RCmicU/hQ3hkk0G98ACLxw2JxFV6nav rH78R2Rw+MMSmGPShqFSYy3lj; Received: from 174-29-44-154.hlrn.qwest.net ([174.29.44.154]:51328 helo=pokyo) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1fJhNd-002f6H-Jc; Fri, 18 May 2018 10:33:17 -0500 From: Tom Tromey To: bug-gnu-emacs@gnu.org Subject: 26.1; filename completion -vs- "*" X-Attribution: Tom Date: Fri, 18 May 2018 09:33:16 -0600 Message-ID: <877eo1gern.fsf@tromey.com> MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 174.29.44.154 X-Source-L: No X-Exim-ID: 1fJhNd-002f6H-Jc X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 174-29-44-154.hlrn.qwest.net (pokyo) [174.29.44.154]:51328 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) I found a situation where using "*" globbing in filename completion acts strangely. Here is how to set up to see the bug: $ cd /tmp $ mkdir -p a/b/c a/d/c $ touch a/b/c/q Now in Emacs, C-x C-f /tmp/a/*/c TAB On the first TAB, a "/" is appended, and then point moves to the "/" before "c". Now type TAB again. At this point, the "/tmp/a" is greyed out and the minibuffer shows: Find file: /tmp/a//c/ ... so now only completions for "/c" are available. I think instead the "*" should be preserved. Often I'm using this feature to try to find a specific file where I don't know the exact subdirectory it is in. In GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.26) of 2018-05-11 built on pokyo Repository revision: c9c0e40d673a5fc0d24d30ff67ccb7c7f2fb482a Windowing system distributor 'Fedora Project', version 11.0.11906000 System Description: Fedora release 27 (Twenty Seven) Recent messages: Mark set Saving file /home/tromey/rust-debug.org... Wrote /home/tromey/rust-debug.org Saving file /home/tromey/rust-debug.org... Wrote /home/tromey/rust-debug.org Mark saved where search started [2 times] Quit Making completion list... [2 times] Quit [3 times] Invalid module name "flycheck_TestRustNames" [invalid-name] [2 times] Configured using: 'configure --prefix=/home/tromey/Emacs/install --with-modules' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS LIBSYSTEMD LCMS2 Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Python Minor modes in effect: ggtags-mode: t ggtags-navigation-mode: t erc-list-mode: t erc-menu-mode: t erc-autojoin-mode: t erc-ring-mode: t erc-pcomplete-mode: t erc-netsplit-mode: t erc-spelling-mode: t erc-truncate-mode: t diff-auto-refine-mode: t flyspell-mode: t shell-dirtrack-mode: t which-function-mode: t erc-track-mode: t erc-track-minor-mode: t erc-notify-mode: t erc-notifications-mode: t erc-match-mode: t erc-services-mode: t erc-networks-mode: t erc-hl-nicks-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t flycheck-mode: t savehist-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t auto-fill-function: do-auto-fill transient-mark-mode: t Load-path shadows: /home/tromey/.emacs.d/elpa/bubbles-0.5/bubbles hides /home/tromey/Emacs/install/share/emacs/26.1/lisp/play/bubbles Features: (shadow emacsbug python tramp-sh js sgml-mode gud mailalias bbdb-sc supercite regi mail-hist iso-transl eieio-opt speedbar sb-image ezimage dframe pulse compare-w org-rmail org-mhe org-irc org-info org-gnus nnir org-docview doc-view image-mode org-bibtex bibtex org-bbdb org-w3m org-element avl-tree generator org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs novice eww webjump url-http url-auth url-gw log-view pcvs-util wgrep find-dired grep tcl pcmpl-unix shr-color smerge-mode term/xterm xterm goto-addr find-file dabbrev copyright idutils pcase add-log ggtags etags xref project compile bug-reference whitespace cc-mode cc-fonts cc-guess cc-menus cc-cmds shr svg dom jka-compr gnus-html url-queue help-fns radix-tree browse-url url-cache mm-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf bbdb-gui bbdb-hooks bbdb-rmail rmailsum sort smiley gnus-cite flow-fill mm-archive gnus-bcklg erc-list erc-menu erc-join erc-ring erc-pcomplete erc-netsplit erc-spelling erc-truncate qp gnus-async gnus-ml disp-table misearch multi-isearch vc-mtn vc-hg vc-git diff-mode vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs gnus-topic nndraft nnmh nnfolder utf-7 bbdb-gnus bbdb-snarf mail-extr bbdb-com network-stream nsm starttls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache gnus-registry registry eieio-base gnus-art mm-uu mml2015 mm-view mml-smime smime dig mailcap gnus-sum gnus-group gnus-undo smtpmail sendmail gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc nnoo gnus-spec gnus-int gnus-range message rmc puny rfc822 mml mml-sec epa derived epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr elec-pair flyspell ispell diminish appt diary-lib diary-loaddefs cal-menu calendar cal-loaddefs tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete parse-time which-func imenu autorevert filenotify desktop frameset cus-start cus-load git-link url-util erc-track erc-notify erc-desktop-notifications erc-match erc-services erc-networks notifications dbus xml erc-hl-nicks easy-mmode color erc-button erc-fill erc-stamp wid-edit erc-goodies erc erc-backend erc-compat format-spec thingatpt pp dired-aux dired-x dired dired-loaddefs warnings advice vc-dir ewoc vc vc-dispatcher flycheck cl-extra json map find-func help-mode rx subr-x dash cc-styles cc-align cc-engine cc-vars cc-defs bbdb cl timezone ange-ftp comint ansi-color ring server savehist finder-inf bbdb-autoloads lisppaste-autoloads pydoc-info-autoloads info-look info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 2783408 275648) (symbols 48 120787 15) (miscs 40 37433 11144) (strings 32 465564 61374) (string-bytes 1 12103968) (vectors 16 162401) (vector-slots 8 3066382 196672) (floats 8 608 703) (intervals 56 263860 7322) (buffers 992 263)) From debbugs-submit-bounces@debbugs.gnu.org Sat May 19 09:32:20 2018 Received: (at 31495) by debbugs.gnu.org; 19 May 2018 13:32:20 +0000 Received: from localhost ([127.0.0.1]:40569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fK1y8-0007p1-H0 for submit@debbugs.gnu.org; Sat, 19 May 2018 09:32:20 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fK1y6-0007om-5w for 31495@debbugs.gnu.org; Sat, 19 May 2018 09:32:18 -0400 Received: by mail-pf0-f196.google.com with SMTP id w129-v6so5032783pfd.3 for <31495@debbugs.gnu.org>; Sat, 19 May 2018 06:32:18 -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=DTpIxsmb4dI/oRHNTH8KWSjOYWnjRWhzJSjVbuy7raU=; b=sKyXvfPuT5+fTV76xk189XHg3HNSpFKNF5SpRxp/8yfiUHfwgk2IkxQ80e1SdHHSC8 Npkd/AEMASHnJocqHAZCCGE/JqZ1FwnWqaSDI8aVAdUMiE7D47M6DmkG4M9t8l/F9h5D G4gxSFRZ4mrjgwppydR6j8xHuAVuzw5YZ3ftwkzeJmWsuIcayB/gji1AlyV+HhfWlDJK 4kquxHU/K9nptwXW/JUW76lPDhxCfw25XDM64vdHWTN8wOknyaGaWtbhvDKSiCOjmRSi tlZ22EwapPp4uY62jPFks9IJvLgvXHTKyBLiv8GKwV8TNM1n5Ep3Xj1RyXA8H7AGwJrh gZFg== 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=DTpIxsmb4dI/oRHNTH8KWSjOYWnjRWhzJSjVbuy7raU=; b=mCwCKSfujflQRR6oVHZsS3rH7KuJQzVEujeFKBIgl0aeuuiisKWTumPxID+wvBSt9X Fqa9zZPco2oBiTSYozVSzXQ8+W747w+Lj75Lz6xe1vw/ifOGXGrJ4JtqJ0+sLZ+hklM0 uwGfsnIViWvNjO9/coB7+RepUFAgNHKxlIZhPlp64Sau0BA3tiLkDutDcT9Ev6MiPGNc D7lBjRwjhpk/HIbIrFxQwTLZ/0qlnxrta02LVMMHtVk39MKVGoC0TE66Ks8/oOkGr/fs LVIYA5N4f2S0czs3yNBX6saS59gbPzc7p3zmbmhbbWvJpxOOwvWzgWyVZVMV1dmT230e UDkQ== X-Gm-Message-State: ALKqPwcIYWh2FPa4igmqEfheTsAFaTOZuol1dT0NOYlE6ZDFCiz0KuH4 3eMIuaNaQcngpSPCVSy9HCs= X-Google-Smtp-Source: AB8JxZqjf4uKuAFpYA/CBgj67uQad4P9JqWVJPwnP3eJBXQbW7UJ+/kH0OPIJoOkDd/Mvd43Dl37WA== X-Received: by 2002:a63:6185:: with SMTP id v127-v6mr10507442pgb.441.1526736732195; Sat, 19 May 2018 06:32:12 -0700 (PDT) Received: from calancha-pc (228.225.128.101.dy.bbexcite.jp. [101.128.225.228]) by smtp.gmail.com with ESMTPSA id e18-v6sm14898979pfi.100.2018.05.19.06.32.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 19 May 2018 06:32:11 -0700 (PDT) From: Tino Calancha To: Tom Tromey Subject: Re: bug#31495: 26.1; filename completion -vs- "*" References: <877eo1gern.fsf@tromey.com> Date: Sat, 19 May 2018 22:32:03 +0900 In-Reply-To: <877eo1gern.fsf@tromey.com> (Tom Tromey's message of "Fri, 18 May 2018 09:33:16 -0600") Message-ID: <87wovzzs8c.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 31495 Cc: Eli Zaretskii , Michael Albinus , 31495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.6 (-) Tom Tromey writes: > I found a situation where using "*" globbing in filename completion acts > strangely. > > Here is how to set up to see the bug: > > $ cd /tmp > $ mkdir -p a/b/c a/d/c > $ touch a/b/c/q > > Now in Emacs, C-x C-f /tmp/a/*/c TAB > > On the first TAB, a "/" is appended, and then point moves to the "/" > before "c". Yeah, it's broken. In this example adding a '/' makes the completion works C-x C-f /tmp/a/*/c/ TAB > Now type TAB again. > At this point, the "/tmp/a" is greyed out and the minibuffer shows: > > Find file: /tmp/a//c/ > > ... so now only completions for "/c" are available. > > I think instead the "*" should be preserved. Often I'm using this > feature to try to find a specific file where I don't know the exact > subdirectory it is in. Since Emacs 26.1 dired supports wildcards in the directory part. You can use C-x d /tmp/a/*/c/q RET If you shell in '/bin/sh' supports globstar (and have it enabled by default) then you can do just: C-x d /tmp/**/q RET We could even let the user enable globstar in those shells supporting it but having it disable by default (e.g. bash). For instance, following patch: --8<-----------------------------cut here---------------start------------->8--- commit 1c1116e6a6ed369db63ddf00865f04f687579e71 Author: Tino Calancha Date: Sat May 19 21:57:42 2018 +0900 Handle globstar in dired Allow user to enable globstar when the shell support it and disable it by default (e.g. bash). * lisp/dired.el (dired-maybe-use-globstar): New user option. (dired-enable-globstar-in-shell): New variable. (dired-insert-directory): if `dired-maybe-use-globstar' is non-nil and the shell supports globstar, then enable it. * doc/emacs/dired.texi: Document feature. ; * etc/NEWS: Add entry. diff --git a/doc/emacs/dired.texi b/doc/emacs/dired.texi index fbb3030c2a..ad63c2f6a5 100644 --- a/doc/emacs/dired.texi +++ b/doc/emacs/dired.texi @@ -79,6 +79,24 @@ Dired Enter @samp{foo}. The latter lists the files with extension @samp{.el} in all the subdirectories of @samp{foo}. +When the system shell supports globstar and it's enabled, then you +can use recursive globbing: + +@example +C-x d ~/foo/**/*.el @key{RET} +@end example + +This command lists all the files with extension @samp{.el} descending +recursively in all the subdirectories of @samp{foo}. Note that there +are small differences in the implementation of globstar between shells. +Check your shell manual to know the expected behavior. + +@vindex dired-maybe-use-globstar +@vindex dired-enable-globstar-in-shell +If the shell supports globstar and disables it by default, you +can still enable this feature with @code{dired-maybe-use-globstar} if +the shell is included in @code{dired-enable-globstar-in-shell}. + The usual history and completion commands can be used in the minibuffer; in particular, @kbd{M-n} puts the name of the visited file (if any) in the minibuffer (@pxref{Minibuffer History}). diff --git a/etc/NEWS b/etc/NEWS index c7ffb17ad3..931289f0af 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -266,6 +266,12 @@ unescaping text. ** Dired +++ +*** The new user option 'dired-maybe-use-globstar' enables globstar +in shells that support this feature. The new variable +'dired-enable-globstar-in-shell' lists which shells can have enabled +globstar. + ++++ *** The new user option 'dired-create-destination-dirs' controls whether 'dired-do-copy' and 'dired-rename-file' should create non-existent directories in the destination. diff --git a/lisp/dired.el b/lisp/dired.el index 1348df6934..0adffdbd3f 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -77,6 +77,26 @@ dired-subdir-switches :type '(choice (const :tag "Use dired-listing-switches" nil) (string :tag "Switches"))) +(defcustom dired-maybe-use-globstar nil + "If non-nil, enable globstar if the shell support it. +Some shells enable this feature by default (e.g. zsh or fish). + +See `dired-enable-globstar-in-shell' for a list of shells +that support globstar and disable it by default. + +Note that the implementation of globstar have small differences +between shells. You must check your shell documentation to see +what to expect." + :type 'boolean + :group 'dired) + +(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.") + (defcustom dired-chown-program (purecopy (cond ((executable-find "chown") "chown") ((file-executable-p "/usr/sbin/chown") "/usr/sbin/chown") @@ -1297,6 +1317,13 @@ dired-insert-directory (executable-find explicit-shell-file-name)) (executable-find "sh"))) (switch (if remotep "-c" shell-command-switch))) + ;; Enable globstar + (when-let ((globstar dired-maybe-use-globstar) + (enable-it + (assoc-default + (file-truename sh) dired-enable-globstar-in-shell + (lambda (reg shell) (string-match reg shell))))) + (setq script (format "%s; %s" enable-it script))) (unless (zerop (process-file sh nil (current-buffer) nil switch script)) --8<-----------------------------cut here---------------end--------------->8--- In GNU Emacs 27.0.50 (build 12, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2018-05-17 built on calancha-pc Repository revision: 593c367b0727affc739832ab4f4bdb9d7dd1ddd7 From debbugs-submit-bounces@debbugs.gnu.org Sat May 19 14:18:02 2018 Received: (at 31495) by debbugs.gnu.org; 19 May 2018 18:18:02 +0000 Received: from localhost ([127.0.0.1]:41241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fK6Qc-0005x7-GQ for submit@debbugs.gnu.org; Sat, 19 May 2018 14:18:02 -0400 Received: from mout.gmx.net ([212.227.17.22]:39679) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fK6Qa-0005wc-U7 for 31495@debbugs.gnu.org; Sat, 19 May 2018 14:18:01 -0400 Received: from detlef.gmx.de ([212.91.249.45]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LuP19-1gLf4o42Kd-011jMV; Sat, 19 May 2018 20:17:38 +0200 From: Michael Albinus To: Tino Calancha Subject: Re: bug#31495: 26.1; filename completion -vs- "*" References: <877eo1gern.fsf@tromey.com> <87wovzzs8c.fsf@gmail.com> Date: Sat, 19 May 2018 20:17:34 +0200 In-Reply-To: <87wovzzs8c.fsf@gmail.com> (Tino Calancha's message of "Sat, 19 May 2018 22:32:03 +0900") Message-ID: <87tvr3mrwh.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:gRA3HMtSxlQT0S4Olk2pyQNBWuylC2s+g4oDU+Zr/5mv70Puu6D 9jyp2OruFuw/GSmyAnJsQIMYbsmL+BG1uKo+vkHW1U9TSEpM7v9FcQ+v++LCwSDZ0rTpwy4 Mbope5FfOyAZCZUrgoiQ2bVChRWe+QqnxhJnedraVwmCNH9pmdhlY+njda/5YS/oM/COulV +ih0sRxcAOVXPS++VvPbQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:0uAotoRH7H4=:zjARj+l0TKP7ISp1M7arMU eW4Yeov3t5YAqXBOxTwucMLiDbWeGINHgS89q7Yr0uZh0uK058M++vsuhpd7FukfWhgqkcOHU 28C06J4C3EPSmfeLodOPW5nBb8VKnclVWDJDZNlXP0pO/VQFdX7Fq0vz7y45IbeDF4AvEJ3my sM+TZJMHxRMuto1HTTInuaV7wSC6sksYT9bhLtqNR/UxOOUSRqCowlK7oAq9IYm1O56FWyzgs jS1OOCGyKfMXBGd70gysFqSfHIMcN5XwiZrlgTZ0FI5ellyftIXlAij5IJb5JVMqda77Ybu81 rSMF0SUIhzxp1VtZpW5v0PH5I43Q4lVjx/RP+4eAjYd54HE0VCpgQiD9rk9vRubHW/JB8EvJ5 eE/08lzcLAG5W0GSEDNb7LdASUJrj0bwt/HUkRG+3rWDbJUk+n3K80mKmppUBf1rkI+lL2Uk3 uisTajUDPDC+rvBSPaPgW5xc5nHYog3r1iBVUnq3ApfZrzrAHY1SGuJbTdsxacZGWxi6Ih1sT RsFgUpdPg2yZ0kIZ7vcUo+bJU3sq2YvbQcdNWk25xt46QYpS2+LrJ5TEm2DPmJFQWbJmbgKI7 GZaKqBxTI+4TPbASWjRzpgPp2F4H+zjPVV178HPLE04A8ennUOzZibMMxtRFVil70tSjUplOL 7WcghKVFxBHGpbq+0WkaY+5wIWLABf3L4+s3Y3KyaxCsqmgakgJJVOWmPt5GlfAhMDbjPY8ZL i1YdDQxC7024URNw359WqhnNdchZvCpY2nmemN1//teI295lutJqcBsCg/CCOBPSR/oFmhawR TlJA1Qg X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31495 Cc: Eli Zaretskii , Tom Tromey , 31495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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? > +(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. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat May 19 22:19:53 2018 Received: (at 31495) by debbugs.gnu.org; 20 May 2018 02:19:53 +0000 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 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 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) 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) From: Tino Calancha To: Michael Albinus Subject: Re: bug#31495: 26.1; filename completion -vs- "*" References: <877eo1gern.fsf@tromey.com> <87wovzzs8c.fsf@gmail.com> <87tvr3mrwh.fsf@gmx.de> Date: Sun, 20 May 2018 11:19:37 +0900 In-Reply-To: <87tvr3mrwh.fsf@gmx.de> (Michael Albinus's message of "Sat, 19 May 2018 20:17:34 +0200") Message-ID: <871se7hxvq.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31495 Cc: Eli Zaretskii , Tom Tromey , 31495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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'. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 20 08:36:48 2018 Received: (at 31495) by debbugs.gnu.org; 20 Jun 2018 12:36:48 +0000 Received: from localhost ([127.0.0.1]:57150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVcLu-0002ph-Gc for submit@debbugs.gnu.org; Wed, 20 Jun 2018 08:36:46 -0400 Received: from mail-io0-f171.google.com ([209.85.223.171]:38053) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVcLs-0002pP-Mb; Wed, 20 Jun 2018 08:36:44 -0400 Received: by mail-io0-f171.google.com with SMTP id l19-v6so3294714ioj.5; Wed, 20 Jun 2018 05:36:44 -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=huzaM4gUThgr96bYs52MYjn1URXouJ3z2ze7LDBh1BQ=; b=suJjrdyIbt+LSdrSc8m839PlQOIUk/S8Kxp30X0zKkKGraD2dPhiWAhshfDCOFQhVG akx+W8r9G/SUnG4uQ8iDI1NaR2iXXmSS2IkQiC/QCt1n+zeKADqUtTfMYIthebmw3eUT w7h0oOZoqEva+nY4ePlo9lpPTRffUZ7IK7Utr1YYSMycW2mgBjAHpAmnTNE3a6e+3SdM 9zLuVKnMdK2mgF8/W8TO2XuvMDSSq1K1QH5fJRiSlW2JjdIe9tTCd5JvefCe/Zx2+Mna 3YrCi2oxZmRhSJqSZpKoombAvztOMOO+CaphxqiBjR8TN4o/T0/UR87kmxBEWlL1OEwA x/Wg== 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=huzaM4gUThgr96bYs52MYjn1URXouJ3z2ze7LDBh1BQ=; b=gRhSX/lCTtASX1lRphjfE/zxkWFiVfbsiCGQfK5pJb0wPeMOMWs1V1TppXxpE2kQzJ y8u9be71dhxEEdGm4LUBIpoElqLLPzxQl5+9yMrzNhNJqMPILY+SYWgAySjv9XBw00ny 1XnAVuI7sZigIMIiUwJPqKdIGAzidNqlMHvpi5dEp0oLN1n44IWraYuGM1iUeEkAzLvG bcMpvHgKyqZsrtdHAclrp1RoD+zPVgqHGbrGumvjyrfbVXfU6hFZQyLhG5/wxmSkyr1A BmWUjpIxEkSA/NGsZVD0ApPFhSHVy/G5B6LPzVjwU+DGjRzqwcOX0OqdDajlyVUeqYYs ChPg== X-Gm-Message-State: APt69E3+SAMJ1PrDlWqqU2wlO7hokmlr60fDJntTaVLRiWZgcDRb1GTL /GyHJyhNmpFb0TSaEwubmHpGHw== X-Google-Smtp-Source: ADUXVKJeuu6edzQA2fMqk4ZgjaNwJUpMTyXokgWlUtsd4otCELHrGLlI/xbOCsfWxbtic8BXcjJWng== X-Received: by 2002:a6b:a155:: with SMTP id k82-v6mr17132237ioe.46.1529498198953; Wed, 20 Jun 2018 05:36:38 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id h81-v6sm7272965ith.2.2018.06.20.05.36.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Jun 2018 05:36:37 -0700 (PDT) From: Noam Postavsky To: Tino Calancha Subject: Re: bug#31495: 26.1; filename completion -vs- "*" References: <877eo1gern.fsf@tromey.com> <87wovzzs8c.fsf@gmail.com> Date: Wed, 20 Jun 2018 08:36:35 -0400 In-Reply-To: <87wovzzs8c.fsf@gmail.com> (Tino Calancha's message of "Sat, 19 May 2018 22:32:03 +0900") Message-ID: <87d0wlskh8.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31495 Cc: Eli Zaretskii , Tom Tromey , Michael Albinus , 31495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) severity 31495 minor quit Tino Calancha writes: > Tom Tromey writes: > >> Now in Emacs, C-x C-f /tmp/a/*/c TAB >> >> On the first TAB, a "/" is appended, and then point moves to the "/" >> before "c". > Yeah, it's broken. > In this example adding a '/' makes the completion works > C-x C-f /tmp/a/*/c/ TAB Hmm, that makes it seem like the different behaviour without the trailing slash is on purpose (though I can't see what that would be). > +(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.") Shouldn't this be a defvar or a defcustom? Using defconst makes it seem like the code wouldn't handle it being changed. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 20 08:48:52 2018 Received: (at 31495) by debbugs.gnu.org; 20 Jun 2018 12:48:52 +0000 Received: from localhost ([127.0.0.1]:57162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVcXb-00056V-OJ for submit@debbugs.gnu.org; Wed, 20 Jun 2018 08:48:51 -0400 Received: from mail-pl0-f47.google.com ([209.85.160.47]:35069) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVcXa-00056J-Kc for 31495@debbugs.gnu.org; Wed, 20 Jun 2018 08:48:50 -0400 Received: by mail-pl0-f47.google.com with SMTP id k1-v6so1722535plt.2 for <31495@debbugs.gnu.org>; Wed, 20 Jun 2018 05:48:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=HRm8/J4Ff8IRM69ziOWN22RQVwJgu/AflGMuSnHOCK0=; b=NgUHueZUaVQP1Jd2DfJoVPjwi66/5MrR6B4ZkEDnArk0vzo3agices396H0QsFIiB6 ZcS9Of8uzp8DJaCSzk5eI2pobGiqZIEtw1OyY5nVR4Xnc7KQ1fcbN/Py+f3SCKVOdrr6 7go7AubFzVsCLkagfN7t9WGh7GXtBJxbVX40rw6WqgntnX0EgeRF6ZAUH2fSoH1wR4AE 7zjjFp/tPGFi2K5sKrXVF/I5KJxtb37+Y13K24mybtoCdJkKlEAwRw1/QPFT2mctKK5i D99QH7K7gvaoceH0Pc5zFaqOsMSL7mV+AsoaaM6rG81m8fxUKIeRGnjB9EGRrsVVrSQ6 uHpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=HRm8/J4Ff8IRM69ziOWN22RQVwJgu/AflGMuSnHOCK0=; b=Q0Y2DAsm4D9uEhzsxlYRaqTRLBty/J2MwYMwG5zjgvRT9S+pNlMPw0sUR6y7E1fKko 9dv+7GvuEha4rn349VyfLc0FXWiTbaLSn3xUTPvLRHEWdC6MT0yCGji1oovxKX6SOIsU 69rKSCTV7nJ4yOsk1Km926dBc6+FNdIjOLCg/JeuMPonANKWmQ54wpxCV4XfhdvNej6e 9YgTC7ODWJUmDDb0UatoHsc1Xzs3ZW1ULTumr4aZriyExRUbAmsVaqF2D2VPAfooxdZC ZB1ZwUyJigmVlcxGTJqwjfpIoiOXi4k1Pb4WV2DPzIi27Rhm+AfwSWQTXcdqOxc9xpTo kQRg== X-Gm-Message-State: APt69E2xNYD1vH2kZdc4gh829VqsChq3pVx8Q2qIAiZ2JeG+dlkw+Ctn /J2bvBKeUJVxsBd5Ilt+4gc= X-Google-Smtp-Source: ADUXVKKPn8e6cy5xGv4Usl3v1nGm66Rk/2z9AZNnvLgmHdTRh84LAdZ9jpOq7t2KIl4kHO9Y/1mvPQ== X-Received: by 2002:a17:902:778e:: with SMTP id o14-v6mr23416153pll.214.1529498924751; Wed, 20 Jun 2018 05:48:44 -0700 (PDT) Received: from calancha-pc.dy.bbexcite.jp (228.225.128.101.dy.bbexcite.jp. [101.128.225.228]) by smtp.gmail.com with ESMTPSA id j127-v6sm2847831pgc.10.2018.06.20.05.48.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jun 2018 05:48:44 -0700 (PDT) From: Tino Calancha X-Google-Original-From: Tino Calancha Date: Wed, 20 Jun 2018 21:48:40 +0900 (JST) X-X-Sender: calancha@calancha-pc.dy.bbexcite.jp To: Noam Postavsky Subject: Re: bug#31495: 26.1; filename completion -vs- "*" In-Reply-To: <87d0wlskh8.fsf@gmail.com> Message-ID: References: <877eo1gern.fsf@tromey.com> <87wovzzs8c.fsf@gmail.com> <87d0wlskh8.fsf@gmail.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31495 Cc: Eli Zaretskii , Tom Tromey , Michael Albinus , 31495@debbugs.gnu.org, Tino Calancha X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> +(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.") > > Shouldn't this be a defvar or a defcustom? Using defconst makes it seem > like the code wouldn't handle it being changed. To indicate what shells Emacs is supporting for this feature. Of course it might be a defvar, and users might change that adding other shells; but then, those shells might not been heavily tested by Emacs developers, and other features can break. I just wanted to be conservative. I think that is a cheap and useful addition. I like it. I set '/bin/sh' to '/bin/zsh' mainly to have globstar in dired; often, I find that I reset it to 'bash' and globstar stop working with Dired :-( From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 20 09:08:36 2018 Received: (at 31495) by debbugs.gnu.org; 20 Jun 2018 13:08:36 +0000 Received: from localhost ([127.0.0.1]:57175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVcqh-0007YQ-WC for submit@debbugs.gnu.org; Wed, 20 Jun 2018 09:08:36 -0400 Received: from mail-pl0-f46.google.com ([209.85.160.46]:47070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVcqf-0007YD-EF for 31495@debbugs.gnu.org; Wed, 20 Jun 2018 09:08:34 -0400 Received: by mail-pl0-f46.google.com with SMTP id 30-v6so1737511pld.13 for <31495@debbugs.gnu.org>; Wed, 20 Jun 2018 06:08:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=ls8o5KezO3SUi9aqB9TrkwykXDi6COc28jNJrkDGGlw=; b=U2/D2GwVp2ox7MVxnqvUxWM9SV4FxHylvJnMp/u/L3Vt2S0tL+E+/tgbxTY0sSu3R0 szRhB2m86nT5og/b8zUdwYDXcAYJVegWQ34ZVJIEuKWGgc1EmvfBpdfXCtCKxJOZDk0u bnUJNB3P/T+HCJRhVOY/3hepgnggI/YIYfdyR07JzZ8tD1ZpcfdBeaMdyWIaGNiZxHGh 3lB0eTfwVOQXkCTfBmznRFKJczgYQtlcMsLDuhcCX4WktQasIX9mskl62x7qAgLhPxgJ m5FSpr1ipzR1DR682S9vA1hN7OtyHd/Xw5VBXjaL6CXeVd1b1cu3LPGN4XxGwB9hEnDi WxcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=ls8o5KezO3SUi9aqB9TrkwykXDi6COc28jNJrkDGGlw=; b=LI1jub53VcVbKIVjmhHVPZpQ3hSISiqeYGaiBG+jekoSCY8f7aySiG32ONprDGPygh j9JMdSfKHQPEDekhJsQWEpFvWNGPZjmcPCUIa8hzd6SjaMgdxmw3sZGMNp8g0orThhBi yLyKgJWNUp2oECGEGVlmnTiakZBfUR26D8J5wKwejK0P/rs+03fvivvnCs1a7woe79+K cVmFo6Co889HI/wQ2gYEiTBWRcUFsAyo1o5ylRJuoBpkFNsmwoOT75PgwxxTYww8k/JE Vr/vYVdXhgQWO+HMP4RZLaNr66BzJB60eyUDcT/aYFo3YJY3jM/35GXjRV1/ad2uFhrK KjDg== X-Gm-Message-State: APt69E1XcDghinrcifjZFTKJkA6GJPszye+SyAZz4QwqmLiBHqNxvFxO MpsnE6xp73KUyMf4Au7se84= X-Google-Smtp-Source: ADUXVKKLE64y/X5Pg992YKGAo9mS9iw/so/66YO3G010mvx+S1TjPUeftziFqu0+DfNbDhQnfCF+Yw== X-Received: by 2002:a17:902:e209:: with SMTP id ce9-v6mr23464144plb.233.1529500107784; Wed, 20 Jun 2018 06:08:27 -0700 (PDT) Received: from calancha-pc.dy.bbexcite.jp (228.225.128.101.dy.bbexcite.jp. [101.128.225.228]) by smtp.gmail.com with ESMTPSA id q82-v6sm6053131pfg.170.2018.06.20.06.08.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jun 2018 06:08:27 -0700 (PDT) From: Tino Calancha X-Google-Original-From: Tino Calancha Date: Wed, 20 Jun 2018 22:08:23 +0900 (JST) X-X-Sender: calancha@calancha-pc.dy.bbexcite.jp To: Tino Calancha Subject: Re: bug#31495: 26.1; filename completion -vs- "*" In-Reply-To: Message-ID: References: <877eo1gern.fsf@tromey.com> <87wovzzs8c.fsf@gmail.com> <87d0wlskh8.fsf@gmail.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31495 Cc: Eli Zaretskii , Tom Tromey , Michael Albinus , Noam Postavsky , 31495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > I set '/bin/sh' to '/bin/zsh' mainly to have globstar in dired; often, > I find that I reset it to 'bash' and globstar stop working with Dired :-( You might be wondering why I reset back '/bin/sh' to '/bin/bash'. The reason is that `shell-prompt-pattern' doesn't recognize my zsh prompt; that means, if I want to visit dired as root: emacs -Q C-x d /sudo::/bin ;; this command won't end if I am using zsh. ;; It works OK with other shells (dash, bash, etc). I can modify `shell-prompt-pattern' myself but if I use emacs -Q still I cannot use dired as root in that case, which it's handy. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 20 10:06:19 2018 Received: (at 31495) by debbugs.gnu.org; 20 Jun 2018 14:06:19 +0000 Received: from localhost ([127.0.0.1]:57773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVdkX-0000XK-8P for submit@debbugs.gnu.org; Wed, 20 Jun 2018 10:06:19 -0400 Received: from mout.gmx.net ([212.227.17.20]:44761) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVdkU-0000X6-RA for 31495@debbugs.gnu.org; Wed, 20 Jun 2018 10:06:15 -0400 Received: from detlef.gmx.de ([212.86.38.114]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Le69A-1fzTri3aPs-00pvN5; Wed, 20 Jun 2018 16:05:55 +0200 From: Michael Albinus To: Tino Calancha Subject: Re: bug#31495: 26.1; filename completion -vs- "*" References: <877eo1gern.fsf@tromey.com> <87wovzzs8c.fsf@gmail.com> <87d0wlskh8.fsf@gmail.com> Date: Wed, 20 Jun 2018 16:05:50 +0200 In-Reply-To: (Tino Calancha's message of "Wed, 20 Jun 2018 22:08:23 +0900 (JST)") Message-ID: <87h8lxpn7l.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:sHIE0btynfpsoaLL9ZgeG136tqhPdZaN0+RlMvqZNBzL7XTQXjP O5MILzg2q7x60YrqQqJ+AIJU4M9dLItkXCyXXcF4uiU+czb1U8ylihwmd1sWDX4Wjcrs3d4 NrbIXDlKqj8fwa87xTuxTUK2mMBnKgGcMiR+HBhhHX+nrOMN5GcDMNNcA/r+LKmYMgiCA3o YaomODaGDEnmJf7s3qj5A== X-UI-Out-Filterresults: notjunk:1;V01:K0:ESTRavYNEQ4=:MTWsX8rz3EeLCuh831THf0 Z1EHuEO3Gk8iJxbcTe/i0yY5HZavJZy9K/cWhJV7YjXmKqVD2WS5IDIRmxHjOr0Txy/cTOtae 7Jg3k3uT41sTsdRp1IcQCzmUXocg8GOOZd0W3/YVT5PhOp7j8eGfOp/klwl4jg2OUbC37lj0v J6S75uTJYAO4bV22BFnQokgTvf4kmYep5lkLuNmVEw+Y70UX6n0OJq2VCZO1WuyOLTbmiFO/n 97fI/v70Z860LlRMp0GJdFBP/i2bPTg36fhoOjCCj6UM8sLQG1tOWmmgLRcnFAi7LEDFNgrmw OqKhG5O9sLrGhs/GW4E+l9hzszMXYKb7Wky0R3fsOBUgr12w4RWsa312lq58SCjotA05kRHZO NY+OT+7uxkHdDS1+NbBKnVElxEK4HWUxDZkrQgoivzCzslA9N+6JxlrWXMFY5aWmKDneH4eIU t7eRLiJDMsYul/qKw27I107WW3ulxxHL5EPnq2/gJ3dp+YfN80RaGtFdMOutrHYo1IX0gr/GN xGrd6JJSJBKm43ovUBx/MNd2cha/KhL+C097aVEK6ZyHRFgwCVnEVG2ehX+MEbZ361hANcFBg O/HSV/xfnZe7+ieCXr0wDH9yL6BKQkMaip+XarcMG8b55g7NTULdSkHpXXRGUgqwFkG7ksR3g Kz3Shzg2n2Bvq4Uq9o4fLX9qWpiRcIpxiX9ryJyptKZ9Y3JQPE7MgSHK05NRb3XqSCWYwJ3fm 1OZWfDdeaM0+GsFOSOc/wgE5K3xj+4UaxllWK2UdSDerUS9ZagJ1Vc/zlt3t0FVtz4Offu17D 0mTPUoX X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31495 Cc: Eli Zaretskii , Tom Tromey , Noam Postavsky , 31495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Tino Calancha writes: > C-x d /sudo::/bin > ;; this command won't end if I am using zsh. > ;; It works OK with other shells (dash, bash, etc). Problems of cooperation between Tramp and zsh are discussed in the Tramp manual. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 20 21:50:36 2018 Received: (at 31495) by debbugs.gnu.org; 21 Jun 2018 01:50:36 +0000 Received: from localhost ([127.0.0.1]:58105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVok7-0002nj-Kv for submit@debbugs.gnu.org; Wed, 20 Jun 2018 21:50:36 -0400 Received: from mail-pg0-f49.google.com ([74.125.83.49]:46928) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVok3-0002mi-CF for 31495@debbugs.gnu.org; Wed, 20 Jun 2018 21:50:33 -0400 Received: by mail-pg0-f49.google.com with SMTP id d2-v6so631445pga.13 for <31495@debbugs.gnu.org>; Wed, 20 Jun 2018 18:50:31 -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=Ps99i2v7CISzue8Vih4cHws6xALQjpbIc7g4NqZu38I=; b=aVhRxBxgtDzYUDAZncmNB/WoO4PJ4JPxN5niYhRsNNQISW3KyES+qoeLqIL1P7SAk4 u1TMoLMlo2EtvlvuZdD0sauSpzWHuWyXt0XFs89XRK1gEdi4QPBzeQ5T1/mfkTBHTCdH dleL9NZMuHOEIIfBGn9nNrpy+ANqb3Tpp80gTVET/DoDcSejsuViQ0daQ7qr2HxtIow6 JmwI67yTs32Aqh0iTqynWty8/WUpIQlSmPdXXmoqqAHyK+1jVM8QRI9ZT3zR3DieQIYu alsxxWdCWDFerRn161Ob9udS+hhU4be1DtmESyJOd24aocyRISqFsg41o+ypzWh0ky05 M0qQ== 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=Ps99i2v7CISzue8Vih4cHws6xALQjpbIc7g4NqZu38I=; b=YNsdvr8eh59pAa/B/4rctOE9Yl62kH43JPARZeDI3AmpdY9tgWWebbhNIoRw1fEmGo YGlO5UTy1uT7k7AMAkeDYz327Pdlu4czwScE0aGE0rT30fYtZ1PjGaI8Z8M+PN4VBuxQ c5P0q0Id8y+JS2LLEEHiyv2Is/5aUu09DzzF/QIQ+V1PEbkzB3b6A2HEOlqofsLkQVZv UgKdUx7MAdB7+Uodq5V+TUODW3Qb5edHjOsBfCJTFLZEUxOmlvCYz3oFt6ls6BztbCZI Bc/614IE76aLKJautl8cHwJgkNiBvFMMXjN4Cu6TAUV9G58Ij+hP9ed9Ezqiu6oJ/NlH nkVg== X-Gm-Message-State: APt69E0mjQwc2KsLl3RbBMhMfAdNQ3/kLnPWF3NQXD67n0LYnEnX60eT xL0cFYAx6JALI9pNMmfzFcnrlQ== X-Google-Smtp-Source: ADUXVKJ8Fd7M1hWyqNBuTU/nX2TlHw90AORBngzWhsvfr8wReufrqOKtAJzqy3zwJZGLd8yHoCuI1w== X-Received: by 2002:a63:9e0a:: with SMTP id s10-v6mr5128253pgd.305.1529545825292; Wed, 20 Jun 2018 18:50:25 -0700 (PDT) Received: from calancha-pc.dy.bbexcite.jp (228.225.128.101.dy.bbexcite.jp. [101.128.225.228]) by smtp.gmail.com with ESMTPSA id t6-v6sm4135033pgp.3.2018.06.20.18.50.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Jun 2018 18:50:24 -0700 (PDT) From: Tino Calancha To: Michael Albinus Subject: Re: bug#31495: 26.1; filename completion -vs- "*" References: <877eo1gern.fsf@tromey.com> <87wovzzs8c.fsf@gmail.com> <87d0wlskh8.fsf@gmail.com> <87h8lxpn7l.fsf@gmx.de> Date: Thu, 21 Jun 2018 10:50:18 +0900 In-Reply-To: <87h8lxpn7l.fsf@gmx.de> (Michael Albinus's message of "Wed, 20 Jun 2018 16:05:50 +0200") Message-ID: <87lgb87vs5.fsf@calancha-pc.dy.bbexcite.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31495 Cc: Eli Zaretskii , Tom Tromey , Noam Postavsky , 31495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Michael Albinus writes: > Tino Calancha writes: > >> C-x d /sudo::/bin >> ;; this command won't end if I am using zsh. >> ;; It works OK with other shells (dash, bash, etc). > > Problems of cooperation between Tramp and zsh are discussed in the Tramp > manual. Thank you, I find-grep 'zsh' in doc, and I found from tramp manual just this: When using zsh on remote hosts, disable zsh line editor because zsh uses left-hand side and right-hand side prompts in parallel. Add the following line to @file{~/.zshrc}: @example [[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return @end example Then, I add such line in ~/.zsh and /root/.zsh sudo ln -sf /bin/zsh /bin/sh emacs -Q C-x d /sudo::/bin ;; I don't get prompt for root password ln -sf /bin/bash /bin/sh C-x d /sudo::/bin ;; OK, but I lost globstar sniff, sniff :-( From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 21 03:19:41 2018 Received: (at 31495) by debbugs.gnu.org; 21 Jun 2018 07:19:41 +0000 Received: from localhost ([127.0.0.1]:58179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVtsb-0004W5-5T for submit@debbugs.gnu.org; Thu, 21 Jun 2018 03:19:41 -0400 Received: from mout.gmx.net ([212.227.15.18]:50989) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVtsZ-0004Vs-3A for 31495@debbugs.gnu.org; Thu, 21 Jun 2018 03:19:39 -0400 Received: from detlef.gmx.de ([212.86.58.122]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MdKDb-1fmbe00GX5-00IYiM; Thu, 21 Jun 2018 09:19:19 +0200 From: Michael Albinus To: Tino Calancha Subject: Re: bug#31495: 26.1; filename completion -vs- "*" References: <877eo1gern.fsf@tromey.com> <87wovzzs8c.fsf@gmail.com> <87d0wlskh8.fsf@gmail.com> <87h8lxpn7l.fsf@gmx.de> <87lgb87vs5.fsf@calancha-pc.dy.bbexcite.jp> Date: Thu, 21 Jun 2018 09:19:17 +0200 In-Reply-To: <87lgb87vs5.fsf@calancha-pc.dy.bbexcite.jp> (Tino Calancha's message of "Thu, 21 Jun 2018 10:50:18 +0900") Message-ID: <8736xg1ua2.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:TuuV/kvNLaXdielZ3RMRg/ZCsltBB0oumAVNg8wRZSaeb1aFyZ1 IpG47D6AqMtFlKeTZrXcPr/l2Nx+q4MQP7d5cnfLVS5P9Ab/uGcwMQvak81eJ6JVhM6lIVf DHdAOHAtiqPcAnguqotjCEzkVmeuCcBYaLlRL6vA3r1U+qQ7W8/7iTcdvVjw8h2Pp1Nb7Ro TXBKns/LeTXXEfk/mKTSA== X-UI-Out-Filterresults: notjunk:1;V01:K0:OkxbVOgUxz8=:RIP0wyiuep8PUOGcPvMKxG U+iHP9/a2W4WK1YUuNYKxZB3m2entE6Uqx1DvnXsSBeUHQqydP+NjIgwMmmyFLiD6lvmNgdXh 7NIwcrkPgBCY+lQmxK2TGa2UwGeUNW/BVUbFYP8t5RPsAO6jyf0ejlX6VSzM/IVWgwpKxYtWG 51GdPKO72RJKnzcQs/LnNFEF7ayDZs8yhsmA5mK3W6Ob4tomituVpNTldaLYuLzDh9uaxW48/ Ig0j0uAnxkKD8H/lQk4J8FBdWuEVuWgvECfdqWspmBjbuAedJYSzl+vW9NkU0svsZkpHNBQYs S/5AOexGtjl2dX7aaxiL48eHvTKTzKqQoQA+Rm7NKWCT3/Vga0gJ3aLY2jXAt3mUy0MvB5ysN 5dfMX7x0p4aLBqtodjBHKTuPAkR7ObUj+MJs6ngoQZw4YcyMYwzv//A/juacUg4yjBT7UpUmY 2SkeG7uFsFh1A6F80t80DvIGEw1Xf96B7H3rjaBTddBh5gf7QrZNFSuJHHWSrSDoWSaPmmQy0 7UdGiGa1um49QHhvyVIhVMTfLMhUCTq8HxV6g1QsbEcgCmlhYoxppjEOlx5pLZ8c6kK9y//i6 wg2q4prbam3m5y7tW7QAlfc6TtBdgPaipbp7OKjrtyOWTOqHxZCpL0R8uVuyMbN/wMfPg9vRa psMp4HOEvoLwfvCqyTF/P71cFOahbFtQZmPLhsWSTVH0CPEKaJNxWZUJhueXGjY0CYl6pSvyU BC6rLaPWKPsssUeWhPIrBSWLtatUSaQqb/p5xBBd0ouA6lCZMA6CekpfGp+GcPncE0SOTr3TP 58OHzlg X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31495 Cc: Eli Zaretskii , Tom Tromey , Noam Postavsky , 31495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Tino Calancha writes: Hi Tino, this discussion is going offtopic. Maybe you write a bug report? > I find-grep 'zsh' in doc, and I found from tramp manual just this: > When using zsh on remote hosts, disable zsh line editor because zsh > uses left-hand side and right-hand side prompts in parallel. Add the > following line to @file{~/.zshrc}: > > @example > [[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return > @end example > > Then, I add such line in > ~/.zsh > and > /root/.zsh > sudo ln -sf /bin/zsh /bin/sh > emacs -Q > C-x d /sudo::/bin > ;; I don't get prompt for root password Please eval (setq tramp-verbose 10) prior opening your remote directory. There will be a Tramp debug buffer; pls show it. Out of curiosity, why do you edit ~/.zsh and /root/.zsh? The manual speaks about ~/.zshrc (I'm not an zsh user, so I don't know what I'm speaking about). Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 21 03:45:02 2018 Received: (at 31495) by debbugs.gnu.org; 21 Jun 2018 07:45:02 +0000 Received: from localhost ([127.0.0.1]:58196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVuH8-00059J-5w for submit@debbugs.gnu.org; Thu, 21 Jun 2018 03:45:02 -0400 Received: from mail-pf0-f171.google.com ([209.85.192.171]:43795) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVuH6-00058u-Py for 31495@debbugs.gnu.org; Thu, 21 Jun 2018 03:45:01 -0400 Received: by mail-pf0-f171.google.com with SMTP id y8-v6so1099554pfm.10 for <31495@debbugs.gnu.org>; Thu, 21 Jun 2018 00:45:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=pOhyaUjJSq+7ijPb2FU9UGDzFZKVyOlqBEZXR984Wtw=; b=QfvVSI7aPdcZer3GZg/FIoa/ARVR+TLADrd65yQSXneeqX5L4vXel8boksirx2sDsZ NUO/7LOAzEKPen+VCdvHHofVmm3oNCu7UW1vzX+PeKu1RyXU1N0EzlTH5do3dMhgvQOx JI5USWpFnBTZMaBgXpqk1m2sHWHKEvS9iwI7+/fFWyKrKglCnNH94vq0rQ/15LeUd7yh 3RM6h4e3iTV17oNur8HPecrH8HYdwy3WODFcKgGgOwGsyRbPDs2XVJyS/E6p2Z9f9qW5 xxcY8wBZH/NM3Luh5rhjrrFf+WFt8Isjt85w2E+gXUj1p+Uo9wQfiISG7iQnOMsrk/nJ 1iQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=pOhyaUjJSq+7ijPb2FU9UGDzFZKVyOlqBEZXR984Wtw=; b=OjfPAurebYT26qwsBWVPfLLIXxLXNiivqwpORHtBXCyEb+2rkixXjvgr6Gykj1A3MF coimtp7x8xCxspgvi0bG/messWll5UoynQL9wPnx6CoBcofgtGWrqkxEdfgj00PNguJ6 RWVzubJvh6Me1Bv3G74QFlZnIBHgOLc06qNLEBXjOZOBP/+e6DPs4qTZeE+m17IXa/q3 3UE7SCr86qQnE9ztDtZxE8DWmPmiDitao4qOALhnvvl0IsD5SrExAKGGd4iAhsQbSzhN riVkVGU9tFFR5jh9Jlad45umqqSN9btba7DLhMHfI8Ua6UJ1lr69tOsUXlZcsPe5RYI/ l9SQ== X-Gm-Message-State: APt69E0+z2oWzWRxgUnBiczyHKim1oFxOBbsZUJAdOWOPxuHTV7nYdh9 Rf6Yv4KvLki0vtHnD33JPLg= X-Google-Smtp-Source: ADUXVKK4i52pNE37cCbh3IDdwsVqOUO2MlEfrdqvdqj7cdSbBW0f2UoJQkMdOpV9MO9F01oVaeFG9g== X-Received: by 2002:a63:8c5:: with SMTP id 188-v6mr5436948pgi.97.1529567094883; Thu, 21 Jun 2018 00:44:54 -0700 (PDT) Received: from calancha-pc.dy.bbexcite.jp (228.225.128.101.dy.bbexcite.jp. [101.128.225.228]) by smtp.gmail.com with ESMTPSA id v78-v6sm9524164pfd.64.2018.06.21.00.44.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 00:44:54 -0700 (PDT) From: Tino Calancha X-Google-Original-From: Tino Calancha Date: Thu, 21 Jun 2018 16:44:50 +0900 (JST) X-X-Sender: calancha@calancha-pc.dy.bbexcite.jp To: Michael Albinus Subject: Re: bug#31495: 26.1; filename completion -vs- "*" In-Reply-To: <8736xg1ua2.fsf@gmx.de> Message-ID: References: <877eo1gern.fsf@tromey.com> <87wovzzs8c.fsf@gmail.com> <87d0wlskh8.fsf@gmail.com> <87h8lxpn7l.fsf@gmx.de> <87lgb87vs5.fsf@calancha-pc.dy.bbexcite.jp> <8736xg1ua2.fsf@gmx.de> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31495 Cc: 31495@debbugs.gnu.org, Eli Zaretskii , Tom Tromey , Noam Postavsky , Tino Calancha X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Thu, 21 Jun 2018, Michael Albinus wrote: > this discussion is going offtopic. Maybe you write a bug report? You are right. Sorry for that. >> I find-grep 'zsh' in doc, and I found from tramp manual just this: >> When using zsh on remote hosts, disable zsh line editor because zsh >> uses left-hand side and right-hand side prompts in parallel. Add the >> following line to @file{~/.zshrc}: >> >> @example >> [[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return >> @end example >> >> Then, I add such line in >> ~/.zsh >> and >> /root/.zsh >> sudo ln -sf /bin/zsh /bin/sh >> emacs -Q >> C-x d /sudo::/bin >> ;; I don't get prompt for root password > > Please eval (setq tramp-verbose 10) prior opening your remote > directory. There will be a Tramp debug buffer; pls show it. This must go in the new bug report whenever it exists. > Out of curiosity, why do you edit ~/.zsh and /root/.zsh? The manual > speaks about ~/.zshrc (I'm not an zsh user, so I don't know what I'm > speaking about). Good catch! My typo in the email. I actually created: ~/.zshrc /root/.zshrc > Best regards, Michael My best regards too, Tino From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 22 11:40:36 2020 Received: (at 31495) by debbugs.gnu.org; 22 Aug 2020 15:40:36 +0000 Received: from localhost ([127.0.0.1]:51025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9VdA-0001dL-Uz for submit@debbugs.gnu.org; Sat, 22 Aug 2020 11:40:33 -0400 Received: from quimby.gnus.org ([95.216.78.240]:37060) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9Vd4-0001cx-5W for 31495@debbugs.gnu.org; Sat, 22 Aug 2020 11:40:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=D0tzNBfuuisa5NBWuT5ujt3lRYqGEa8hDS2cNuc+/Ic=; b=m3hYR7gG6YnpRUuSfOIAil2H2I MwxsAZzPm0Jv6EzFs/vC6WxM0U4L+DBUpiLuvyoRFbuJbwzcW6JyQspNtrII/9xyRrp26RFrccKtU +DAW4hDWFcn4G7rSevK1OXwHA8q4Oy1KQxwMie2aGt//Cqw5OCAOd0onvASer1ZbZkX0=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k9Vco-0000cr-QT; Sat, 22 Aug 2020 17:40:19 +0200 From: Lars Ingebrigtsen To: Tino Calancha Subject: Re: bug#31495: 26.1; filename completion -vs- "*" References: <877eo1gern.fsf@tromey.com> <87wovzzs8c.fsf@gmail.com> X-Now-Playing: Nettle's _Firecamp Stories Remixes_: "Timeblind - Spaced Anguish Edit" Date: Sat, 22 Aug 2020 17:40:08 +0200 In-Reply-To: <87wovzzs8c.fsf@gmail.com> (Tino Calancha's message of "Sat, 19 May 2018 22:32:03 +0900") Message-ID: <87d03ik7tz.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Tino Calancha writes: > We could even let the user enable globstar in those shells supporting > it but having it disable by default (e.g. bash). > For instance, following patch: > > commit 1c1116e6a6ed369db63ddf00865f04f68 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31495 Cc: Eli Zaretskii , Tom Tromey , Michael Albinus , 31495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Tino Calancha writes: > We could even let the user enable globstar in those shells supporting > it but having it disable by default (e.g. bash). > For instance, following patch: > > commit 1c1116e6a6ed369db63ddf00865f04f687579e71 > Author: Tino Calancha > Date: Sat May 19 21:57:42 2018 +0900 > > Handle globstar in dired > > Allow user to enable globstar when the shell support > it and disable it by default (e.g. bash). > * lisp/dired.el (dired-maybe-use-globstar): New user option. > (dired-enable-globstar-in-shell): New variable. > (dired-insert-directory): if `dired-maybe-use-globstar' is > non-nil and the shell supports globstar, then enable it. > > * doc/emacs/dired.texi: Document feature. > ; * etc/NEWS: Add entry. Makes sense to me, so I've applied it to Emacs 28. Only very lightly tested, though. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 22 11:40:39 2020 Received: (at control) by debbugs.gnu.org; 22 Aug 2020 15:40:39 +0000 Received: from localhost ([127.0.0.1]:51029 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9VdG-0001de-Rm for submit@debbugs.gnu.org; Sat, 22 Aug 2020 11:40:39 -0400 Received: from quimby.gnus.org ([95.216.78.240]:37078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9VdC-0001d9-5A for control@debbugs.gnu.org; Sat, 22 Aug 2020 11:40:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=EnJramSTuRL7mUWsZLZSC0x2eF0y65ZUYPGx0we75dM=; b=Zcxl2bOVh59C+xeSWH1V4YcPvz ZlYt9uiIpCH4Lfo3+aXgsyAPvKInJtiSfuqRQp2pIZbNqNRox/rjVaDLxEOI7aNLDsMgYAG+5IY8z jyXfMFW/BsoCCQjehKGiv9K/6hfFvLzBOAxr6Uabqi0uA2eybnf4ySw++5F13wpl0fYQ=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k9Vd1-0000d1-Cj for control@debbugs.gnu.org; Sat, 22 Aug 2020 17:40:25 +0200 Date: Sat, 22 Aug 2020 17:40:22 +0200 Message-Id: <87blj2k7tl.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #31495 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 31495 fixed close 31495 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 31495 fixed close 31495 28.1 quit From unknown Mon Jun 23 04:15:34 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 20 Sep 2020 11:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator