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

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

Re: dired and multi-occur


From: Dirk80
Subject: Re: dired and multi-occur
Date: Wed, 9 Dec 2009 01:14:37 -0800 (PST)


Andreas Politz wrote:
> 
> You need to use `mapcar'.
> 

Hi,

thank you very much. `mapcar' is the solution. 

Here the code:
(defun my-dired-multi-occur (string)
  "Search string in files marked by dired."
  (interactive "MList lines matching regexp: ")
  (require 'dired)
  (multi-occur (mapcar 'find-file (dired-get-marked-files)) string))

And thank you for the other answers. 
`dired-do-moccur' is also working fine.

Greetings,
Dirk
-- 
View this message in context: 
http://old.nabble.com/dired-and-multi-occur-tp26635922p26707171.html
Sent from the Emacs - Help mailing list archive at Nabble.com.





reply via email to

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