Re: efs: Symlinks to EFS directories
Steven Whatley (swhatley@blkbox.com)
Tue, 11 Aug 1998 07:48:56 -0500 (CDT)
On Sun, 9 Aug 1998, Charles G Waldman wrote:
> Should it work if I make a symbolic link like this:
>
> unix% ls -l ~/LINK
>
> lrwxrwxrwx 1 me 38 Aug 7 23:23 /home/cgw/LINK ->
> /user@host:/home/username/
Yes, this does work but you need to add the following to your .emacs file:
;; From: Rui-Tao Dong <rdong@internetMCI.com>
;; Allows Emacs to follow symbolic links with efs syntax.
(defadvice find-file-noselect (before symlink activate)
(let* ((fullname (expand-file-name filename))
(link (file-symlink-p fullname)))
(and link (efs-ftp-path link)
(setq filename (expand-file-name link)))))
This works for me.
Later,
Steven
--
_|_ | _|_ "I am the way and the truth and the life.
| --|-- | No one comes to the Father except through
Steven Whatley | | | me. If you really knew me, you would
Houston, Texas | know my Father as well. From now on,
swhatley@blkbox.com | you do know him and have seen him."
http://www.blkbox.com/~swhatley/ -- Jesus Christ (John 14:6-7 NIV)