unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Allan Gottlieb <gottlieb@nyu.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: From file to dired with that file choosen
Date: Thu, 28 Aug 2008 21:48:17 -0400	[thread overview]
Message-ID: <yu9abewwpzy.fsf@nyu.edu> (raw)
In-Reply-To: <48B726F3.3070009@gmail.com> (Lennart Borgman's message of "Fri\, 29 Aug 2008 00\:30\:11 +0200")

At Fri, 29 Aug 2008 00:30:11 +0200 "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> wrote:

> How do you open dired from a file and go to that file in the dired buffer?

C-x C-j runs the command dired-jump
  which is an interactive compiled Lisp function in `dired-x.el'.
It is bound to C-x C-j.
(dired-jump &optional OTHER-WINDOW)

Jump to dired buffer corresponding to current buffer.
If in a file, dired the current directory and move to file's line.
If in Dired already, pop up a level and goto old directory's line.
In case the proper dired file line cannot be found, refresh the dired
buffer and try again.

Hope this helps,
allan




      parent reply	other threads:[~2008-08-29  1:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-28 22:30 From file to dired with that file choosen Lennart Borgman (gmail)
2008-08-29  0:02 ` Nikolaj Schumacher
2008-08-29  0:07   ` Lennart Borgman (gmail)
2008-08-29  1:48 ` Allan Gottlieb [this message]

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=yu9abewwpzy.fsf@nyu.edu \
    --to=gottlieb@nyu.edu \
    --cc=help-gnu-emacs@gnu.org \
    /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).