From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: shell mode, changing directory Date: Fri, 21 Mar 2003 18:11:07 GMT Organization: Genuity Managed Services, Woburn, MA Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <%AIea.8$0i.628@paloalto-snr1.gtei.net> References: <3E7B3B46.1090204@ihs.com> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1048270702 27832 80.91.224.249 (21 Mar 2003 18:18:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 21 Mar 2003 18:18:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 21 19:18:20 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18wR5w-0007EZ-00 for ; Fri, 21 Mar 2003 19:18:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18wR3P-00034X-01 for gnu-help-gnu-emacs@m.gmane.org; Fri, 21 Mar 2003 13:15:43 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn12feed!wn14feed!worldnet.att.net!4.24.21.153!chcgil2-snh1.gtei.net!crtntx1-snh1.gtei.net!news.gtei.net!paloalto-snr1.gtei.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Mail-Copies-To: never X-Newsreader: trn 4.0-test72 (19 April 1999) Originator: barmar@genuity.net (Barry Margolin) Original-Lines: 28 Original-X-Trace: /KHlxJC1efQ1EETT03HO5SDhJgCyYpE/XnHAgJ03DVWe0JIHGoq2BWmjy3bR4A5AgVSFyM2kPbyG!yuDww33nxX26YtlpFvWN+K2kLJe+42Nexn7EDKTTB+21NHRnuMy9lqrHy2M/uwaKLD2vfSVou5qB!UYrNu6AyrA== Original-X-Complaints-To: abuse@gte.net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly Original-NNTP-Posting-Date: Fri, 21 Mar 2003 18:11:07 GMT Original-Distribution: world Original-Xref: shelby.stanford.edu gnu.emacs.help:111296 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7795 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7795 In article , Phillip Lord wrote: >>>>>> "Kevin" == Kevin Rodgers writes: > > Kevin> Phillip Lord wrote: > > >> Can anyone tell me how to force a *shell* buffer to change it's > >> current working directory? Effectively I want to fake typing "cd > >> blah", but I can't see a good way to do this. > > > Kevin> M-x cd RET blah RET > >This appears to change the default directory of the buffer, not the >current working directory of the shell, which is not really what I >want. Both need to happen. Unix doesn't provide any way for one process to change the working directory of another one. I suppose you could write a command that will send a "cd " command to the shell buffer with process-send-string. -- Barry Margolin, barry.margolin@level3.com Genuity Managed Services, Woburn, MA *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups. Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.