From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dieter Wilhelm Newsgroups: gmane.emacs.help Subject: Re: emacs current directory when shell commands change directory Date: Sat, 21 Apr 2007 03:16:11 +0200 Organization: The Church of Emacs Message-ID: <87k5w6wmqs.fsf@debby.local.net> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1177118224 3660 80.91.229.12 (21 Apr 2007 01:17:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 21 Apr 2007 01:17:04 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "David Strozzi" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 21 03:16:57 2007 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 1Hf4Dg-0006Hh-QN for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Apr 2007 03:16:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hf4In-0002wY-Uf for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Apr 2007 21:22:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hf4IY-0002vL-Nz for help-gnu-emacs@gnu.org; Fri, 20 Apr 2007 21:21:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hf4IX-0002uR-U0 for help-gnu-emacs@gnu.org; Fri, 20 Apr 2007 21:21:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hf4IX-0002uM-R9 for help-gnu-emacs@gnu.org; Fri, 20 Apr 2007 21:21:57 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.186]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hf4DP-0007WH-RG for help-gnu-emacs@gnu.org; Fri, 20 Apr 2007 21:16:40 -0400 Original-Received: from [84.167.32.160] (helo=debby.local.net) by mrelayeu.kundenserver.de (node=mrelayeu6) with ESMTP (Nemesis), id 0ML29c-1Hf4DN0r5b-0003YH; Sat, 21 Apr 2007 03:16:37 +0200 Original-Received: from dieter by debby.local.net with local (Exim 4.63) (envelope-from ) id 1Hf4Cx-0002I3-AD; Sat, 21 Apr 2007 03:16:11 +0200 In-Reply-To: (David Strozzi's message of "Fri\, 20 Apr 2007 11\:35\:14 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) X-Provags-ID: V01U2FsdGVkX19XhxqN17qzQPSJj/6nsrpyN7vAQMZutfGIzAg MJz3E/JdBXDRbEuf/fZ/Yd0UDP/ag2PLCGFw6DsDzZ2CpNnSV3 I95BJE8iZUU+p9XMVrH6i88y5ITbLh0 X-detected-kernel: Linux 2.6? (barebone, rare!) 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:42937 Archived-At: "David Strozzi" writes: > Hi, > > I and others have a minor problem with emacs' shell mode. Suppose you > use commands (namely aliases) that change the current directory. > Emacs doesn't realize the working dir has changed. If one were to > manually type 'cd dir', then 'M-x pwd' tells you the right dir. But > after running an alias to 'cd dir', 'M-x pwd' think you're in the > starting dir. This de-syncs tab completion, file opening, etc from > where you 'really' are in the shell. Of course, the shell correctly > changes the working dir when aliases are run. > > Any way around this? I checked it with "M-x eshell" and in this shell it works. -- Best wishes H. Dieter Wilhelm Darmstadt, Germany