[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shell - remote directories not in buffer-menu
From: |
Andreas Röhler |
Subject: |
Re: shell - remote directories not in buffer-menu |
Date: |
Tue, 18 Dec 2007 20:42:53 +0100 |
User-agent: |
KMail/1.9.5 |
Am Dienstag, 18. Dezember 2007 16:20 schrieben Sie:
> Andreas Röhler <address@hidden> 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:address@hidden:/home/USER/PATH * *eshell* 77 EShell
> >
> > /ssh:address@hidden:/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
Re: shell - remote directories not in buffer-menu, Michael Albinus, 2007/12/17