all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* shell mode, changing directory
@ 2003-03-19 16:22 Phillip Lord
  2003-03-21 16:18 ` Kevin Rodgers
  2003-03-21 18:23 ` Alan Shutko
  0 siblings, 2 replies; 11+ messages in thread
From: Phillip Lord @ 2003-03-19 16:22 UTC (permalink / raw)






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. 

Cheers

Phil

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: shell mode, changing directory
@ 2003-03-21 18:40 Bingham, Jay
  0 siblings, 0 replies; 11+ messages in thread
From: Bingham, Jay @ 2003-03-21 18:40 UTC (permalink / raw)


On Friday, March 21, 2003 12:23 PM Alan Shutko wrote:

>Phillip Lord <p.lord@russet.org.uk> 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. 
>
>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. 
>
>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-

^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <mailman.3489.1048272184.21513.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2003-03-24 16:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-19 16:22 shell mode, changing directory Phillip Lord
2003-03-21 16:18 ` Kevin Rodgers
2003-03-21 17:56   ` Phillip Lord
2003-03-21 18:11     ` Barry Margolin
2003-03-21 21:15     ` Kevin Rodgers
2003-03-24 12:40       ` Phillip Lord
2003-03-21 18:23 ` Alan Shutko
  -- strict thread matches above, loose matches on Subject: below --
2003-03-21 18:40 Bingham, Jay
     [not found] <mailman.3489.1048272184.21513.help-gnu-emacs@gnu.org>
2003-03-21 19:53 ` Alan Shutko
2003-03-22  9:42 ` Piet van Oostrum
2003-03-24 16:21   ` Phillip Lord

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.