home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.bug
- Path: sparky!uunet!cis.ohio-state.edu!blackbird.mitre.org!dsg
- From: dsg@blackbird.mitre.org (David S. Goldberg)
- Subject: Re: dired not following symbolic links in 18.58
- Message-ID: <DSG.92Dec17103956@blackbird.mitre.org>
- Sender: gnulists@ai.mit.edu
- Organization: The Mitre Corp., Bedford, MA.
- References: dsg@blackbird.mitre.org (David S. Goldberg)
- Distribution: gnu
- Date: Thu, 17 Dec 1992 15:39:56 GMT
- Approved: bug-gnu-emacs@prep.ai.mit.edu
- Lines: 40
-
- >>>>> In article <1992Dec17.001310.18461@parc.xerox.com>,
- >>>>> macdonal@xerox.com (Dale MacDonald) writes:
-
- Dale> Emacs version: 18.58.10 OS: SunOS 4.1.{1,2,3}
-
- Dale> Since moving to 18.58 dired no longer follows symbolic links.
- Dale> All attempts to follow one, either by C-xC-v and giving a name
- Dale> which happens to be a link, or by trying to open or view a link
- Dale> already being displayed in dired. (This is particularly
- Dale> annoying around here since ~/ happens to be a symlink.)
-
- Dale> Anyone else see this?
-
- Yes, and I still see the same thing in 18.59 on an SGI running IRIX
- 4.0.5. I seem to remember this is far back as 18.57, but I'm not
- positive. Here's what I ended up doing to work around it. Make sure
- this stuff is loaded after dired. I've found that I also need this
- with tree dired.
-
- (defun dired-is-symlink ()
- (let ((realfile (file-symlink-p (dired-get-filename))))
- (if realfile realfile (dired-get-filename))))
-
- (defun dired-find-file ()
- "In dired, visit the file or directory named on this line."
- (interactive)
- (find-file (dired-is-symlink)))
-
- (defun dired-find-file-other-window ()
- "In dired, visit this file or directory in another window."
- (interactive)
- (find-file-other-window (dired-is-symlink)))
-
- --
- Dave Goldberg UNIX Systems Programmer/Administrator
- Post: The Mitre Corporation MS B020 202 Burlington Rd. Bedford, MA 01730
- Phone: 617-271-2460
- Domain: dsg@mbunix.mitre.org UUCP: {your neighborhood}!linus!mbunix!dsg
-
-
-