help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: viewing random list of files in dired


From: Harry Putnam
Subject: Re: viewing random list of files in dired
Date: Sun, 18 Jan 2009 11:38:58 -0600
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux)

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

> 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"





reply via email to

[Prev in Thread] Current Thread [Next in Thread]