unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
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	[thread overview]
Message-ID: <40071AD6.5040809@yahoo.com> (raw)
In-Reply-To: bu74ms$210o$1@otis.netspace.net.au

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	other threads:[~2004-01-15 22:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-14 11:42 dired: goto directory of a file leo
2004-01-15 12:20 ` Barman Brakjoller
2004-01-15 15:57   ` Kevin Rodgers
2004-01-15 22:37   ` problems with dired-filename-at-point (was Re: dired: goto directory of a file) leo
2004-01-15 22:57     ` Kevin Rodgers [this message]
2004-01-28  8:54 ` dired: goto directory of a file Kai Grossjohann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40071AD6.5040809@yahoo.com \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).