From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Politz Newsgroups: gmane.emacs.help Subject: Re: next-error for dired-find? Date: Thu, 26 Feb 2009 05:06:06 +0100 Organization: FH-Trier Message-ID: <1235621226.107582@arno.fh-trier.de> References: <2cbee169-8991-400e-b91f-5b8950e822f2@r4g2000yqa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1235623249 29011 80.91.229.12 (26 Feb 2009 04:40:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Feb 2009 04:40:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 26 05:42:06 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 1LcY4S-0008PP-GT for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Feb 2009 05:42:04 +0100 Original-Received: from localhost ([127.0.0.1]:40197 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LcY37-0004vP-QR for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Feb 2009 23:40:41 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!newshub.sdsu.edu!feeder.erje.net!news-2.dfn.de!news.uni-stuttgart.de!news.belwue.de!news.uni-kl.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 143-93-54-11.arno.fh-trier.de Original-X-Trace: news.uni-kl.de 1235621308 11970 143.93.54.11 (26 Feb 2009 04:08:28 GMT) Original-X-Complaints-To: usenet@news.uni-kl.de Original-NNTP-Posting-Date: Thu, 26 Feb 2009 04:08:28 +0000 (UTC) User-Agent: Mozilla-Thunderbird 2.0.0.17 (X11/20081018) In-Reply-To: <2cbee169-8991-400e-b91f-5b8950e822f2@r4g2000yqa.googlegroups.com> Cache-Post-Path: arno.fh-trier.de!unknown@dslb-084-059-114-208.pools.arcor-ip.net X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) Original-Xref: news.stanford.edu gnu.emacs.help:167089 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:62385 Archived-At: Mike Halloran wrote: > Is there a good way to run a file search, and use the c-x backtick (c- > x `) (next-error) command to jump to each file? > > c-x backtick works with grep, and grep-find. Basically, I am looking > to do a quick browse through each cpp file in my source tree. > > Any thoughts? A quick look at `next-error-function' lead me to this most simplistic solution. Maybe this already implemented somewhere, I can't tell. (defun dired-next-error-function (arg reset) (dired-next-line arg) (dired-advertised-find-file)) ;; this is just one way to set the local `next-error-function' ;; variable (add-hook 'dired-mode-hook #'(lambda nil (setq next-error-function 'dired-next-error-function))) -ap