En Emacs 23.2 y superior, el módulo dired-x.el
está disponible y le da acceso a un comando que hace exactamente lo que usted desea. Después de cargarlo (solo (load "dired-x")
, normalmente), podrá invocar la función dired-do-find-marked-files
. Aquí está su base de documentación:
(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 C-x 2 first.
To display just marked files, type C-x 1 first.
Así que después de dired-x
se carga, sólo puede utilizar Mxdired-do-find-marked-files
RET y obtendrá exactamente lo que su pregunta se refiere a: todos los archivos marcados serán visitados como aunque corriste dired-find-file
en todos ellos.
¡Gracias por esto! Pequeño punto estilístico pero no necesitas usar 'let *' en este caso ('let' es suficiente). Y realmente podríamos simplificar esa última forma para '(mapc 'find-file (dired-get-marked-files nil arg))'. – camdez