From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?J=C3=BCrgen_?= =?UTF-8?Q?H=C3=B6tzel?= Newsgroups: gmane.emacs.bugs Subject: bug#6764: 24.0.50; directory tracking functions (comint.el) non-functional on remote files Date: Fri, 30 Jul 2010 11:08:30 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1280515776 11181 80.91.229.12 (30 Jul 2010 18:49:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 30 Jul 2010 18:49:36 +0000 (UTC) Cc: michael.albinus@gmx.de To: 6764@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 30 20:49:33 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OeueA-00056k-KT for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Jul 2010 20:49:31 +0200 Original-Received: from localhost ([127.0.0.1]:48450 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oeue9-0006mS-4O for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Jul 2010 14:49:29 -0400 Original-Received: from [140.186.70.92] (port=35109 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OeqUB-0002Gw-1I for bug-gnu-emacs@gnu.org; Fri, 30 Jul 2010 10:23:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OeqFg-0006rv-Om for bug-gnu-emacs@gnu.org; Fri, 30 Jul 2010 10:07:58 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39433) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OeqFg-0006rp-NC for bug-gnu-emacs@gnu.org; Fri, 30 Jul 2010 10:07:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OeqAw-0006hh-8v; Fri, 30 Jul 2010 10:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?J=C3=BCrgen_?= =?UTF-8?Q?H=C3=B6tzel?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Jul 2010 14:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6764 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.128049856725760 (code B ref -1); Fri, 30 Jul 2010 14:03:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Jul 2010 14:02:47 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OeqAf-0006hQ-Mg for submit@debbugs.gnu.org; Fri, 30 Jul 2010 10:02:46 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OelZp-00040q-GS for submit@debbugs.gnu.org; Fri, 30 Jul 2010 05:08:26 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:43493) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Oela4-000619-LL for submit@debbugs.gnu.org; Fri, 30 Jul 2010 05:08:40 -0400 Original-Received: from [140.186.70.92] (port=36304 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oela2-0004Jz-A4 for bug-gnu-emacs@gnu.org; Fri, 30 Jul 2010 05:08:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oela0-0001rg-0C for bug-gnu-emacs@gnu.org; Fri, 30 Jul 2010 05:08:38 -0400 Original-Received: from gerolde.archlinux.org ([66.211.214.132]:33798 helo=archlinux.org) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OelZz-0001rN-Rx for bug-gnu-emacs@gnu.org; Fri, 30 Jul 2010 05:08:35 -0400 Original-Received: from mail-ww0-f41.google.com (mail-ww0-f41.google.com [74.125.82.41]) by archlinux.org (Postfix) with ESMTPSA id 0EE029017C for ; Fri, 30 Jul 2010 05:08:28 -0400 (EDT) Original-Received: by wwd20 with SMTP id 20so7145799wwd.0 for ; Fri, 30 Jul 2010 02:08:32 -0700 (PDT) Original-Received: by 10.227.155.70 with SMTP id r6mr1457926wbw.26.1280480910916; Fri, 30 Jul 2010 02:08:30 -0700 (PDT) Original-Received: by 10.216.157.197 with HTTP; Fri, 30 Jul 2010 02:08:30 -0700 (PDT) X-Originating-IP: [195.246.180.204] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Fri, 30 Jul 2010 10:02:44 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 30 Jul 2010 10:03:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Fri, 30 Jul 2010 14:48:45 -0400 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39082 Archived-At: Steps to reproduce: 1. Open a tramp url like "/ssh:user@HOSTNAME:/" 2. M-x shell 3. cd /absolute/path 4. Check `default-directory' or try comints directory completion/tracking Patch enclosed: diff --git a/lisp/comint.el b/lisp/comint.el index 071537f..128965f 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -674,6 +674,9 @@ Entry to this mode runs the hooks on `comint-mode-hook'= ." =A0=A0 (make-local-variable 'comint-process-echoes) =A0=A0 (make-local-variable 'comint-file-name-chars) =A0=A0 (make-local-variable 'comint-file-name-quote-list) + =A0;; dir tracking on remote files + =A0(set (make-local-variable 'comint-file-name-prefix) + =A0 =A0 =A0 (or (file-remote-p default-directory) "")) =A0=A0 (make-local-variable 'comint-accum-marker) =A0=A0 (setq comint-accum-marker (make-marker)) =A0=A0 (make-local-variable 'font-lock-defaults) If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: =A0=A0 =A0`bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/share/emacs/24.0.50/etc/DEBUG. In GNU Emacs 24.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) =A0of 2010-07-30 on bitzer.hoetzel.info Windowing system distributor `The X.Org Foundation', version 11.0.60900000 configured using `configure =A0'--prefix=3D/usr' 'CFLAGS=3D-g -O0 -fno-optimize-sibling-calls'' Important settings: =A0=A0value of $LC_ALL: nil =A0=A0value of $LC_COLLATE: nil =A0=A0value of $LC_CTYPE: nil =A0=A0value of $LC_MESSAGES: nil =A0=A0value of $LC_MONETARY: nil =A0=A0value of $LC_NUMERIC: nil =A0=A0value of $LC_TIME: nil =A0=A0value of $LANG: de_DE.utf8 =A0=A0value of $XMODIFIERS: nil =A0=A0locale-coding-system: utf-8-unix =A0=A0default enable-multibyte-characters: t Major mode: Dired by name Minor modes in effect: =A0=A0diff-auto-refine-mode: t =A0=A0shell-dirtrack-mode: t =A0=A0recentf-mode: t =A0=A0show-paren-mode: t =A0=A0yas/minor-mode: t =A0=A0savehist-mode: t =A0=A0auto-insert-mode: t =A0=A0tooltip-mode: t =A0=A0mouse-wheel-mode: t =A0=A0file-name-shadow-mode: t =A0=A0global-font-lock-mode: t =A0=A0font-lock-mode: t =A0=A0blink-cursor-mode: t =A0=A0auto-composition-mode: t =A0=A0auto-encryption-mode: t =A0=A0auto-compression-mode: t =A0=A0line-number-mode: t =A0=A0transient-mark-mode: t Recent input: x s t o w C-g C-x C-f x s h e l l : c d SPC / m e d l s SPC C-a C-k C-x 1 C-x C-f C-g . . e l l x s h e l l C-x k y e s x s h e l l g i t SPC d i f f p w d c d c d SPC s o f e m g i t SPC d i f f SPC q g i t SPC d i f f SPC SPC > / t t m p / d i r - t r a c k i n g - o n - r e m o t e - f i l e s . d i f f C-x C-f C-a C-k / t m g v C-x k x b u g C-a C-k r e p o r Recent messages: View mode: type C-h for help, h for commands, q to quit. Making completion list... Saving file /home/juergen/.recentf... Wrote /home/juergen/.recentf insert-for-yank: Text is read-only call-interactively: Text is read-only Overwrite mode enabled Overwrite mode disabled Saving file /home/juergen/.recentf... Wrote /home/juergen/.recentf Load-path shadows: /usr/share/emacs/24.0.50/lisp/progmodes/compile hides /usr/share/emacs/24.0.50/lisp/cedet/srecode/compile /usr/share/emacs/24.0.50/lisp/textmodes/table hides /usr/share/emacs/24.0.50/lisp/cedet/srecode/table /usr/share/emacs/24.0.50/lisp/cedet/semantic hides /usr/share/emacs/24.0.50/lisp/cedet/srecode/semantic /usr/share/emacs/24.0.50/lisp/progmodes/cpp hides /usr/share/emacs/24.0.50/lisp/cedet/srecode/cpp /usr/share/emacs/24.0.50/lisp/loaddefs hides /usr/share/emacs/24.0.50/lisp/cedet/srecode/loaddefs /usr/share/emacs/24.0.50/lisp/cedet/srecode/texi hides /usr/share/emacs/24.0.50/lisp/cedet/semantic/texi /usr/share/emacs/24.0.50/lisp/sort hides /usr/share/emacs/24.0.50/lisp/cedet/semantic/sort /usr/share/emacs/24.0.50/lisp/cedet/srecode/java hides /usr/share/emacs/24.0.50/lisp/cedet/semantic/java /usr/share/emacs/24.0.50/lisp/imenu hides /usr/share/emacs/24.0.50/lisp/cedet/semantic/imenu /usr/share/emacs/24.0.50/lisp/format hides /usr/share/emacs/24.0.50/lisp/cedet/semantic/format /usr/share/emacs/24.0.50/lisp/cedet/srecode/find hides /usr/share/emacs/24.0.50/lisp/cedet/semantic/find /usr/share/emacs/24.0.50/lisp/emacs-lisp/debug hides /usr/share/emacs/24.0.50/lisp/cedet/semantic/debug /usr/share/emacs/24.0.50/lisp/cedet/srecode/ctxt hides /usr/share/emacs/24.0.50/lisp/cedet/semantic/ctxt /usr/share/emacs/24.0.50/lisp/emacs-lisp/chart hides /usr/share/emacs/24.0.50/lisp/cedet/semantic/chart /usr/share/emacs/24.0.50/lisp/loaddefs hides /usr/share/emacs/24.0.50/lisp/cedet/semantic/loaddefs /usr/share/emacs/24.0.50/lisp/progmodes/python hides /usr/share/emacs/24.0.50/lisp/cedet/semantic/wisent/python /usr/share/emacs/24.0.50/lisp/cedet/semantic/wisent hides /usr/share/emacs/24.0.50/lisp/cedet/semantic/wisent/wisent /usr/share/emacs/24.0.50/lisp/progmodes/grep hides /usr/share/emacs/24.0.50/lisp/cedet/semantic/symref/grep /usr/share/emacs/24.0.50/lisp/cedet/srecode/mode hides /usr/share/emacs/24.0.50/lisp/cedet/semantic/decorate/mode /usr/share/emacs/24.0.50/lisp/emacs-lisp/debug hides /usr/share/emacs/24.0.50/lisp/cedet/semantic/bovine/debug /usr/share/emacs/24.0.50/lisp/cedet/srecode/el hides /usr/share/emacs/24.0.50/lisp/cedet/semantic/bovine/el /usr/share/emacs/24.0.50/lisp/cedet/semantic/complete hides /usr/share/emacs/24.0.50/lisp/cedet/semantic/analyze/complete /usr/share/emacs/24.0.50/lisp/emacs-lisp/debug hides /usr/share/emacs/24.0.50/lisp/cedet/semantic/analyze/debug Features: (shadow sort mail-extr message idna sendmail rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader emacsbug diff-mode vc-git help-mode view ansi-color time-date package tramp-imap tramp-gw tramp-fish tramp-smb tramp-cache tramp-ftp tramp-cmds tramp shell password-cache format-spec tramp-compat trampver recentf server time-stamp paren anything-config warnings semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw eieio byte-opt bytecomp byte-compile mode-local cedet imenu bookmark ffap dired rx company-gtags company-dabbrev swank-clojure-project pkgbuild-mode sh-script executable color-theme babel url-handlers json mm-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-util url-parse auth-source timezone url-vars mailcap gnus gnus-ems nnheader gnus-util mail-utils mm-util mail-prsvr dropdown-list yasnippet sawfish inf-lisp pp info php-mode derived etags cc-langs cc-mode cc-fonts cc-menus cc-cmds speedbar sb-image ezimage dframe lxde-style highlight-symbol hi-lock thingatpt company easy-mmode clojure-mode c-electric-paren2 anything edmacro kmacro woman easymenu man assoc cc-styles cc-align cc-engine cc-vars cc-defs uniquify advice help-fns advice-preload savehist cus-start cus-load codesearch groovy-mode cl cl-19 gtags compile comint regexp-opt ring autoinsert tree-widget wid-edit 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 mldrag 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 loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)