From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ryan Barrett Newsgroups: gmane.emacs.bugs Subject: bug#9647: dirtrack.el patch to support prefixed paths, e.g. tramp remote shells Date: Sun, 16 Oct 2011 09:47:12 -0700 Message-ID: References: <87sjn2fq58.fsf@gmx.de> <87k485l47r.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1318783707 1903 80.91.229.12 (16 Oct 2011 16:48:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 16 Oct 2011 16:48:27 +0000 (UTC) Cc: 9647@debbugs.gnu.org, lekktu@gmail.com To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 16 18:48:21 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RFTsr-0003NJ-4f for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Oct 2011 18:48:21 +0200 Original-Received: from localhost ([::1]:49666 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFTsq-0008Cp-NY for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Oct 2011 12:48:20 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFTsn-0008Bv-Qe for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2011 12:48:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFTsm-0004F8-Dl for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2011 12:48:17 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFTsm-0004F3-AJ for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2011 12:48:16 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RFTtW-0000pE-1o for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2011 12:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ryan Barrett Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Oct 2011 16:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9647 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9647-submit@debbugs.gnu.org id=B9647.13187837183141 (code B ref 9647); Sun, 16 Oct 2011 16:49:01 +0000 Original-Received: (at 9647) by debbugs.gnu.org; 16 Oct 2011 16:48:38 +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 1RFTt7-0000ob-Ji for submit@debbugs.gnu.org; Sun, 16 Oct 2011 12:48:37 -0400 Original-Received: from mail-gx0-f172.google.com ([209.85.161.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RFTt4-0000oP-Cq for 9647@debbugs.gnu.org; Sun, 16 Oct 2011 12:48:35 -0400 Original-Received: by ggnv1 with SMTP id v1so498734ggn.3 for <9647@debbugs.gnu.org>; Sun, 16 Oct 2011 09:47:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=9C6RTJuSeNKm5idmC/NkXG2/jANK4k63VUkIDE60wfE=; b=ws+2KHov8l19HJsAKsPjrHtICK4yHlESiW+2ht14YR1IM4dNWvoAMN7OGC0somOC7M NvWqnBwOSDodKVp5HWpcqefwBJEIMZ5hLsDYZ0aWtMWv2hYt2W0fDoa+Px0ODo6YN0YK 9JuSSLf3jhfUviosbzJLzcH8H9hEs5okVFeMg= Original-Received: by 10.182.73.7 with SMTP id h7mr8756356obv.51.1318783662228; Sun, 16 Oct 2011 09:47:42 -0700 (PDT) Original-Received: by 10.182.160.5 with HTTP; Sun, 16 Oct 2011 09:47:12 -0700 (PDT) In-Reply-To: <87k485l47r.fsf@gmx.de> X-Google-Sender-Auth: wwqXJV8Ro9G4Q0v6jJoqrf1-WZ8 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 16 Oct 2011 12:49:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:52686 Archived-At: On Sun, Oct 16, 2011 at 1:40 AM, Michael Albinus wrote: > However, I still don't know whether this shall be fixed in > dirtrack.el. Maybe it would be better if Tramp could support. yeah, i understand that instinct. i think dirtrack may be the more appropriate place, though. notably, if you look at the patch, it doesn't actually depend on tramp at all. it uses shell-prefixed-directory-name and comint-file-name-prefix, which are generic mechanisms in shell and comint, which dirtrack already depends on. > (set-variable 'dirtrack-list "[REGEX]") ... > What do you use as "[REGEX]"? Shouldn't this be a list? > > Remote shells as implemented by Tramp do not provide any directory > information in the prompt. By default, the prompt looks like this: tramp does use the user's shell and dotfiles on the remote machine, but still, good points, the instructions needed more details. i use tcsh with this dirtrack-list: (set-variable 'dirtrack-list '(":\\([^ :>]*\\)> *$" 1 nil)) try that, and then run tcsh on the remote machine and run this: set prompt="%m:%~%# " that gives you a prompt that looks like this: purgatory:~/foo/bar>