From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dirk80 Newsgroups: gmane.emacs.help Subject: Re: dired and multi-occur Date: Wed, 9 Dec 2009 01:14:37 -0800 (PST) Message-ID: <26707171.post@talk.nabble.com> References: <26635922.post@talk.nabble.com> <871vja8us6.fsf@fh-trier.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1260350117 19348 80.91.229.12 (9 Dec 2009 09:15:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Dec 2009 09:15:17 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 09 10:15:09 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NIIdX-0006kW-FO for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Dec 2009 10:15:07 +0100 Original-Received: from localhost ([127.0.0.1]:49066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIIdW-0005av-Vr for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Dec 2009 04:15:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NIIdA-0005Z3-SV for help-gnu-emacs@gnu.org; Wed, 09 Dec 2009 04:14:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NIId6-0005WH-P1 for Help-gnu-emacs@gnu.org; Wed, 09 Dec 2009 04:14:44 -0500 Original-Received: from [199.232.76.173] (port=40062 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIId6-0005WE-MV for Help-gnu-emacs@gnu.org; Wed, 09 Dec 2009 04:14:40 -0500 Original-Received: from kuber.nabble.com ([216.139.236.158]:41547) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NIId6-0008AZ-Dx for Help-gnu-emacs@gnu.org; Wed, 09 Dec 2009 04:14:40 -0500 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NIId3-0007jf-Nw for Help-gnu-emacs@gnu.org; Wed, 09 Dec 2009 01:14:37 -0800 In-Reply-To: <871vja8us6.fsf@fh-trier.de> X-Nabble-From: dirk@dirkundsari.de X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70518 Archived-At: 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.