all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Harry Putnam'" <reader@newsguy.com>, <help-gnu-emacs@gnu.org>
Subject: RE: viewing random list of files in dired
Date: Sun, 18 Jan 2009 09:48:29 -0800	[thread overview]
Message-ID: <007d01c97994$f99ac400$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <87hc3wa4zx.fsf@newsguy.com>

> > Function `dired' will accept a list of file names as its first
> > argument. That is the key here. This is all you need, to open Dired
> > using a list `file-names':
> >
> > (dired (cons (generate-new-buffer-name "My Dired")
> >              (nreverse (mapcar (lambda (file)
> >                                  (if (file-name-absolute-p file)
> >                                      (expand-file-name file)
> >                                    file))
> >                                file-names))))
> 
> Sorry to butt in right at the end here... but is something more that I
> would need to do for your example to work?
> 
> Just evaluating it give me "Symbol's value as variable is 
> void: file-names"

Just set `file-names' to a list of files. E.g.:
(setq file-names '("some-file-in-def-dir.el" "/some/abs/file/foo.el"))

No matter how the list of file names is created, it should work.

(FWIW, in Icicles you can create a list of files (in any directories) by
choosing them interactively.)





  reply	other threads:[~2009-01-18 17:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-18 13:04 viewing random list of files in dired Andreas Politz
2009-01-18 13:54 ` Rupert Swarbrick
2009-01-18 15:10   ` Andreas Politz
2009-01-18 16:15     ` Drew Adams
2009-01-18 17:00       ` Drew Adams
2009-01-18 17:38         ` Harry Putnam
2009-01-18 17:48           ` Drew Adams [this message]
2009-01-18 18:28             ` Harry Putnam
2009-01-18 18:45               ` Drew Adams
2009-02-17 14:16   ` David Combs

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

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

  git send-email \
    --in-reply-to='007d01c97994$f99ac400$0200a8c0@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=reader@newsguy.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.