help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Go to my CWD!


From: Andreas Röhler
Subject: Re: Go to my CWD!
Date: Thu, 28 Jan 2010 10:02:44 +0100
User-agent: Thunderbird 2.0.0.19 (X11/20081227)

Kevin Rodgers wrote:
> Andrea Crotti wrote:
>> Whenever I have a shell or another interpreter of course they keep
>> they're own current directory, which is given from the first time I've
>> launched them.
>>
>> But if I for example call
>> M-x shell again it means that I want the shell in the directory of
>> the current
>> buffer, not that old forgotten position.
>
> `C-u M-x shell RET' will give you a new shell buffer named *shell*<2>
> whose default directory is the same as the buffer from which you called
> it.  
Storing it as a keyboard-macro, naming the macro, binding it to a key,
probably is better solution than having a separate function for it.

Andreas


> Subsequent shells will be named *shell*<3>, *shell*<4>, *shell*<5>
> etc.
>
>> That's also true for python interpreter or any other interpreter, is
>> there a way to solve this problem automatically?
>
> No, each interpreter starts comint in its own way.
>
>> Maybe a second call should kill and restart instead of visiting the
>> already open?
>
> Happy hacking,
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]