From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 19 06:18:29 2015 Received: (at submit) by debbugs.gnu.org; 19 Jan 2015 11:18:29 +0000 Received: from localhost ([127.0.0.1]:32769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YDALk-0007nn-Ks for submit@debbugs.gnu.org; Mon, 19 Jan 2015 06:18:29 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45987) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YDALh-0007nR-Rq for submit@debbugs.gnu.org; Mon, 19 Jan 2015 06:18:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDALb-0001Oz-5a for submit@debbugs.gnu.org; Mon, 19 Jan 2015 06:18:20 -0500 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,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDALb-0001Ov-2L for submit@debbugs.gnu.org; Mon, 19 Jan 2015 06:18:19 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47693) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDALZ-0004P1-Hq for bug-gnu-emacs@gnu.org; Mon, 19 Jan 2015 06:18:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDALU-0001MZ-E1 for bug-gnu-emacs@gnu.org; Mon, 19 Jan 2015 06:18:17 -0500 Received: from mail-pa0-x22c.google.com ([2607:f8b0:400e:c03::22c]:36025) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDALU-0001MK-2x for bug-gnu-emacs@gnu.org; Mon, 19 Jan 2015 06:18:12 -0500 Received: by mail-pa0-f44.google.com with SMTP id et14so38315558pad.3 for ; Mon, 19 Jan 2015 03:18:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=eVzWqOk3OpJDoHwbPrdplXJFmolBxwtApEhVh7uYTjM=; b=RHGgKsa2qR1hz1/CdkxMsjH0X3GOdO3/1c0x5hZDY+XS1VPLXU+Gz+0HGwClIiXNXZ EW0ljrN+WqWjchlOfN8g6Hhip0hTamgr/RN6TSr+3CGGeGSyA6tGKliwUmNYQD7IHfvF MPoBD85uWhAt/UaM99NRVGy9M/qB5YZE5GQ/QiS3Or5RZ1ASNjsodCaU+Ov50aG3JlY5 lwl4iprmvuQzPDRpGGSlhJiJrWmOr1AHSAWIdEccgWz/wfm7uPW5DnT/mA5CRY31q/wQ r39saa7f6ay9SJeXhGa21sJo/UdGlpm4m3uF9PuyNTPzN/jDisN6p4wn/TwajdUILYBm QR8Q== X-Received: by 10.66.100.202 with SMTP id fa10mr43641422pab.36.1421666291126; Mon, 19 Jan 2015 03:18:11 -0800 (PST) Received: from dark-horse ([2601:9:4b81:ae00:692b:2afa:2f3:2b41]) by mx.google.com with ESMTPSA id d12sm4148117pbu.64.2015.01.19.03.18.10 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 19 Jan 2015 03:18:10 -0800 (PST) From: Samer Masterson To: bug-gnu-emacs@gnu.org Subject: 25.0.50; eshell: extended directory syntax ("...") does not complete Date: Mon, 19 Jan 2015 03:19:46 -0800 Message-ID: <8761c3586l.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.0 (----) 1. "emacs -Q" 2. M-x eshell 3. "cd .../" 4. Press tab Bug: "No completions found" is echoed, even though completions exist. Exptected: Eshell should have attempted to complete a directory name. In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2014-11-18 on samer-dark-horse Repository revision: b59998eb5b9c4e6e142b530604539c54028acb8d Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04.1 LTS Configured using: `configure --prefix=/home/samer/local' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Apropos Minor modes in effect: magit-auto-revert-mode: t shell-dirtrack-mode: t diff-auto-refine-mode: t global-flycheck-mode: t show-paren-mode: t flx-ido-mode: t guide-key-mode: t popwin-mode: t projectile-global-mode: t projectile-mode: t ido-everywhere: t tooltip-mode: t global-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 buffer-read-only: t column-number-mode: t line-number-mode: t Recent messages: Quit No completions of .../sou Quit [3 times] Mark saved where search started Quit [2 times] Mark saved where search started Mark saved where search started [2 times] Quit [2 times] Load-path shadows: /home/samer/.emacs.d/elpa/emms-20141104.1238/tq hides /home/samer/local/share/emacs/25.0.50/lisp/emacs-lisp/tq Features: (shadow emacsbug apropos ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff company-go sh-script smie executable make-mode rect eieio-opt conf-mode align js json cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs tabify man go-stacktracer magit-blame cal-move parse-time org-element org-rmail org-mhe org-irc org-info org-gnus org-docview org-bibtex bibtex org-bbdb org-w3m org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint ob-core ob-eval org-compat org-macs org-loaddefs cal-menu calendar cal-loaddefs deft wid-edit find-dired debug windmove pp tramp-cache pcmpl-unix em-unix em-term term disp-table ehelp em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl em-basic em-banner em-alias esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode esh-util cap-words superword subword misc hippie-exp ace-jump-mode company-files company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-capf company-cmake company-ropemacs company-xcode company-clang company-semantic company-eclim company-template company-css company-nxml company-bbdb company imenu dired-aux magit-key-mode magit view tramp tramp-compat tramp-loaddefs trampver shell pcomplete autorevert filenotify git-rebase-mode git-commit-mode log-edit pcvs-util add-log epa-file gnutls network-stream starttls tls mailalias mail-extr sort misearch multi-isearch mule-util server vc-git diff-mode easy-mmode remember flycheck help-mode rx subr-x pcase edmacro kmacro mu4e mu4e-speedbar speedbar sb-image ezimage dframe mu4e-main mu4e-view epa derived epg browse-url mu4e-headers mu4e-compose mu4e-draft mu4e-actions rfc2368 smtpmail sendmail mu4e-mark mu4e-message html2text mu4e-proc mu4e-utils doc-view jka-compr image-mode mu4e-lists mu4e-about mu4e-vars message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader hl-line mu4e-meta ctags paren flx-ido flx saveplace smex go-eldoc go-mode url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap find-file ffap url-parse auth-source eieio byte-opt bytecomp byte-compile cl-extra cconv eieio-core gnus-util time-date mm-util mail-prsvr password-cache url-vars etags guide-key face-remap popwin projectile advice ibuf-ext ibuffer pkg-info find-func lisp-mnt epl grep thingatpt help-fns cl-macs cl gv cl-loaddefs cl-lib ag vc-svn compile comint ansi-color ring ido s ucs-normalize dash dired go-mode-autoloads info easymenu package epg-config tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 1192127 163442) (symbols 48 47172 21) (miscs 40 5332 3731) (strings 32 144171 31134) (string-bytes 1 4576347) (vectors 16 104892) (vector-slots 8 2394117 39473) (floats 8 12733 3169) (intervals 56 97212 433) (buffers 976 239) (heap 1024 173448 62749)) From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 25 05:11:18 2021 Received: (at 19626) by debbugs.gnu.org; 25 Aug 2021 09:11:18 +0000 Received: from localhost ([127.0.0.1]:45709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIowI-0005xc-7o for submit@debbugs.gnu.org; Wed, 25 Aug 2021 05:11:18 -0400 Received: from mail-wm1-f45.google.com ([209.85.128.45]:33743) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIowG-0005xC-Dj for 19626@debbugs.gnu.org; Wed, 25 Aug 2021 05:11:16 -0400 Received: by mail-wm1-f45.google.com with SMTP id j14-20020a1c230e000000b002e748b9a48bso3266050wmj.0 for <19626@debbugs.gnu.org>; Wed, 25 Aug 2021 02:11:16 -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=xCXYvF3Wvb6EdaG7KZf8myw2V6tl5IduVpUC4Zfm+VE=; b=RleltXl1nFjBcns8p/sHvISGuBW9cpr8xPEbI5Qm9E4UXmkSk8wHlW9MzOevKLFCQe iQxSOa0tuParW1s8joHUQqEj6+2WSzNm6aEq25EOHbwHsGKN+jcJk6lH8Xi9JfUT6dmU cMAfUBYHQlCpEj3Whxw6Zp032x5U7vqAXSIEwDIApYUlNty2MDi/oRAxENni8FZ9/cj7 mc6RWOXy5YoWu/E0jmk1cH3ALqNcAIdvaROI//qeRq5IOip5Dli/T0Nwfc/nSarwMAuC uUVJlGTTCknwnOA+arx0HZnzHWeuPo6VMwQMO3FyQIK4dMOZHNsLtnHMdTQcwf10qHhx erjg== 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=xCXYvF3Wvb6EdaG7KZf8myw2V6tl5IduVpUC4Zfm+VE=; b=P7+7m+2ZCYWWAVuH0QD7AHMSxfqKoknezOfBqgJMEbg5Io6zaXv8uljKtmvEsKnu3K J+p9SCKRp7vMikmh17tRLfd8A1zvsB6HmtFg/sn9ZXfs2DhPvYoTO18IDyKgfO8a75SP qpBwdDNb5mKPcUSlsnynkBZGt4rMs/R1kThk3K8TbcxAxVy3W+F35yVsS2Tib3sTO7Yi aAXaZc4ZPCzVbTiYeR3SsIbFJz15bSryclOjOS0XBEZjD+0MTBqopR4ixpcznXapjIxL illVV/c+KPn8RUeyne9uJWlgD+GNLTFLTD4aqGFabC+qDmwKi1C4aw8j1KOa0m2ctbOD yjnw== X-Gm-Message-State: AOAM533V1IE9cxAEUyM8fNkkdMUzbFF4c4elLbPHdVtOv2gLJ8Vdu5eq atLqD/bME3keH/3B4HkYp3cWFVWs2g3AfqlD X-Google-Smtp-Source: ABdhPJzYo0hK567V0ediPNe3kIoz4u4HaA621wCQIr94bOTF/0PeajSeopzoZnpoVM7iux2YVJy4Og== X-Received: by 2002:a1c:1fc2:: with SMTP id f185mr8384589wmf.100.1629882670624; Wed, 25 Aug 2021 02:11:10 -0700 (PDT) Received: from cnu407c2zx.nsn-intra.net (109-178-141-246.pat.ren.cosmote.net. [109.178.141.246]) by smtp.gmail.com with ESMTPSA id c14sm1088154wme.6.2021.08.25.02.11.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Aug 2021 02:11:10 -0700 (PDT) From: "Michalis V." X-Google-Original-From: "Michalis V." To: Samer Masterson Subject: Re: bug#19626: 25.0.50; eshell: extended directory syntax ("...") does not complete References: <8761c3586l.fsf@gmail.com> Date: Wed, 25 Aug 2021 12:10:58 +0300 In-Reply-To: <8761c3586l.fsf@gmail.com> (Samer Masterson's message of "Mon, 19 Jan 2015 03:19:46 -0800") Message-ID: <87czq1risd.fsf@cnu407c2zx.nsn-intra.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 19626 Cc: 19626@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 (-) Samer Masterson writes: > 1. "emacs -Q" > 2. M-x eshell > 3. "cd .../" > 4. Press tab > Bug: "No completions found" is echoed, even though completions exist. > Exptected: Eshell should have attempted to complete a directory name. > > > > In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) > of 2014-11-18 on samer-dark-horse i cannot reproduce this in 28.0.50. Basically what i did was mkdir ... then repeat the steps above. Eshell autocompletes .../ fine, even adding another similar directory will bring up the dialog: Click on a completion to select it. In this buffer, type RET to select the completion near point. Possible completions are: ..../ .../ thanks, Michalis From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 25 07:19:56 2021 Received: (at 19626) by debbugs.gnu.org; 25 Aug 2021 11:19:56 +0000 Received: from localhost ([127.0.0.1]:45916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIqwm-0000Dd-1T for submit@debbugs.gnu.org; Wed, 25 Aug 2021 07:19:56 -0400 Received: from quimby.gnus.org ([95.216.78.240]:35372) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIqwj-0000DP-Ht for 19626@debbugs.gnu.org; Wed, 25 Aug 2021 07:19:54 -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=4dxdwZh6LItmNJGM9lu+9RENJqddrzZVYx59ANKbJ24=; b=LL/gJ3MhJyGzV+ZfC2QpwoLohv 1wq2ffe+1VeCnLp5QV8IpFcCuAsEln65Y9a+FHwAqfxMRtYADWb11IVj7t3Xg/Om6EEqQeOpAOpJc E3WkEqLke31SRHrhQ/tLXV/t1uF0mfw6z57l7Q13wRCD89k6ZpAaaHRFKTjzgD9eyAXY=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mIqwZ-0003M6-2z; Wed, 25 Aug 2021 13:19:47 +0200 From: Lars Ingebrigtsen To: "Michalis V." Subject: Re: bug#19626: 25.0.50; eshell: extended directory syntax ("...") does not complete References: <8761c3586l.fsf@gmail.com> <87czq1risd.fsf@cnu407c2zx.nsn-intra.net> Date: Wed, 25 Aug 2021 13:19:42 +0200 In-Reply-To: <87czq1risd.fsf@cnu407c2zx.nsn-intra.net> (Michalis V.'s message of "Wed, 25 Aug 2021 12:10:58 +0300") Message-ID: <87czq1lqk1.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: "Michalis V." writes: > i cannot reproduce this in 28.0.50. Basically what i did was > > mkdir ... > > then repeat the steps above. Eshell autocompletes .../ fine, even adding > another similar directory will bring up the [...] 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: -2.3 (--) X-Debbugs-Envelope-To: 19626 Cc: Samer Masterson , 19626@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: -3.3 (---) "Michalis V." writes: > i cannot reproduce this in 28.0.50. Basically what i did was > > mkdir ... > > then repeat the steps above. Eshell autocompletes .../ fine, even adding > another similar directory will bring up the dialog: I think eshell has an "extended directory" concept where "..." is supposed to expand to (I think) all parent directories? So there isn't supposed to be any directory literally called "...". I think. But I'm not overly familiar with eshell. Let's see... Yup: (defun eshell-expand-multiple-dots (filename) "Convert `...' to `../..', `....' to `../../..', etc.. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 27 11:28:36 2021 Received: (at 19626) by debbugs.gnu.org; 27 Aug 2021 15:28:36 +0000 Received: from localhost ([127.0.0.1]:52762 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJdmW-0001BH-9a for submit@debbugs.gnu.org; Fri, 27 Aug 2021 11:28:36 -0400 Received: from mail-wm1-f41.google.com ([209.85.128.41]:55176) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJdmR-0001Ar-73 for 19626@debbugs.gnu.org; Fri, 27 Aug 2021 11:28:35 -0400 Received: by mail-wm1-f41.google.com with SMTP id g138so4132222wmg.4 for <19626@debbugs.gnu.org>; Fri, 27 Aug 2021 08:28: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=02LRMBAnIWnz9jSDrud8mGHV/GNC8ycQA83WEb5l5YA=; b=Tp9sYRezUUZeDWK43JGQIObU+lyF6KnbEFpF5C9TxGTqvQ19eEO1tPUPoFu3rEqrsS 6DF77f2cH5Qq04ISAgPxDr0lU7HTxG+uhBiQY+xfGJkWl/7C9+jqskJCiG160uW6YcZs IMek2sJ39Lw1qs5gcrgWXVuhnNtjbazmG1JR5nADb0UOzShCdPjVR/9ddsDCj3u0mzIh F+StrciTE+YBK+QN9kdeele4KkjdKdcfn+m03xLY4K1yJrvhP+3/ouxXocVcqVBKCVsH U9GQ/qSIZnzDiTXkK/nFZnIgT0aVuMLEaGNp0D1vzCAu7RWc9ftmRwbDeQViRuSYbt7v +o/g== 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=02LRMBAnIWnz9jSDrud8mGHV/GNC8ycQA83WEb5l5YA=; b=kpIsSI15Xp8a/vIZ83e4Pktn0SL0lYPFd5LaSf5PmpiOj/n4HQGj+9jEyYg3QRpj+J cBemgr0JkYZFrZyNlN+MBHkeD7oeXPDHzOcB67+k5ijY0dVnHPbyvN/t9484Z/0k78D4 V4ANLP7Ilnf71ypRUghGKiQkzBTdZ24HMqWtjaKGXsRlGjMy8fNVWaXTkCB/3DMY0TcI YMz+CF4r0PrrH7RNbwO1SODp8ACv5J8s035/yjxH+YMXoSTV3D3OGhU5KIjn2ILIZCMW vS1iYnl5UqB7a8N0dLHThwaTddQbrP+B+YJ4lX/gQwZW11bL1YKcZbaNmlCUx5qVaPq3 iDKg== X-Gm-Message-State: AOAM5334mIVOO7oIvUOoXPLwofVJfvK9a0QeXzciiMkBAoLbR/kyAg7S ISzYQxR5z2p06jxL5+LqqVWsf3KYwmoB6A== X-Google-Smtp-Source: ABdhPJyqNtQAOEUWDmi5VPu6fbOC5cmL78zhv5tCSfdPO/XQPK4HFj9jhxG/uzrKngJhma+2Ej8uiw== X-Received: by 2002:a1c:9d95:: with SMTP id g143mr9657965wme.187.1630078105359; Fri, 27 Aug 2021 08:28:25 -0700 (PDT) Received: from cnu407c2zx.nsn-intra.net (109-178-220-50.pat.ren.cosmote.net. [109.178.220.50]) by smtp.gmail.com with ESMTPSA id u27sm6948528wru.2.2021.08.27.08.28.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Aug 2021 08:28:24 -0700 (PDT) From: "Michalis V." X-Google-Original-From: "Michalis V." To: Lars Ingebrigtsen Subject: Re: bug#19626: 25.0.50; eshell: extended directory syntax ("...") does not complete References: <8761c3586l.fsf@gmail.com> <87czq1risd.fsf@cnu407c2zx.nsn-intra.net> <87czq1lqk1.fsf@gnus.org> Date: Fri, 27 Aug 2021 18:28:16 +0300 In-Reply-To: <87czq1lqk1.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 25 Aug 2021 13:19:42 +0200") Message-ID: <87sfyu29gv.fsf@cnu407c2zx.nsn-intra.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 19626 Cc: "Michalis V." , Samer Masterson , 19626@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 (-) --=-=-= Content-Type: text/plain Lars Ingebrigtsen writes: > "Michalis V." writes: > >> i cannot reproduce this in 28.0.50. Basically what i did was >> >> mkdir ... >> >> then repeat the steps above. Eshell autocompletes .../ fine, even adding >> another similar directory will bring up the dialog: > > I think eshell has an "extended directory" concept where "..." is > supposed to expand to (I think) all parent directories? So there isn't > supposed to be any directory literally called "...". > > I think. But I'm not overly familiar with eshell. Let's see... Yup: > > (defun eshell-expand-multiple-dots (filename) > "Convert `...' to `../..', `....' to `../../..', etc.. oops, i wasn't even aware of this eshell feature, sorry about that! I did some debugging into how completion works and it looks like eshell-complete-parse-arguments in em-cmpl.el is responsible for parsing the arguments before passing them to the generic(?) completion code. Attached is a patch that adds an additional check at the end of said defun that will substitute any .../ dots into the proper expanded form before returning. There are some other defuns that are called by eshell-complete-parse-arguments, namely eshell-parse-argument(s) but i *think* this substitution is better suited (read: safer) to be placed to their caller. Note that this works for "cd .../", completion for other operations like cp do not work currently (most probably because cd has its own implementation in eshell/cd?) i'm not sure whether this is the correct solution to this problem so if there are any concerns please let me know and i'll continue the digging thanks, Michalis --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=em-cmpl.patch diff --git a/lisp/eshell/em-cmpl.el b/lisp/eshell/em-cmpl.el index cbfe0b8154..2352dac7e7 100644 --- a/lisp/eshell/em-cmpl.el +++ b/lisp/eshell/em-cmpl.el @@ -377,8 +377,12 @@ eshell-complete-parse-arguments (cl-assert (eq (car result) 'quote)) (cadr result)) arg))) - (if (numberp val) - (setq val (number-to-string val))) + (cond ((numberp val) + (setq val (number-to-string val))) + ;; expand .../ etc that only eshell understands to + ;; standard ../../ + ((string-match "\\.\\.\\.+/" val) + (setq val (eshell-expand-multiple-dots val)))) (or val ""))) args) posns))) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 27 12:47:50 2021 Received: (at 19626) by debbugs.gnu.org; 27 Aug 2021 16:47:50 +0000 Received: from localhost ([127.0.0.1]:52847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJf18-0001BH-58 for submit@debbugs.gnu.org; Fri, 27 Aug 2021 12:47:50 -0400 Received: from quimby.gnus.org ([95.216.78.240]:33984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJf13-00014P-7a for 19626@debbugs.gnu.org; Fri, 27 Aug 2021 12:47:45 -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=5Q5tfaW+PbIeifdMu9IaohDK4CebdYzuH/tNHwWeKVQ=; b=kM73I9pUdjnBorZ770qvlPmVaj njz3M41xh1KeseTfsYl0ObsDNDhdUqg7rTkuJmw3hTlvVAN4BMWDC7T5+J2Y5JXwUtogBLH5jY4lM BQuxhxAX07ucvNysF62Mpo7lZwlMivVSg6o1/ce+UpaPJWAy4sm9YaSKuUNBPEK6nZ1k=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJf0s-00058X-P3; Fri, 27 Aug 2021 18:47:35 +0200 From: Lars Ingebrigtsen To: "Michalis V." Subject: Re: bug#19626: 25.0.50; eshell: extended directory syntax ("...") does not complete References: <8761c3586l.fsf@gmail.com> <87czq1risd.fsf@cnu407c2zx.nsn-intra.net> <87czq1lqk1.fsf@gnus.org> <87sfyu29gv.fsf@cnu407c2zx.nsn-intra.net> Date: Fri, 27 Aug 2021 18:47:27 +0200 In-Reply-To: <87sfyu29gv.fsf@cnu407c2zx.nsn-intra.net> (Michalis V.'s message of "Fri, 27 Aug 2021 18:28:16 +0300") Message-ID: <87lf4mn8bk.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: "Michalis V." writes: >> (defun eshell-expand-multiple-dots (filename) >> "Convert `...' to `../..', `....' to `../../..', etc.. > > oops, i wasn't even aware of this eshell feature, sorry about that! 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: -2.3 (--) X-Debbugs-Envelope-To: 19626 Cc: Samer Masterson , 19626@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: -3.3 (---) "Michalis V." writes: >> (defun eshell-expand-multiple-dots (filename) >> "Convert `...' to `../..', `....' to `../../..', etc.. > > oops, i wasn't even aware of this eshell feature, sorry about that! I didn't know about it either. :-) > i'm not sure whether this is the correct solution to this problem so if > there are any concerns please let me know and i'll continue the digging Thanks. Looking at the code and the patch, that does seem right the right solution, so I've now pushed it to Emacs 28. (But I'm not really very familiar with eshell.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 27 12:47:59 2021 Received: (at control) by debbugs.gnu.org; 27 Aug 2021 16:47:59 +0000 Received: from localhost ([127.0.0.1]:52850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJf1H-0001FW-FU for submit@debbugs.gnu.org; Fri, 27 Aug 2021 12:47:59 -0400 Received: from quimby.gnus.org ([95.216.78.240]:33998) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJf1C-0001Ar-OR for control@debbugs.gnu.org; Fri, 27 Aug 2021 12:47:54 -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=kH5tzkMzLGnYP4QzzulL7hkoG3xbsr6tH8/aYmjyLT4=; b=XpsL99+qnq+xpuL+IyIIvWNBV9 qHx708teHu238a0qtkSfUyRtH84vfr5fidvkknTjgMXG20L9Fnl43u/T0pxunLyhtYci7YsyKH3+u 6QutENDM9dQ5Rm7BjRLPmufHPdInodHWQXCCHsWmBMfJpCgdaSLrPCsioP9NPV1mw7nM=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJf14-00058r-Mi for control@debbugs.gnu.org; Fri, 27 Aug 2021 18:47:44 +0200 Date: Fri, 27 Aug 2021 18:47:42 +0200 Message-Id: <87k0k6n8b5.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #19626 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: close 19626 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: -2.3 (--) 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: -3.3 (---) close 19626 28.1 quit From unknown Thu Sep 11 16:39:17 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 25 Sep 2021 11:24:05 +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