help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problems with dired-filename-at-point (was Re: dired: goto directory


From: Kevin Rodgers
Subject: Re: problems with dired-filename-at-point (was Re: dired: goto directory of a file)
Date: Thu, 15 Jan 2004 15:57:26 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

leo wrote:

thanks. i have tried this and it works in dired-find buffers but
unfortunatly not in dired subdirs:

dired-filename-at-point doesn't work correctly in subdirs. eg the buffer
shows something like

  c:/_home:
  total 17  free 6651216
  drwxrwxrwx        0 Jan 15 15:13 .
  drwxrwxrwx        0 Jan  1  1970 ..
  drwxrwxrwx        0 Jan  6 16:24 emacs
  [...]

  c:/_home/emacs:
  total 3
  drwxrwxrwx        0 Jan  6 16:24 .
  drwxrwxrwx        0 Jan 15 15:13 ..
  drwxrwxrwx        0 Jan 15 17:41 user-lisp
  [...]

  c:/_home/emacs/user-lisp:
  total 36
  drwxrwxrwx        0 Jan 16 09:23 .
  drwxrwxrwx        0 Jan  6 16:24 ..
  -rw-rw-rw-     4922 Jan 15 17:41 leo-frames.el

now i set the point to the line with leo-frames.el, then
`dired-filename-at-point' tells me c:/_home/leo-frames.el. that's obviously
wrong.

Use the the dired-current-directory function (and you won't even have to strip
off "leo-frames.el" to get the directory name).

--
Kevin Rodgers



reply via email to

[Prev in Thread] Current Thread [Next in Thread]