Am Dienstag, 18. Dezember 2007 16:20 schrieben Sie:
> Andreas Röhler <[EMAIL PROTECTED]> writes:
> > Remains question with shell: opened in remote directory
> > after eshell, shell is shown in buffer-menu like
> > this:
> >
> > . * *shell*                 35  Shell:run     ~/PATH
> >  %  acronym<2>            2400  Dired by date        
> > /ssh:[EMAIL PROTECTED]:/home/USER/PATH * *eshell*                77  EShell 
> >          
> > /ssh:[EMAIL PROTECTED]:/home/USER/PATH
>
> The following patch shall fix it for both shell and eshell (when
> applying cd):
>
> *** /usr/local/src/emacs/lisp/files.el.~1~    Sun Dec 16 20:44:34 2007
> --- /usr/local/src/emacs/lisp/files.el        Tue Dec 18 16:09:41 2007
> ***************
> *** 633,639 ****
>         (error "%s is not a directory" dir)
>       (error "%s: no such directory" dir))
>       (if (file-executable-p dir)
> !     (setq default-directory dir)
>         (error "Cannot cd to %s:  Permission denied" dir))))
>
>   (defun cd (dir)
> --- 633,640 ----
>         (error "%s is not a directory" dir)
>       (error "%s: no such directory" dir))
>       (if (file-executable-p dir)
> !     (setq default-directory dir
> !           list-buffers-directory dir)
>         (error "Cannot cd to %s:  Permission denied" dir))))
>
>   (defun cd (dir)
>
> > Thanks a lot
> >
> > Andreas Röhler
>
> Best regards, Michael.

Thanks a lot, that works when starting shell while in a
remote dired buffer.

With ssh starting from local shell buffer, it's
unchanged for shell and eshell.

So for me, knowing the path, it's OK now. OTOH should
you have time to implement that for ssh from shell
buffer too, I'll be glad to see it.

Thanks again

Andreas Röhler

GNU Emacs 23.0.50.1 (i686-pc-linux-gnu, GTK+ Version
2.10.6) of 2007-12-09


_______________________________________________
Tramp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to