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.



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

Reply via email to