From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: akihisa@mail.ne.jp (Akihisa) Newsgroups: gmane.emacs.help Subject: Re: color-moccur -- multi-buffer occur mode Date: 25 Nov 2003 19:09:39 -0800 Organization: http://groups.google.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <96f8e458.0311251909.2bb3ba41@posting.google.com> References: NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1069816582 5699 80.91.224.253 (26 Nov 2003 03:16:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Nov 2003 03:16:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 26 04:16:19 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AOqA7-0001tL-00 for ; Wed, 26 Nov 2003 04:16:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AOr5Z-0002Qb-Qk for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Nov 2003 23:15:41 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.sources,gnu.emacs.help Original-Lines: 42 Original-NNTP-Posting-Host: 202.32.178.37 Original-X-Trace: posting.google.com 1069816179 10253 127.0.0.1 (26 Nov 2003 03:09:39 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 26 Nov 2003 03:09:39 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.sources:9829 gnu.emacs.help:118642 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:14584 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14584 Stefan Monnier wrote > You might want to take a look at the Emacs-CVS code where occur.el > has been expanded with some kind of multi-occur thingy. > I haven't looked at your code and neither have I looked at the multi-occur > thingy in Emacs-CVS, so maybe they have nothing in common other than their > name, tho. I didn't know that... So I tried out multi-occur. I think multi-occur is similar to moccur of color-moccur, but color-moccur has many advantages. Interface - color-moccur:M-x moccur regexp - multi-occur:M-x multi-occur buffer-name1 buffer-name2... regexp I have to type buffer-names to search in multi-occur. But I'm too lazy to type buffer-names. Goto-Occurrences multi-occur shows *Occur* buffer. If I'd like to display the occurrence, I have to type "C-c C-c C-x o" many times. If I use color-moccur, just type only "j" or "cursor key". Regexp To search "(defun multi-occur (" and "(defun moccur (", I have to type "defun.+occur". In color-moccur (if moccur-split-word is non-nil), just type "defun occur". Other functions dmoccur:open files and run moccur. It's very powerful. You can set a name and a directory to search (or directories), defalut regexp (or function to make regexp), to recursively search. It's easy to search time-string or files in deep directory tree. But it's complicated to customize. dired-do-moccur, Buffer-menu-moccur, ibuffer-do-occur Akihisa Matsushita : akihisa@mail.ne.jp