The dired-x.el module is available in Emacs 23.2 and later, and it gives you access to a command that does exactly what you want. After loading it (just (load "dired-x") , usually) you can call the dired-do-find-marked-files function. Here is its built-in documentation:
(dired-do-find-marked-files &optional NOSELECT) Find all marked files displaying all of them simultaneously. With optional NOSELECT just find files but do not select them. The current window is split across all files marked, as evenly as possible. Remaining lines go to bottom-most window. The number of files that can be displayed this way is restricted by the height of the current window and `window-min-height'. To keep dired buffer displayed, type Cx 2 first. To display just marked files, type Cx 1 first.
So, after loading dired-x you can simply use Mx dired-do-find-marked-files RET , and you will get exactly what your question asks: all marked files will be visited as if you were running dired-find-file on all of them.
xwl Sep 15 '10 at 6:58 2010-09-15 06:58
source share