From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Bingham, Jay" Newsgroups: gmane.emacs.help Subject: RE: shell mode, changing directory Date: Fri, 21 Mar 2003 12:40:58 -0600 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <72A87F7160C0994D8C5A36E2FDC227F504F2A2A5@txnexc01.americas.cpqcorp.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1048272304 4037 80.91.224.249 (21 Mar 2003 18:45:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 21 Mar 2003 18:45:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 21 19:45:03 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 18wRVn-00012s-00 for ; Fri, 21 Mar 2003 19:45:03 +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 18wRUD-0007jJ-08 for gnu-help-gnu-emacs@m.gmane.org; Fri, 21 Mar 2003 13:43:25 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18wRTq-0007hl-00 for help-gnu-emacs@gnu.org; Fri, 21 Mar 2003 13:43:02 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18wRTo-0007fg-00 for help-gnu-emacs@gnu.org; Fri, 21 Mar 2003 13:43:01 -0500 Original-Received: from zcamail03.zca.compaq.com ([161.114.32.103]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18wRRt-0006fH-00 for help-gnu-emacs@gnu.org; Fri, 21 Mar 2003 13:41:01 -0500 Original-Received: from cacexg11.americas.cpqcorp.net (cacexg11.americas.cpqcorp.net [16.105.250.94]) by zcamail03.zca.compaq.com (Postfix) with ESMTP id B3A0322D5 for ; Fri, 21 Mar 2003 10:40:59 -0800 (PST) Original-Received: from txnexc01.americas.cpqcorp.net ([16.74.7.244]) by cacexg11.americas.cpqcorp.net with Microsoft SMTPSVC(5.0.2195.2966); Fri, 21 Mar 2003 10:40:59 -0800 content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: shell mode, changing directory Thread-Index: AcLv13xMQ7jbDElDRjCVayJ2/Vv+OAAAQzYA Original-To: X-OriginalArrivalTime: 21 Mar 2003 18:40:59.0520 (UTC) FILETIME=[6A99C800:01C2EFD9] 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:7797 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7797 On Friday, March 21, 2003 12:23 PM Alan Shutko wrote: >Phillip Lord writes: > >> 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.=20 > >Send "cd blah" to the process... that's the only way. You can't >change a process's working directory from outside. > >comint-send-string might help. There is something that is missing from this discussion. Phillip and I had a brief offline conversation about what he is trying to do, I suggested that he repost the message that he sent directly to me, but for some reason he has not done that. Here is what he sent to me: >I want to change the directory progammatically. The reason is that I use >several directories repeatedly, and navigating between them takes ages. I >want to store them in a list that I can access easily and then have the >shell buffer move to that directory. > >Specifically I want to write two commands. The first is "move CWD of shell >to the same as the file of the current buffer" (currently you can achieve >this, by killing the *shell* buffer, and typing M-x shell). And secondly I >want to be able to use the ECB's >(ecb.sourceforge.net) directory window, to move shells CWD.=20 > >Having "cd blah" turn up at the command prompt within the *shell* buffer >would be perfectly acceptable to me, and even useful, as it would leave the >user with feedback. I hope that this helps clarify his needs. -_ J_) C_)ingham . HP - NonStop Austin Software & Services - Software Quality Assurance . Austin, TX . "Language is the apparel in which your thoughts parade in public. . Never clothe them in vulgar and shoddy attire." -Dr. George W. Crane-