unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How make Dired automatically load file if you input a file path?
@ 2008-12-15 21:29 seberino
  2008-12-15 22:07 ` Drew Adams
  0 siblings, 1 reply; 2+ messages in thread
From: seberino @ 2008-12-15 21:29 UTC (permalink / raw)
  To: help-gnu-emacs

Dired initially asks you for a directory path.

If you give it a file path you will see a listing with just that one
file.

How make Dired *AUTOMATICALLY* load that file if you initially gave it
a file path instead of a directory path?

e.g. /etc/fstab instead of /etc

chris


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

* RE: How make Dired automatically load file if you input a file path?
  2008-12-15 21:29 How make Dired automatically load file if you input a file path? seberino
@ 2008-12-15 22:07 ` Drew Adams
  0 siblings, 0 replies; 2+ messages in thread
From: Drew Adams @ 2008-12-15 22:07 UTC (permalink / raw)
  To: seberino, help-gnu-emacs

> Dired initially asks you for a directory path.
> If you give it a file path you will see a listing
> with just that one file.
> 
> How make Dired *AUTOMATICALLY* load that file if you initially gave it
> a file path instead of a directory path?
> e.g. /etc/fstab instead of /etc

Use `find-file' (`C-x C-f'), not `dired' (`C-x d').

C-x C-f /etc opens Dired on /etc
C-x C-f /etc/fstab visits file fstab






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

end of thread, other threads:[~2008-12-15 22:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-15 21:29 How make Dired automatically load file if you input a file path? seberino
2008-12-15 22:07 ` Drew Adams

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