From: Dirk80 <dirk@dirkundsari.de>
To: Help-gnu-emacs@gnu.org
Subject: Re: dired and multi-occur
Date: Wed, 9 Dec 2009 01:14:37 -0800 (PST) [thread overview]
Message-ID: <26707171.post@talk.nabble.com> (raw)
In-Reply-To: <871vja8us6.fsf@fh-trier.de>
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.
next prev parent reply other threads:[~2009-12-09 9:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-04 15:30 dired and multi-occur Dirk80
2009-12-04 18:21 ` Andreas Politz
2009-12-09 9:14 ` Dirk80 [this message]
2009-12-05 7:59 ` Kevin Rodgers
2009-12-05 10:20 ` Thierry Volpiatto
[not found] <mailman.12194.1259940624.2239.help-gnu-emacs@gnu.org>
2009-12-05 14:03 ` Michael Heerdegen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=26707171.post@talk.nabble.com \
--to=dirk@dirkundsari.de \
--cc=Help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.