From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul R Newsgroups: gmane.emacs.help Subject: Re: Sincronise eshell directory to file Date: Thu, 13 Nov 2008 12:36:31 +0100 Message-ID: <87wsf76eo0.fsf@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226576234 29573 80.91.229.12 (13 Nov 2008 11:37:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Nov 2008 11:37:14 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Lorenzo Isella" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 13 12:38:15 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L0aWc-0002q4-7M for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Nov 2008 12:38:14 +0100 Original-Received: from localhost ([127.0.0.1]:40468 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0aVU-00045U-4q for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Nov 2008 06:37:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L0aV5-000435-9J for help-gnu-emacs@gnu.org; Thu, 13 Nov 2008 06:36:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L0aV3-000427-SW for help-gnu-emacs@gnu.org; Thu, 13 Nov 2008 06:36:38 -0500 Original-Received: from [199.232.76.173] (port=40322 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0aV3-00041x-KB for help-gnu-emacs@gnu.org; Thu, 13 Nov 2008 06:36:37 -0500 Original-Received: from ug-out-1314.google.com ([66.249.92.170]:10237) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L0aV2-00085S-Ha for help-gnu-emacs@gnu.org; Thu, 13 Nov 2008 06:36:37 -0500 Original-Received: by ug-out-1314.google.com with SMTP id 36so1568844uga.17 for ; Thu, 13 Nov 2008 03:36:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=CRQ7QqkHYc7CzYYHDlR4lpE9yVosp9IulLrxDvvVavo=; b=LOEVhXJWCiVEcVEGDgHl1i0Lia0wNdigewmu3nyvvlB3QX3QIZeIMTlBTXQc6trQnH RwX3ge6lTHsimtFkoGYDdUZ/FZv6GKHdtx5BBrDC7qkl+uWdlp21dohTInBR3POS3Fif gmxPA/GY1idz8ebILf35dLIeYbU5gYb1GgLXg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=Dei/jdMty+ogt6aCWmLXZod14b86duVOTyjkRCthxhi4CZg8tzpV/8uQ9hOwUa2pMH 8K1To8xSyrP+b9XHxh78dvsPucC2o7c9qhMan2NosDs9qsaiUQ8uQOzE+zNhMS0ZT5Ih 68a0ZmuSqg6j3qNHVuf3gKNR8Ii+iVVsPtWus= Original-Received: by 10.103.193.13 with SMTP id v13mr3030941mup.125.1226576195468; Thu, 13 Nov 2008 03:36:35 -0800 (PST) Original-Received: from ubuT42 (pdc35-1-82-242-132-111.fbx.proxad.net [82.242.132.111]) by mx.google.com with ESMTPS id j10sm17980763muh.1.2008.11.13.03.36.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 13 Nov 2008 03:36:34 -0800 (PST) In-Reply-To: (Lorenzo Isella's message of "Thu, 13 Nov 2008 11:52:12 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59728 Archived-At: Hello Lorenzo, Lorenzo> Dear All, My typical working pattern in emacs is to have an Lorenzo> eshell + a buffer (showing one of the program I intend to Lorenzo> modify). I switch between several of these code buffers and it Lorenzo> would be very useful for me to automatically change directory Lorenzo> (within eshell) to the one corresponding to the file I am Lorenzo> visiting though the buffer. Does anyone know how this can be Lorenzo> achieved? Cheers You can probably hack something like a custom command that you would call from your current buffer. It would read `default-directory, then take you to your eshell buffer and issue a `cd the_default-directory'. -- Paul