From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Open many buffers Date: Tue, 08 Jun 2010 21:54:14 -0600 Message-ID: References: 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: dough.gmane.org 1276055814 6255 80.91.229.12 (9 Jun 2010 03:56:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Jun 2010 03:56:54 +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 Jun 09 05:56:53 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1OMCPF-0003rn-Kq for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Jun 2010 05:56:52 +0200 Original-Received: from localhost ([127.0.0.1]:44267 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMCP0-0005UF-CJ for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Jun 2010 23:56:30 -0400 Original-Received: from [140.186.70.92] (port=56544 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMCOT-0004fn-Jz for help-gnu-emacs@gnu.org; Tue, 08 Jun 2010 23:56:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMCN4-00061g-Jd for help-gnu-emacs@gnu.org; Tue, 08 Jun 2010 23:54:31 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:60624) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMCN4-00061Y-BG for help-gnu-emacs@gnu.org; Tue, 08 Jun 2010 23:54:30 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OMCMx-00034p-6R for help-gnu-emacs@gnu.org; Wed, 09 Jun 2010 05:54:23 +0200 Original-Received: from c-71-237-24-138.hsd1.co.comcast.net ([71.237.24.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Jun 2010 05:54:23 +0200 Original-Received: from kevin.d.rodgers by c-71-237-24-138.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Jun 2010 05:54:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ connect(): No such file or directory Original-Lines: 34 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-71-237-24-138.hsd1.co.comcast.net User-Agent: Thunderbird 2.0.0.24 (Macintosh/20100228) In-Reply-To: X-detected-operating-system: by eggs.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:73860 Archived-At: Andrea Crotti wrote: > I don't see in the emacs functions anything like > "visit-all-the-buffers-matching-this-regexp". > > It would be useful sometimes, now I use something like this in the git > projects > > --8<---------------cut here---------------start------------->8--- > (defun open-git-files () > "Visit all the files in the current git project" > (interactive) > (dolist > (file (split-string (shell-command-to-string "git ls-files"))) > (message "Opening %s" file) > (find-file file))) > --8<---------------cut here---------------end--------------->8--- > > But it opens too much often. > > Something that > - ask for a regexp > - visit all the buffers > - automatically set up a guessed best way to place them on the frame (or > maybe creates a new elscreen for each one for example) > > Is there anything like this somewhere? Not a regexp, but wildcard patterns: C-x C-f *.c RET -- Kevin Rodgers Denver, Colorado, USA