unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* how to open directory listing of current buffer ?
@ 2013-06-25 11:21 rsk82
  2013-06-25 14:01 ` Drew Adams
       [not found] ` <mailman.2377.1372168899.22516.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: rsk82 @ 2013-06-25 11:21 UTC (permalink / raw)
  To: help-gnu-emacs

What key command to use when I want see listing of the directory in which the currently open file lies ?


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: how to open directory listing of current buffer ?
  2013-06-25 11:21 how to open directory listing of current buffer ? rsk82
@ 2013-06-25 14:01 ` Drew Adams
  2013-06-25 19:57   ` Dmitry Gutov
       [not found]   ` <mailman.2417.1372190267.22516.help-gnu-emacs@gnu.org>
       [not found] ` <mailman.2377.1372168899.22516.help-gnu-emacs@gnu.org>
  1 sibling, 2 replies; 6+ messages in thread
From: Drew Adams @ 2013-06-25 14:01 UTC (permalink / raw)
  To: rsk82, help-gnu-emacs

> What key command to use when I want see listing of the directory in which
> the currently open file lies ?

`C-x d' or `C-x C-d'

`C-h a list directory' tells you about `C-x C-d' (`list-directory').
`C-h a directory' tells you about both (and more).



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how to open directory listing of current buffer ?
       [not found] ` <mailman.2377.1372168899.22516.help-gnu-emacs@gnu.org>
@ 2013-06-25 14:27   ` rsk82
  0 siblings, 0 replies; 6+ messages in thread
From: rsk82 @ 2013-06-25 14:27 UTC (permalink / raw)
  To: help-gnu-emacs

Is there a way to open it in separate buffer ('tab') and not in a split window ? I use elscreen and that way would be easier on small screen laptop.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how to open directory listing of current buffer ?
  2013-06-25 14:01 ` Drew Adams
@ 2013-06-25 19:57   ` Dmitry Gutov
       [not found]   ` <mailman.2417.1372190267.22516.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 6+ messages in thread
From: Dmitry Gutov @ 2013-06-25 19:57 UTC (permalink / raw)
  To: Drew Adams; +Cc: help-gnu-emacs, rsk82

Drew Adams <drew.adams@oracle.com> writes:

>> What key command to use when I want see listing of the directory in which
>> the currently open file lies ?
>
> `C-x d' or `C-x C-d'

Or: `M-x dired-jump'.

If you (require 'dired-x), it will be bound to `C-x C-j'.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how to open directory listing of current buffer ?
       [not found]   ` <mailman.2417.1372190267.22516.help-gnu-emacs@gnu.org>
@ 2013-06-25 20:47     ` Emanuel Berg
  2013-06-25 21:11       ` Drew Adams
  0 siblings, 1 reply; 6+ messages in thread
From: Emanuel Berg @ 2013-06-25 20:47 UTC (permalink / raw)
  To: help-gnu-emacs

Dmitry Gutov <dgutov@yandex.ru> writes:

> Or: `M-x dired-jump'.

I tried that in Gnus (from the buffer displaying your message) and
I ended up in ~/.w3m - I get that not all buffers have files
associated with them, but perhaps this should be communicated
somehow instead of that kind of arbitrary (?) behaviour. Just a
thought.

-- 
Emanuel Berg - programmer (hire me! CV below)
computer projects: http://user.it.uu.se/~embe8573
internet activity: http://home.student.uu.se/embe8573


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: how to open directory listing of current buffer ?
  2013-06-25 20:47     ` Emanuel Berg
@ 2013-06-25 21:11       ` Drew Adams
  0 siblings, 0 replies; 6+ messages in thread
From: Drew Adams @ 2013-06-25 21:11 UTC (permalink / raw)
  To: Emanuel Berg, help-gnu-emacs

> > Or: `M-x dired-jump'.
> 
> I tried that in Gnus (from the buffer displaying your message) and
> I ended up in ~/.w3m - I get that not all buffers have files
> associated with them, but perhaps this should be communicated
> somehow instead of that kind of arbitrary (?) behaviour. Just a
> thought.

Consider filing a bug report: `M-x report-emacs-bug'.

For a starter, the doc string of `dired-jump' says what happens if "in a file" or "in Dired", but not what happens otherwise.

Looking at the `dired-jump' code (from a recent 24 Dev snapshot), it seems that `default-directory' is used for the otherwise case.  That should at least be documented.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-06-25 21:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-25 11:21 how to open directory listing of current buffer ? rsk82
2013-06-25 14:01 ` Drew Adams
2013-06-25 19:57   ` Dmitry Gutov
     [not found]   ` <mailman.2417.1372190267.22516.help-gnu-emacs@gnu.org>
2013-06-25 20:47     ` Emanuel Berg
2013-06-25 21:11       ` Drew Adams
     [not found] ` <mailman.2377.1372168899.22516.help-gnu-emacs@gnu.org>
2013-06-25 14:27   ` rsk82

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).