From unknown Fri Aug 15 16:25:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9793: 24.0.90; Unwanted tramp connection on eshell completion. Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Oct 2011 04:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9793 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 9793@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.131900008213131 (code B ref -1); Wed, 19 Oct 2011 04:55:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Oct 2011 04:54:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGOAr-0003Pj-GM for submit@debbugs.gnu.org; Wed, 19 Oct 2011 00:54:42 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGOAo-0003PV-9u for submit@debbugs.gnu.org; Wed, 19 Oct 2011 00:54:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGO9i-0001WD-LB for submit@debbugs.gnu.org; Wed, 19 Oct 2011 00:53:32 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:57749) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGO9i-0001W9-JZ for submit@debbugs.gnu.org; Wed, 19 Oct 2011 00:53:30 -0400 Received: from eggs.gnu.org ([140.186.70.92]:57973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGO9f-0004KD-PH for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 00:53:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGO9c-0001Tu-DN for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 00:53:27 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:33778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGO9c-0001OY-46 for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 00:53:24 -0400 Received: by bkbzu5 with SMTP id zu5so1936060bkb.0 for ; Tue, 18 Oct 2011 21:53:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:user-agent:mime-version :content-type:content-transfer-encoding; bh=x0jqWBg5/BmPPkaBYrW7gS93RTdjU3InFttN2luR9RQ=; b=aP/l5R0opP5Nc9kA+IZaSfWkLA4dynTpVm/2dRcOCbgGAZ0gNggLR3nNglAtS2IeO+ 58Pu1j3dtpf8yddVDgPU0HYCYkEiMILCEEklWKBmYtgegu2r3ny7fI60hjzLqXvBvBeJ sv/5oIu2XjRsXxtdLaadHnXlKItYPEwNlcKhU= Received: by 10.223.6.25 with SMTP id 25mr8732251fax.14.1319000002756; Tue, 18 Oct 2011 21:53:22 -0700 (PDT) Received: from thierry-MM061 (87.77.197.77.rev.sfr.net. [77.197.77.87]) by mx.google.com with ESMTPS id b16sm7643993fao.7.2011.10.18.21.53.20 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 18 Oct 2011 21:53:21 -0700 (PDT) From: Thierry Volpiatto Date: Wed, 19 Oct 2011 06:53:17 +0200 Message-ID: <87r529a8g2.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.2 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.2 (-----) Hi all, Eshell completion (pcomplete) fail when a hostname starting with "t" is present in "~/.ssh/config". To reproduce: Create such a shortcut in "~/.ssh/config" say "toto". Start eshell. enter: cd \t and try to complete with (we want to complete to /tmp here) In GNU Emacs 24.0.90.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2011-10-18 on thierry-MM061 Windowing system distributor `The X.Org Foundation', version 11.0.11004000 configured using `configure '--with-x-toolkit=3Dlucid' '--without-gconf' '= --without-gsettings'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: fr_FR.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Org-Agenda Week Diary Ddl Grid Minor modes in effect: TeX-PDF-mode: t auto-image-file-mode: t show-paren-mode: t display-time-mode: t recentf-mode: t savehist-mode: t minibuffer-depth-indicate-mode: t diff-auto-refine-mode: t anything-completion-mode: t anything-dired-mode: Enable anything completion in Dired functions. Bindings affected are C, R, S, H. This is deprecated for Emacs24+ users, use `ac-mode' instead. shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-g s M-n =20 =20 =20 =20 C-j =20 =20 =20 =20 =20 =20 C-h f =20 =20 =20 q C-z=20 l =20 =20 =20 =20 M-x c o m p l e =20 =20 d e M-x =20 =20 ( d e f M-x c o m p l e t i o n =20 C-< C-x k =20 M-x l i s p =20 =20 =20 =20 =20 C-h f=20 C-z C-g C-z 1 =20 =20 =20 =20 C-c a a C-x C-=C2=B2 M-x r e p o < return> Recent messages: Preparing diary...done Preparing diary...done Preparing diary...done Preparing diary...done Preparing diary...done Preparing diary...done Preparing diary...done Invalid face reference: quote [181 times] Invalid face reference: quote [125 times] Load-path shadows: None found. Features: (shadow epa-mail emacsbug flow-fill smiley gnus-cite mail-extr qp gnus-async gnus-bcklg gnus-ml nndraft nnmh utf-7 nnimap utf7 nnml nnfolder netrc network-stream starttls tls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache gnus-dired debug find-func cal-iso preview prv-emacs tex-buf reftex-vcr reftex-dcr reftex-auc reftex imenu reftex-vars font-latex latex tex-style tex latexenc conf-mode newcomment vc-git xgit-dvc xgit xgit-annotate rect dvc-annotate xgit-log dvc-revlist vc-rcs sh-script xhg-dvc xhg xhg-annotate xhg-mq xhg-log dvc-diff uniquify dvc-fileinfo bzr-core xdarcs-core xgit-core xhg-core xmtn-minimal naquadah-theme em-unix em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl em-basic esh-opt em-banner em-alias esh-var esh-io esh-cmd esh-ext esh-proc esh-groups eshell esh-module esh-mode align-let server slime-xref-browser slime-banner slime-tramp slime-asdf slime-fancy slime-fontifying-fu slime-package-fu slime-references slime-scratch slime-presentations slime-fuzzy slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc slime-parse slime-repl image-file newsticker newst-treeview newst-plainview newst-reader newst-ticker newst-backend xdvi-search em-term term ehelp electric pdbtrack whitespace paren time winner mime-w3m mime eword-decode mel path-util mime-parse std11 luna mime-def mcharset mcs-20 mcs-e20 pces pces-e20 pces-20 broken pcustom poe w3m-load help-mode view avoid tramp-cache tramp-sh recentf tree-widget savehist googlecl google-maps google-maps-static google-maps-geocode google-maps-base json simple-call-tree el-expectations el-mock csv2org iedit zop-to-char mule-util alist pym static apel-ver product elscreen smallurl mm-url xml-weather rectangle-utils tv-utils pcvs pcvs-parse pcvs-info pcvs-defs pcvs-util auto-document autodoc mb-depth ioccur moz cl-info slime hideshow hyperspec slime-autoloads ledger-config ledger esh-arg esh-util woman man esh-toggle em-xtra flymake ipython python-mode info-look ansi-color executable eldoc-eval eldoc no-word regex-tool dired-extension image-dired yaoddmuse skeleton sgml-mode emms-mplayer-config emms-playlist-limit emms-volume emms-volume-amixer emms-i18n emms-history emms-score emms-stream-info emms-metaplaylist-mode emms-bookmarks emms-lastfm-client parse-time emms-cue emms-mode-line-icon emms-browser sort emms-playlist-sort emms-last-played emms-player-xine emms-player-mpd tq emms-playing-time emms-lyrics emms-url hl-line emms-tag-editor emms-mark emms-mode-line emms-cache emms-info-ogginfo emms-info-mp3info emms-playlist-mode emms-player-vlc emms-player-mplayer emms-info emms-streams later-do emms-source-playlist emms-source-file emms-player-simple emms-setup emms emms-compat dvc-init bzr-gnus tla-gnus xgit-gnus xhg-gnus gnus-art mm-uu mml2015 mm-view mml-smime smime dig nnir gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range gnus-win gnus gnus-ems nnheader dvc-gnus tla-core tla-autoconf tla-defs dvc-log vc vc-dispatcher dvc-unified dvc-tips add-log diff-mode ediff-merg ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff dvc-autoloads dvc-core dvc-lisp dvc-buffers dvc-ui dvc-register dvc-utils dvc-emacs ewoc dvc-defs dvc-site htmlize-hack htmlize muse-colors muse-docbook muse-texinfo texnfo-upd texinfo muse-latex muse-html muse-xml-common muse-wiki cus-edit cus-start cus-load muse-publish muse-project muse-protocols muse-regexps muse muse-nested-tags muse-mode muse-autoloads org-config-thierry org-crypt cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs vc-hg org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp ob-exp org-exp-blocks org-info org-gnus org-docview org-bibtex bibtex org-bbdb org-agenda appt diary-lib diary-loaddefs org-annotation-helper org-capture org-mks remember org-remember org-datetree config-w3m w3m doc-view jka-compr image-mode timezone w3m-hist w3m-fb w3m-ems wid-edit w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util addressbook-bookmark message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader firefox-protocol bookmark-uzbl-handler bookmark-firefox-handler bookmark-extensions org ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete org-list org-faces org-compat org-entities org-macs noutline outline cal-menu calendar cal-loaddefs bookmark pp init-anything-thierry anything-describe-keybindings anything-delicious anything-mercurial anything-stgit anything-config browse-url rx anything-match-plugin xml url url-proxy url-privacy url-expand url-methods url-history url-cookie url-util url-parse url-vars mailcap grep compile tramp tramp-compat shell pcomplete comint ring format-spec tramp-loaddefs dired-x dired-aux dired regexp-opt ffap thingatpt anything warnings epa-file epa derived epg epg-config auth-source eieio byte-opt bytecomp byte-compile cconv macroexp assoc gnus-util time-date mm-util mail-prsvr password-cache usage-memo eev-thierry edmacro kmacro iterator eev-all eev-mini-steps eev-browse-url eev-langs eev-compose eev-glyphs disp-table eev-insert eev-steps eev-bounded eev easy-mmode advice help-fns advice-preload cl w3m-wget preview-latex tex-site auto-loads info easymenu tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-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 loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting font-render-setting x-toolkit x multi-tty emacs) --=20 Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997=20 From unknown Fri Aug 15 16:25:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9793: 24.0.90; Unwanted tramp connection on eshell completion. Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Oct 2011 02:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9793 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Thierry Volpiatto Cc: 9793@debbugs.gnu.org Received: via spool by 9793-submit@debbugs.gnu.org id=B9793.131907798611817 (code B ref 9793); Thu, 20 Oct 2011 02:34:01 +0000 Received: (at 9793) by debbugs.gnu.org; 20 Oct 2011 02:33:06 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGiRO-00034Y-4X for submit@debbugs.gnu.org; Wed, 19 Oct 2011 22:33:06 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGiRM-000344-EM for 9793@debbugs.gnu.org; Wed, 19 Oct 2011 22:33:04 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EADKHn05MCqLO/2dsb2JhbABEqQKBBoFuAQEEAVYjBQsLNBIUGA0kiBO2MIgbBKEshEU X-IronPort-AV: E=Sophos;i="4.69,375,1315195200"; d="scan'208";a="143203803" Received: from 76-10-162-206.dsl.teksavvy.com (HELO ceviche.home) ([76.10.162.206]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 19 Oct 2011 22:31:48 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 24F82660B6; Wed, 19 Oct 2011 22:31:45 -0400 (EDT) From: Stefan Monnier Message-ID: References: <87r529a8g2.fsf@gmail.com> Date: Wed, 19 Oct 2011 22:31:45 -0400 In-Reply-To: <87r529a8g2.fsf@gmail.com> (Thierry Volpiatto's message of "Wed, 19 Oct 2011 06:53:17 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) > Eshell completion (pcomplete) fail when a hostname starting with "t" is > present in "~/.ssh/config". I have a "Host trex" entry in my ~/.ssh/config. > Start eshell. > enter: cd \t and try to complete with (we want to complete to /tmp > here) % emacs -Q M-x eshell cd /t TAB just gives me /tmp without any Tramp messages. IOW I can't reproduce it. Stefan From unknown Fri Aug 15 16:25:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9793: 24.0.90; Unwanted tramp connection on eshell completion. Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Oct 2011 18:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9793 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 9793@debbugs.gnu.org Received: via spool by 9793-submit@debbugs.gnu.org id=B9793.131913649513702 (code B ref 9793); Thu, 20 Oct 2011 18:49:01 +0000 Received: (at 9793) by debbugs.gnu.org; 20 Oct 2011 18:48:15 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGxf3-0003Yv-UN for submit@debbugs.gnu.org; Thu, 20 Oct 2011 14:48:15 -0400 Received: from mail-bw0-f44.google.com ([209.85.214.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGxf1-0003Yk-Q6 for 9793@debbugs.gnu.org; Thu, 20 Oct 2011 14:48:13 -0400 Received: by bkas6 with SMTP id s6so3562373bka.3 for <9793@debbugs.gnu.org>; Thu, 20 Oct 2011 11:46:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=ABwa0OtprLbK0Mcz/A+OWD3tcmlh5mmEwvqe34MDUYM=; b=WVkwaBambRof3M+hGszjEKT7PgRzWLqXpGBXXyGJBf38YQnXMfLL7OCS+IUJght+kN cSthQAn8zeDqRW/IqD24kh45d7lmwPL+2bwIeguqeNuLEBGxp7nUoGHctbC/0JfyLIoW jeHts2p5PiIa2JRgOCmf95c7KRs6VD5XAjT1o= Received: by 10.223.14.134 with SMTP id g6mr19750524faa.11.1319136416137; Thu, 20 Oct 2011 11:46:56 -0700 (PDT) Received: from thierry-MM061 (87.77.197.77.rev.sfr.net. [77.197.77.87]) by mx.google.com with ESMTPS id v17sm17181792fai.18.2011.10.20.11.46.54 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 20 Oct 2011 11:46:55 -0700 (PDT) From: Thierry Volpiatto References: <87r529a8g2.fsf@gmail.com> Date: Thu, 20 Oct 2011 20:46:52 +0200 In-Reply-To: (Stefan Monnier's message of "Wed, 19 Oct 2011 22:31:45 -0400") Message-ID: <871uu7lcv7.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.1 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.1 (----) Stefan Monnier writes: >> Eshell completion (pcomplete) fail when a hostname starting with "t" is >> present in "~/.ssh/config". > > I have a "Host trex" entry in my ~/.ssh/config. > >> Start eshell. >> enter: cd \t and try to complete with (we want to complete to /tmp >> here) > > % emacs -Q > M-x eshell > cd /t TAB > just gives me /tmp without any Tramp messages. > > IOW I can't reproduce it. Because you didn't load tramp. Connect first to your "trex" or anything else, then close this, and run eshell and retry the above. For me too, if i start emacs -Q and i go strait to eshell, all work fine. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 From unknown Fri Aug 15 16:25:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9793: 24.0.90; Unwanted tramp connection on eshell completion. Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Oct 2011 20:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9793 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Thierry Volpiatto Cc: 9793@debbugs.gnu.org Received: via spool by 9793-submit@debbugs.gnu.org id=B9793.131914348724078 (code B ref 9793); Thu, 20 Oct 2011 20:45:02 +0000 Received: (at 9793) by debbugs.gnu.org; 20 Oct 2011 20:44:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGzTr-0006GH-9J for submit@debbugs.gnu.org; Thu, 20 Oct 2011 16:44:47 -0400 Received: from relais.videotron.ca ([24.201.245.36]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGzTo-0006G9-Uc for 9793@debbugs.gnu.org; Thu, 20 Oct 2011 16:44:45 -0400 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from ceviche.home ([24.48.59.205]) by VL-VM-MR003.ip.videotron.ca (Oracle Communications Messaging Exchange Server 7u4-22.01 64bit (built Apr 21 2011)) with ESMTP id <0LTD008H5TIXLEH0@VL-VM-MR003.ip.videotron.ca> for 9793@debbugs.gnu.org; Thu, 20 Oct 2011 16:42:33 -0400 (EDT) Received: by ceviche.home (Postfix, from userid 20848) id 82ADF660B6; Thu, 20 Oct 2011 16:43:33 -0400 (EDT) From: Stefan Monnier Message-id: References: <87r529a8g2.fsf@gmail.com> <871uu7lcv7.fsf@gmail.com> Date: Thu, 20 Oct 2011 16:43:33 -0400 In-reply-to: <871uu7lcv7.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Because you didn't load tramp. > Connect first to your "trex" or anything else, then close this, and run > eshell and retry the above. > For me too, if i start emacs -Q and i go strait to eshell, all work fine. Ah, I see, I can reproduce it now: % emacs -Q M-x load-library RET tramp RET M-x eshell RET cd /t TAB At that point, Tramp tried to connect to `tic' and to `tequila' (the hosts mentioned in ~/.ssh/known_hosts that start with `t'). Note that I'm not sure that ~/.ssh/config is relevant, because it only seems to show entries from my ~/.ssh/known_hosts. Stefan From unknown Fri Aug 15 16:25:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9793: 24.0.90; Unwanted tramp connection on eshell completion. Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Oct 2011 21:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9793 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 9793@debbugs.gnu.org Received: via spool by 9793-submit@debbugs.gnu.org id=B9793.131914554227113 (code B ref 9793); Thu, 20 Oct 2011 21:20:02 +0000 Received: (at 9793) by debbugs.gnu.org; 20 Oct 2011 21:19:02 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RH010-000737-4B for submit@debbugs.gnu.org; Thu, 20 Oct 2011 17:19:02 -0400 Received: from mail-bw0-f44.google.com ([209.85.214.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RH00w-00072l-KI for 9793@debbugs.gnu.org; Thu, 20 Oct 2011 17:19:00 -0400 Received: by bkas6 with SMTP id s6so3685009bka.3 for <9793@debbugs.gnu.org>; Thu, 20 Oct 2011 14:17:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=JCem46eIdh53JK+BB2IbvNu3fXduYeFRA+R8fkzOXrk=; b=Ujeig1qFQWz34G4U2Ttr8OCyPxjNsrFwj80FuBaicPJ6WJD3CWTu2vC7A47CIyDb2h aTECul3Pjy5nO+9FZ7l992KifCym578fcgyFvQ45hQROuuDzCbCZQbCPArcF5au7FysC ha/j7iKmacI+tGGtWrnMIt99veZEgP9TUPzAM= Received: by 10.223.76.201 with SMTP id d9mr20350518fak.12.1319145462124; Thu, 20 Oct 2011 14:17:42 -0700 (PDT) Received: from thierry-MM061 (87.77.197.77.rev.sfr.net. [77.197.77.87]) by mx.google.com with ESMTPS id k26sm17889182fab.12.2011.10.20.14.17.40 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 20 Oct 2011 14:17:41 -0700 (PDT) From: Thierry Volpiatto References: <87r529a8g2.fsf@gmail.com> <871uu7lcv7.fsf@gmail.com> Date: Thu, 20 Oct 2011 23:17:38 +0200 In-Reply-To: (Stefan Monnier's message of "Thu, 20 Oct 2011 16:43:33 -0400") Message-ID: <87wrbzjrbh.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.0 (----) Stefan Monnier writes: >> Because you didn't load tramp. >> Connect first to your "trex" or anything else, then close this, and run >> eshell and retry the above. >> For me too, if i start emacs -Q and i go strait to eshell, all work fine. > > Ah, I see, I can reproduce it now: > > % emacs -Q > M-x load-library RET tramp RET > M-x eshell RET > cd /t TAB > > At that point, Tramp tried to connect to `tic' and to `tequila' (the > hosts mentioned in ~/.ssh/known_hosts that start with `t'). > > Note that I'm not sure that ~/.ssh/config is relevant, because it only > seems to show entries from my ~/.ssh/known_hosts. Yes you are right, didn't think at this one. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 From unknown Fri Aug 15 16:25:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9793: 24.0.90; Unwanted tramp connection on eshell completion. Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Oct 2011 09:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9793 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 9793@debbugs.gnu.org, Thierry Volpiatto Received: via spool by 9793-submit@debbugs.gnu.org id=B9793.13192764792419 (code B ref 9793); Sat, 22 Oct 2011 09:42:01 +0000 Received: (at 9793) by debbugs.gnu.org; 22 Oct 2011 09:41:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHY4s-0000cy-QT for submit@debbugs.gnu.org; Sat, 22 Oct 2011 05:41:19 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RHY4r-0000ci-7l for 9793@debbugs.gnu.org; Sat, 22 Oct 2011 05:41:18 -0400 Received: (qmail invoked by alias); 22 Oct 2011 09:39:50 -0000 Received: from p57BB86B3.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.134.179] by mail.gmx.net (mp052) with SMTP; 22 Oct 2011 11:39:50 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18QYsUc/XIQpsv1L7g+q+QFCVldQvclFytbpjqHVh IT6/YAvv2CK7Uv From: Michael Albinus References: <87r529a8g2.fsf@gmail.com> <871uu7lcv7.fsf@gmail.com> Date: Sat, 22 Oct 2011 11:39:45 +0200 In-Reply-To: (Stefan Monnier's message of "Thu, 20 Oct 2011 16:43:33 -0400") Message-ID: <87wrbxjrfi.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Stefan Monnier writes: >> Because you didn't load tramp. >> Connect first to your "trex" or anything else, then close this, and run >> eshell and retry the above. >> For me too, if i start emacs -Q and i go strait to eshell, all work fine. > > Ah, I see, I can reproduce it now: > > % emacs -Q > M-x load-library RET tramp RET > M-x eshell RET > cd /t TAB > > At that point, Tramp tried to connect to `tic' and to `tequila' (the > hosts mentioned in ~/.ssh/known_hosts that start with `t'). `pcomplete-dirs' uses `file-directory-p' as predicate, which is applied to all completion candidates. The following patch ought to fix it: --8<---------------cut here---------------start------------->8--- *** /home/albinus/src/emacs/lisp/pcomplete.el.~106161~ 2011-10-22 11:31:11.996458454 +0200 --- /home/albinus/src/emacs/lisp/pcomplete.el 2011-10-22 11:30:20.796204566 +0200 *************** *** 948,954 **** (defsubst pcomplete-dirs (&optional regexp) "Complete amongst a list of directories." ! (pcomplete-entries regexp 'file-directory-p)) ;; generation of completion lists --- 948,957 ---- (defsubst pcomplete-dirs (&optional regexp) "Complete amongst a list of directories." ! (pcomplete-entries regexp ! (lambda (dir) ! (or (file-remote-p (expand-file-name dir)) ! (file-directory-p dir))))) ;; generation of completion lists --8<---------------cut here---------------end--------------->8--- Comments? > Stefan Best regards, Michael. From unknown Fri Aug 15 16:25:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9793: 24.0.90; Unwanted tramp connection on eshell completion. Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Oct 2011 10:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9793 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 9793@debbugs.gnu.org, Stefan Monnier Received: via spool by 9793-submit@debbugs.gnu.org id=B9793.13192800867738 (code B ref 9793); Sat, 22 Oct 2011 10:42:01 +0000 Received: (at 9793) by debbugs.gnu.org; 22 Oct 2011 10:41:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHZ12-00020h-R0 for submit@debbugs.gnu.org; Sat, 22 Oct 2011 06:41:26 -0400 Received: from mail-bw0-f44.google.com ([209.85.214.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHZ10-00020U-6I for 9793@debbugs.gnu.org; Sat, 22 Oct 2011 06:41:23 -0400 Received: by bkas6 with SMTP id s6so5377352bka.3 for <9793@debbugs.gnu.org>; Sat, 22 Oct 2011 03:39:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=pV4Mkl9NIrR3nfSqzxkVjtvXAQ5I9oAsWKTtmSyHWxM=; b=x6OLlBFPJSpaO03w7NTUv0EV8mw4/d1sriahM/Jtu8qJ8DUV455+KmOBKBvjfeKhC+ 9LjZabR17O+Z/b1F3bN7uoPyaIfjm7+2JGW6QiCI1wXDErfxm+fbD9s9aFd7g1INHUKL 0JAAb1+gbbn++vyXvcUd5AHbixoX081AKKxao= Received: by 10.223.63.206 with SMTP id c14mr30727542fai.7.1319279996860; Sat, 22 Oct 2011 03:39:56 -0700 (PDT) Received: from thierry-MM061 (87.77.197.77.rev.sfr.net. [77.197.77.87]) by mx.google.com with ESMTPS id o16sm28069393fag.21.2011.10.22.03.39.54 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 22 Oct 2011 03:39:55 -0700 (PDT) From: Thierry Volpiatto References: <87r529a8g2.fsf@gmail.com> <871uu7lcv7.fsf@gmail.com> <87wrbxjrfi.fsf@gmx.de> Date: Sat, 22 Oct 2011 12:39:52 +0200 In-Reply-To: <87wrbxjrfi.fsf@gmx.de> (Michael Albinus's message of "Sat, 22 Oct 2011 11:39:45 +0200") Message-ID: <87sjmle2dj.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.0 (----) Michael Albinus writes: > Stefan Monnier writes: > >>> Because you didn't load tramp. >>> Connect first to your "trex" or anything else, then close this, and run >>> eshell and retry the above. >>> For me too, if i start emacs -Q and i go strait to eshell, all work fine. >> >> Ah, I see, I can reproduce it now: >> >> % emacs -Q >> M-x load-library RET tramp RET >> M-x eshell RET >> cd /t TAB >> >> At that point, Tramp tried to connect to `tic' and to `tequila' (the >> hosts mentioned in ~/.ssh/known_hosts that start with `t'). > > `pcomplete-dirs' uses `file-directory-p' as predicate, which is applied > to all completion candidates. The following patch ought to fix it: > > *** /home/albinus/src/emacs/lisp/pcomplete.el.~106161~ 2011-10-22 11:31:11.996458454 +0200 > --- /home/albinus/src/emacs/lisp/pcomplete.el 2011-10-22 11:30:20.796204566 +0200 > *************** > *** 948,954 **** > > (defsubst pcomplete-dirs (&optional regexp) > "Complete amongst a list of directories." > ! (pcomplete-entries regexp 'file-directory-p)) > > ;; generation of completion lists > > --- 948,957 ---- > > (defsubst pcomplete-dirs (&optional regexp) > "Complete amongst a list of directories." > ! (pcomplete-entries regexp > ! (lambda (dir) > ! (or (file-remote-p (expand-file-name dir)) > ! (file-directory-p dir))))) > > ;; generation of completion lists > > > Comments? Work fine here, thank you very much. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 From unknown Fri Aug 15 16:25:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9793: 24.0.90; Unwanted tramp connection on eshell completion. Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Oct 2011 17:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9793 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 9793@debbugs.gnu.org, Thierry Volpiatto Received: via spool by 9793-submit@debbugs.gnu.org id=B9793.131939214615039 (code B ref 9793); Sun, 23 Oct 2011 17:50:01 +0000 Received: (at 9793) by debbugs.gnu.org; 23 Oct 2011 17:49:06 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RI2AU-0003uW-2D for submit@debbugs.gnu.org; Sun, 23 Oct 2011 13:49:06 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RI2AR-0003u1-PZ for 9793@debbugs.gnu.org; Sun, 23 Oct 2011 13:49:04 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq8FAE1SpE5MCqLO/2dsb2JhbABDpwqCB4EGgW4BAQQBJy8jBQsLNBIUGA0kiBO1DYM2hQoEoTuERQ X-IronPort-AV: E=Sophos;i="4.69,394,1315195200"; d="scan'208";a="144006198" Received: from 76-10-162-206.dsl.teksavvy.com (HELO pastel.home) ([76.10.162.206]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 23 Oct 2011 13:47:31 -0400 Received: by pastel.home (Postfix, from userid 20848) id D8ECA58B4A; Sun, 23 Oct 2011 13:47:30 -0400 (EDT) From: Stefan Monnier Message-ID: References: <87r529a8g2.fsf@gmail.com> <871uu7lcv7.fsf@gmail.com> <87wrbxjrfi.fsf@gmx.de> Date: Sun, 23 Oct 2011 13:47:30 -0400 In-Reply-To: <87wrbxjrfi.fsf@gmx.de> (Michael Albinus's message of "Sat, 22 Oct 2011 11:39:45 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) > `pcomplete-dirs' uses `file-directory-p' as predicate, which is applied > to all completion candidates. The following patch ought to fix it: > --8<---------------cut here---------------start------------->8--- > *** /home/albinus/src/emacs/lisp/pcomplete.el.~106161~ 2011-10-22 11:31:11.996458454 +0200 > --- /home/albinus/src/emacs/lisp/pcomplete.el 2011-10-22 11:30:20.796204566 +0200 > *************** > *** 948,954 **** > (defsubst pcomplete-dirs (&optional regexp) > "Complete amongst a list of directories." > ! (pcomplete-entries regexp 'file-directory-p)) > ;; generation of completion lists > --- 948,957 ---- > (defsubst pcomplete-dirs (&optional regexp) > "Complete amongst a list of directories." > ! (pcomplete-entries regexp > ! (lambda (dir) > ! (or (file-remote-p (expand-file-name dir)) > ! (file-directory-p dir))))) > ;; generation of completion lists > --8<---------------cut here---------------end--------------->8--- > Comments? This looks like a workaround rather than a fix. Also, I notice that in `shell' (rather than `eshell') the problem does not occur. So I'd like to better understand what's going on. Stefan From unknown Fri Aug 15 16:25:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9793: 24.0.90; Unwanted tramp connection on eshell completion. Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Oct 2011 12:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9793 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 9793@debbugs.gnu.org, Thierry Volpiatto Received: via spool by 9793-submit@debbugs.gnu.org id=B9793.131945921724320 (code B ref 9793); Mon, 24 Oct 2011 12:27:02 +0000 Received: (at 9793) by debbugs.gnu.org; 24 Oct 2011 12:26:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIJcG-0006KD-OH for submit@debbugs.gnu.org; Mon, 24 Oct 2011 08:26:57 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RIJcD-0006Jz-RO for 9793@debbugs.gnu.org; Mon, 24 Oct 2011 08:26:55 -0400 Received: (qmail invoked by alias); 24 Oct 2011 12:25:15 -0000 Received: from p57BB99DC.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.153.220] by mail.gmx.net (mp056) with SMTP; 24 Oct 2011 14:25:15 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19mHUJ9RsdmuZ5UflhYKkLiSd/O/6NwfTxrW8gnEM iFNVGQM+AkIcUz From: Michael Albinus References: <87r529a8g2.fsf@gmail.com> <871uu7lcv7.fsf@gmail.com> <87wrbxjrfi.fsf@gmx.de> Date: Mon, 24 Oct 2011 14:25:11 +0200 In-Reply-To: (Stefan Monnier's message of "Sun, 23 Oct 2011 13:47:30 -0400") Message-ID: <87y5wamva0.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Stefan Monnier writes: > This looks like a workaround rather than a fix. Also, I notice that in > `shell' (rather than `eshell') the problem does not occur. So I'd like > to better understand what's going on. In shell just the local file names are taken for completion. I don't know how this is implemented, maybe via pcompletion tables? In eshell, all file names are good for completion, also remote ones. This is valid, because "cd /sudo::" is a valid command in eshell. But this makes the trouble with the completion predicate `file-directory-p'. > Stefan Best regards, Michael. From unknown Fri Aug 15 16:25:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9793: 24.0.90; Unwanted tramp connection on eshell completion. Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Oct 2011 14:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9793 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 9793@debbugs.gnu.org, Thierry Volpiatto Received: via spool by 9793-submit@debbugs.gnu.org id=B9793.13194661362654 (code B ref 9793); Mon, 24 Oct 2011 14:23:01 +0000 Received: (at 9793) by debbugs.gnu.org; 24 Oct 2011 14:22:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RILPs-0000gk-Ga for submit@debbugs.gnu.org; Mon, 24 Oct 2011 10:22:16 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RILPq-0000gX-0h for 9793@debbugs.gnu.org; Mon, 24 Oct 2011 10:22:15 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EALxzpU5MCqLO/2dsb2JhbABDqRGBBoFuAQEEAVYjBQsLNBIUGA0kiBOzYohABKE7hEU X-IronPort-AV: E=Sophos;i="4.69,398,1315195200"; d="scan'208";a="144118255" Received: from 76-10-162-206.dsl.teksavvy.com (HELO pastel.home) ([76.10.162.206]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 24 Oct 2011 10:20:36 -0400 Received: by pastel.home (Postfix, from userid 20848) id 16DED58B4A; Mon, 24 Oct 2011 10:20:36 -0400 (EDT) From: Stefan Monnier Message-ID: References: <87r529a8g2.fsf@gmail.com> <871uu7lcv7.fsf@gmail.com> <87wrbxjrfi.fsf@gmx.de> <87y5wamva0.fsf@gmx.de> Date: Mon, 24 Oct 2011 10:20:36 -0400 In-Reply-To: <87y5wamva0.fsf@gmx.de> (Michael Albinus's message of "Mon, 24 Oct 2011 14:25:11 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) >> This looks like a workaround rather than a fix. Also, I notice that in >> `shell' (rather than `eshell') the problem does not occur. So I'd like >> to better understand what's going on. > In shell just the local file names are taken for completion. I don't > know how this is implemented, maybe via pcompletion tables? Both use pretty much the same pcomplete code. I think I finally figured out what is the difference between the two cases: if you set pcomplete-file-ignore and pcomplete-dir-ignore in shell-mode like it is set in eshell, the same problem shows up. So what happens is: - in eshell-mode - file-name-all-completions returns '("tic:" "tequila:" "tmp/") - completion-file-name-table then checks the predicate (which combines file-directory-p with regexp matching to avoid CVS and a few other directories). - this calls (file-directory-p "tequila:") in the "/" dir, which triggers Tramp. - in shell-mode - file-name-all-completions returns '("tic:" "tequila:" "tmp/") - completion-file-name-table then checks the predicate (file-directory-p) - file-directory-p is *not* called because completion-file-name-table handles it specially (just checks the presence of a terminating "/"). I still don't understand why in eshell, tramp-maybe-open-connection is called within the following backtrace: tramp-completion-file-name-handler(file-directory-p "/tequila:") file-directory-p("tequila:") whereas when I manually call (let ((default-directory "/")) (file-directory-p "tequila:")) tramp-maybe-open-connection is called within the following backtrace: tramp-completion-file-name-handler(expand-file-name "tequila:" "/") file-directory-p("tequila:") > In eshell, all file names are good for completion, also remote > ones. This is valid, because "cd /sudo::" is a valid command in > eshell. In shell-mode completion also understands Tramp file names (yup, that's a bug, we should probably default comint-file-name-prefix to "/:/"), so that's not the problem. > But this makes the trouble with the completion predicate > `file-directory-p'. Yup, I think we should somehow make it so Tramp can say (file-directory-p "/tequila:") => t without trying to connect to tequila (after all, even if we can't connect to tequila, this is still a "directory", just one we currently can't access). Stefan From unknown Fri Aug 15 16:25:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9793: 24.0.90; Unwanted tramp connection on eshell completion. Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Oct 2011 10:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9793 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 9793@debbugs.gnu.org, Thierry Volpiatto Received: via spool by 9793-submit@debbugs.gnu.org id=B9793.131953937930748 (code B ref 9793); Tue, 25 Oct 2011 10:43:02 +0000 Received: (at 9793) by debbugs.gnu.org; 25 Oct 2011 10:42:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIeTB-0007zr-Gs for submit@debbugs.gnu.org; Tue, 25 Oct 2011 06:42:58 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RIeT4-0007zY-R4 for 9793@debbugs.gnu.org; Tue, 25 Oct 2011 06:42:52 -0400 Received: (qmail invoked by alias); 25 Oct 2011 10:41:05 -0000 Received: from p57BB99F3.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.153.243] by mail.gmx.net (mp011) with SMTP; 25 Oct 2011 12:41:05 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/uLyVM1Evufz7pdVG9s6jITzccoiR3NQIq4OHtRu rpjQM2/CpSp/az From: Michael Albinus References: <87r529a8g2.fsf@gmail.com> <871uu7lcv7.fsf@gmail.com> <87wrbxjrfi.fsf@gmx.de> <87y5wamva0.fsf@gmx.de> Date: Tue, 25 Oct 2011 12:41:01 +0200 In-Reply-To: (Stefan Monnier's message of "Mon, 24 Oct 2011 10:20:36 -0400") Message-ID: <87fwihgxqa.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Stefan Monnier writes: > Both use pretty much the same pcomplete code. > > I think I finally figured out what is the difference between the two > cases: if you set pcomplete-file-ignore and pcomplete-dir-ignore > in shell-mode like it is set in eshell, the same problem shows up. > > So what happens is: > - in eshell-mode > - file-name-all-completions returns '("tic:" "tequila:" "tmp/") > - completion-file-name-table then checks the predicate (which combines > file-directory-p with regexp matching to avoid CVS and a few other > directories). > - this calls (file-directory-p "tequila:") in the "/" dir, which > triggers Tramp. > - in shell-mode > - file-name-all-completions returns '("tic:" "tequila:" "tmp/") > - completion-file-name-table then checks the predicate (file-directory-p) > - file-directory-p is *not* called because completion-file-name-table > handles it specially (just checks the presence of a terminating "/"). Thanks for the explanation. I start to understand (honestly, all this programmable completion is out of my understanding). > I still don't understand why in eshell, tramp-maybe-open-connection is > called within the following backtrace: > tramp-completion-file-name-handler(file-directory-p "/tequila:") > file-directory-p("tequila:") > whereas when I manually call > (let ((default-directory "/")) (file-directory-p "tequila:")) > tramp-maybe-open-connection is called within the following backtrace: > tramp-completion-file-name-handler(expand-file-name "tequila:" "/") > file-directory-p("tequila:") Tramp has some code to guess whether it is in completion mode. Check of `non-essential' is one proof, checking the last keyboard input (being TAB, or not) is another one. If Tramp finds out that it is in completion mode, it suppresses some remote actions, like expand-file-name. Since your code (let ((default-directory "/")) (file-directory-p "tequila:")) does not show an evidence of the completion mode, all remote actions are performed. The actions for `file-directory-p' are never been suppressed, that's why Tramp performs them also when being in completion mode. >> In eshell, all file names are good for completion, also remote >> ones. This is valid, because "cd /sudo::" is a valid command in >> eshell. > > In shell-mode completion also understands Tramp file names (yup, that's > a bug, we should probably default comint-file-name-prefix to "/:/"), so > that's not the problem. Better not. There are still needed checks in shell.el, which are applied to remote files. `comint-file-name-prefix keeps the remote part of those files. See for example Bug#6764. >> But this makes the trouble with the completion predicate >> `file-directory-p'. > > Yup, I think we should somehow make it so Tramp can say > (file-directory-p "/tequila:") => t > without trying to connect to tequila (after all, even if we can't > connect to tequila, this is still a "directory", just one we currently > can't access). That was the intention of my patch :-) Return t in case of remote files. Inside Tramp it could be behave such a way when it detects it is in completion mode. That means, when `non-essential' is set to t. Shall I do it this way? > Stefan Best regards, Michael. From unknown Fri Aug 15 16:25:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9793: 24.0.90; Unwanted tramp connection on eshell completion. Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Oct 2011 12:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9793 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 9793@debbugs.gnu.org, Thierry Volpiatto Received: via spool by 9793-submit@debbugs.gnu.org id=B9793.13195450969291 (code B ref 9793); Tue, 25 Oct 2011 12:19:01 +0000 Received: (at 9793) by debbugs.gnu.org; 25 Oct 2011 12:18:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIfxQ-0002Pn-4o for submit@debbugs.gnu.org; Tue, 25 Oct 2011 08:18:16 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIfxO-0002Pb-56 for 9793@debbugs.gnu.org; Tue, 25 Oct 2011 08:18:14 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAOinpk5MCrTo/2dsb2JhbABDqRSBBoFuAQEEAVYjBQsLNBIUGA0kiBO0WYhDBKE9hEU X-IronPort-AV: E=Sophos;i="4.69,404,1315195200"; d="scan'208";a="144273252" Received: from 76-10-180-232.dsl.teksavvy.com (HELO ceviche.home) ([76.10.180.232]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 25 Oct 2011 08:16:31 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 12AF466158; Tue, 25 Oct 2011 08:16:31 -0400 (EDT) From: Stefan Monnier Message-ID: References: <87r529a8g2.fsf@gmail.com> <871uu7lcv7.fsf@gmail.com> <87wrbxjrfi.fsf@gmx.de> <87y5wamva0.fsf@gmx.de> <87fwihgxqa.fsf@gmx.de> Date: Tue, 25 Oct 2011 08:16:31 -0400 In-Reply-To: <87fwihgxqa.fsf@gmx.de> (Michael Albinus's message of "Tue, 25 Oct 2011 12:41:01 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) > Tramp has some code to guess whether it is in completion mode. Yuck! > Check of `non-essential' is one proof, Actually, no. non-essential could be used for other things than completion. > checking the last keyboard input (being TAB, or not) is another one. Yuck! > If Tramp finds out that it is in completion mode, it suppresses some > remote actions, like expand-file-name. Since your code > (let ((default-directory "/")) (file-directory-p "tequila:")) > does not show an evidence of the completion mode, all remote actions are > performed. OK, so now I know why the two behaved differently. > The actions for `file-directory-p' are never been suppressed, that's why > Tramp performs them also when being in completion mode. Good. >> In shell-mode completion also understands Tramp file names (yup, that's >> a bug, we should probably default comint-file-name-prefix to "/:/"), so >> that's not the problem. > Better not. There are still needed checks in shell.el, which are applied > to remote files. `comint-file-name-prefix keeps the remote part of those > files. I do not propose to remove the variable. Only to make it default to "/:/" (instead of just ""). >>> But this makes the trouble with the completion predicate >>> `file-directory-p'. >> Yup, I think we should somehow make it so Tramp can say >> (file-directory-p "/tequila:") => t >> without trying to connect to tequila (after all, even if we can't >> connect to tequila, this is still a "directory", just one we currently >> can't access). > That was the intention of my patch :-) > Return t in case of remote files. But that's not what I suggest. I suggest to "blindly" return t for /: only (as well as things like /ssh:: I guess), but not for /: where we'd still connect and test whether it's indeed a directory. > Inside Tramp it could be behave such a way when it detects it is in > completion mode. That means, when `non-essential' is set to t. Shall I > do it this way? I suggest to do that regardless of whether we're in completion mode or not. Stefan From unknown Fri Aug 15 16:25:07 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Thierry Volpiatto Subject: bug#9793: closed (Re: bug#9793: 24.0.90; Unwanted tramp connection on eshell completion.) Message-ID: References: <8739ehgrgz.fsf@gmx.de> <87r529a8g2.fsf@gmail.com> X-Gnu-PR-Message: they-closed 9793 X-Gnu-PR-Package: emacs Reply-To: 9793@debbugs.gnu.org Date: Tue, 25 Oct 2011 12:59:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1319547543-13514-1" This is a multi-part message in MIME format... ------------=_1319547543-13514-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #9793: 24.0.90; Unwanted tramp connection on eshell completion. which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 9793@debbugs.gnu.org. --=20 9793: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D9793 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1319547543-13514-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 9793-done) by debbugs.gnu.org; 25 Oct 2011 12:58:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIgZv-0003Uq-SZ for submit@debbugs.gnu.org; Tue, 25 Oct 2011 08:58:04 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RIgZt-0003UC-4U for 9793-done@debbugs.gnu.org; Tue, 25 Oct 2011 08:58:02 -0400 Received: (qmail invoked by alias); 25 Oct 2011 12:56:16 -0000 Received: from p57BB99F3.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.153.243] by mail.gmx.net (mp005) with SMTP; 25 Oct 2011 14:56:16 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+8lxxtjza8j6Ho9owCCS/ujXdHSqLe2OwTHSbiMZ iGtEvhcamHdWc6 From: Michael Albinus To: Stefan Monnier Subject: Re: bug#9793: 24.0.90; Unwanted tramp connection on eshell completion. References: <87r529a8g2.fsf@gmail.com> <871uu7lcv7.fsf@gmail.com> <87wrbxjrfi.fsf@gmx.de> <87y5wamva0.fsf@gmx.de> <87fwihgxqa.fsf@gmx.de> Date: Tue, 25 Oct 2011 14:56:12 +0200 In-Reply-To: (Stefan Monnier's message of "Tue, 25 Oct 2011 08:16:31 -0400") Message-ID: <8739ehgrgz.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 9793-done Cc: 9793-done@debbugs.gnu.org, Thierry Volpiatto X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Stefan Monnier writes: >> Tramp has some code to guess whether it is in completion mode. > > Yuck! > >> Check of `non-essential' is one proof, > > Actually, no. non-essential could be used for other things than completion. Yes. But in the context of Tramp it is a good indicator. > But that's not what I suggest. I suggest to "blindly" return t for > /: only (as well as things like /ssh:: I guess), but not for > /: where we'd still connect and test whether it's indeed > a directory. > >> Inside Tramp it could be behave such a way when it detects it is in >> completion mode. That means, when `non-essential' is set to t. Shall I >> do it this way? > > I suggest to do that regardless of whether we're in completion mode > or not. I've committed such a patch. It is good anyway, because it adds an optimitation for Tramp. This shall solve this bug. However, do we have other other primitive file name operations, which are used for file name completion? We should handle them as well. > Stefan Best regards, Michael. ------------=_1319547543-13514-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 19 Oct 2011 04:54:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGOAr-0003Pj-GM for submit@debbugs.gnu.org; Wed, 19 Oct 2011 00:54:42 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGOAo-0003PV-9u for submit@debbugs.gnu.org; Wed, 19 Oct 2011 00:54:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGO9i-0001WD-LB for submit@debbugs.gnu.org; Wed, 19 Oct 2011 00:53:32 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:57749) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGO9i-0001W9-JZ for submit@debbugs.gnu.org; Wed, 19 Oct 2011 00:53:30 -0400 Received: from eggs.gnu.org ([140.186.70.92]:57973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGO9f-0004KD-PH for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 00:53:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGO9c-0001Tu-DN for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 00:53:27 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:33778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGO9c-0001OY-46 for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 00:53:24 -0400 Received: by bkbzu5 with SMTP id zu5so1936060bkb.0 for ; Tue, 18 Oct 2011 21:53:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:user-agent:mime-version :content-type:content-transfer-encoding; bh=x0jqWBg5/BmPPkaBYrW7gS93RTdjU3InFttN2luR9RQ=; b=aP/l5R0opP5Nc9kA+IZaSfWkLA4dynTpVm/2dRcOCbgGAZ0gNggLR3nNglAtS2IeO+ 58Pu1j3dtpf8yddVDgPU0HYCYkEiMILCEEklWKBmYtgegu2r3ny7fI60hjzLqXvBvBeJ sv/5oIu2XjRsXxtdLaadHnXlKItYPEwNlcKhU= Received: by 10.223.6.25 with SMTP id 25mr8732251fax.14.1319000002756; Tue, 18 Oct 2011 21:53:22 -0700 (PDT) Received: from thierry-MM061 (87.77.197.77.rev.sfr.net. [77.197.77.87]) by mx.google.com with ESMTPS id b16sm7643993fao.7.2011.10.18.21.53.20 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 18 Oct 2011 21:53:21 -0700 (PDT) From: Thierry Volpiatto To: bug-gnu-emacs@gnu.org Subject: 24.0.90; Unwanted tramp connection on eshell completion. Date: Wed, 19 Oct 2011 06:53:17 +0200 Message-ID: <87r529a8g2.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.2 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.2 (-----) Hi all, Eshell completion (pcomplete) fail when a hostname starting with "t" is present in "~/.ssh/config". To reproduce: Create such a shortcut in "~/.ssh/config" say "toto". Start eshell. enter: cd \t and try to complete with (we want to complete to /tmp here) In GNU Emacs 24.0.90.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2011-10-18 on thierry-MM061 Windowing system distributor `The X.Org Foundation', version 11.0.11004000 configured using `configure '--with-x-toolkit=3Dlucid' '--without-gconf' '= --without-gsettings'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: fr_FR.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Org-Agenda Week Diary Ddl Grid Minor modes in effect: TeX-PDF-mode: t auto-image-file-mode: t show-paren-mode: t display-time-mode: t recentf-mode: t savehist-mode: t minibuffer-depth-indicate-mode: t diff-auto-refine-mode: t anything-completion-mode: t anything-dired-mode: Enable anything completion in Dired functions. Bindings affected are C, R, S, H. This is deprecated for Emacs24+ users, use `ac-mode' instead. shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-g s M-n =20 =20 =20 =20 C-j =20 =20 =20 =20 =20 =20 C-h f =20 =20 =20 q C-z=20 l =20 =20 =20 =20 M-x c o m p l e =20 =20 d e M-x =20 =20 ( d e f M-x c o m p l e t i o n =20 C-< C-x k =20 M-x l i s p =20 =20 =20 =20 =20 C-h f=20 C-z C-g C-z 1 =20 =20 =20 =20 C-c a a C-x C-=C2=B2 M-x r e p o < return> Recent messages: Preparing diary...done Preparing diary...done Preparing diary...done Preparing diary...done Preparing diary...done Preparing diary...done Preparing diary...done Invalid face reference: quote [181 times] Invalid face reference: quote [125 times] Load-path shadows: None found. Features: (shadow epa-mail emacsbug flow-fill smiley gnus-cite mail-extr qp gnus-async gnus-bcklg gnus-ml nndraft nnmh utf-7 nnimap utf7 nnml nnfolder netrc network-stream starttls tls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache gnus-dired debug find-func cal-iso preview prv-emacs tex-buf reftex-vcr reftex-dcr reftex-auc reftex imenu reftex-vars font-latex latex tex-style tex latexenc conf-mode newcomment vc-git xgit-dvc xgit xgit-annotate rect dvc-annotate xgit-log dvc-revlist vc-rcs sh-script xhg-dvc xhg xhg-annotate xhg-mq xhg-log dvc-diff uniquify dvc-fileinfo bzr-core xdarcs-core xgit-core xhg-core xmtn-minimal naquadah-theme em-unix em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl em-basic esh-opt em-banner em-alias esh-var esh-io esh-cmd esh-ext esh-proc esh-groups eshell esh-module esh-mode align-let server slime-xref-browser slime-banner slime-tramp slime-asdf slime-fancy slime-fontifying-fu slime-package-fu slime-references slime-scratch slime-presentations slime-fuzzy slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc slime-parse slime-repl image-file newsticker newst-treeview newst-plainview newst-reader newst-ticker newst-backend xdvi-search em-term term ehelp electric pdbtrack whitespace paren time winner mime-w3m mime eword-decode mel path-util mime-parse std11 luna mime-def mcharset mcs-20 mcs-e20 pces pces-e20 pces-20 broken pcustom poe w3m-load help-mode view avoid tramp-cache tramp-sh recentf tree-widget savehist googlecl google-maps google-maps-static google-maps-geocode google-maps-base json simple-call-tree el-expectations el-mock csv2org iedit zop-to-char mule-util alist pym static apel-ver product elscreen smallurl mm-url xml-weather rectangle-utils tv-utils pcvs pcvs-parse pcvs-info pcvs-defs pcvs-util auto-document autodoc mb-depth ioccur moz cl-info slime hideshow hyperspec slime-autoloads ledger-config ledger esh-arg esh-util woman man esh-toggle em-xtra flymake ipython python-mode info-look ansi-color executable eldoc-eval eldoc no-word regex-tool dired-extension image-dired yaoddmuse skeleton sgml-mode emms-mplayer-config emms-playlist-limit emms-volume emms-volume-amixer emms-i18n emms-history emms-score emms-stream-info emms-metaplaylist-mode emms-bookmarks emms-lastfm-client parse-time emms-cue emms-mode-line-icon emms-browser sort emms-playlist-sort emms-last-played emms-player-xine emms-player-mpd tq emms-playing-time emms-lyrics emms-url hl-line emms-tag-editor emms-mark emms-mode-line emms-cache emms-info-ogginfo emms-info-mp3info emms-playlist-mode emms-player-vlc emms-player-mplayer emms-info emms-streams later-do emms-source-playlist emms-source-file emms-player-simple emms-setup emms emms-compat dvc-init bzr-gnus tla-gnus xgit-gnus xhg-gnus gnus-art mm-uu mml2015 mm-view mml-smime smime dig nnir gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range gnus-win gnus gnus-ems nnheader dvc-gnus tla-core tla-autoconf tla-defs dvc-log vc vc-dispatcher dvc-unified dvc-tips add-log diff-mode ediff-merg ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff dvc-autoloads dvc-core dvc-lisp dvc-buffers dvc-ui dvc-register dvc-utils dvc-emacs ewoc dvc-defs dvc-site htmlize-hack htmlize muse-colors muse-docbook muse-texinfo texnfo-upd texinfo muse-latex muse-html muse-xml-common muse-wiki cus-edit cus-start cus-load muse-publish muse-project muse-protocols muse-regexps muse muse-nested-tags muse-mode muse-autoloads org-config-thierry org-crypt cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs vc-hg org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp ob-exp org-exp-blocks org-info org-gnus org-docview org-bibtex bibtex org-bbdb org-agenda appt diary-lib diary-loaddefs org-annotation-helper org-capture org-mks remember org-remember org-datetree config-w3m w3m doc-view jka-compr image-mode timezone w3m-hist w3m-fb w3m-ems wid-edit w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util addressbook-bookmark message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader firefox-protocol bookmark-uzbl-handler bookmark-firefox-handler bookmark-extensions org ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete org-list org-faces org-compat org-entities org-macs noutline outline cal-menu calendar cal-loaddefs bookmark pp init-anything-thierry anything-describe-keybindings anything-delicious anything-mercurial anything-stgit anything-config browse-url rx anything-match-plugin xml url url-proxy url-privacy url-expand url-methods url-history url-cookie url-util url-parse url-vars mailcap grep compile tramp tramp-compat shell pcomplete comint ring format-spec tramp-loaddefs dired-x dired-aux dired regexp-opt ffap thingatpt anything warnings epa-file epa derived epg epg-config auth-source eieio byte-opt bytecomp byte-compile cconv macroexp assoc gnus-util time-date mm-util mail-prsvr password-cache usage-memo eev-thierry edmacro kmacro iterator eev-all eev-mini-steps eev-browse-url eev-langs eev-compose eev-glyphs disp-table eev-insert eev-steps eev-bounded eev easy-mmode advice help-fns advice-preload cl w3m-wget preview-latex tex-site auto-loads info easymenu tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-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 loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting font-render-setting x-toolkit x multi-tty emacs) --=20 Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997=20 ------------=_1319547543-13514-1--