help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open many buffers


From: Kevin Rodgers
Subject: Re: Open many buffers
Date: Tue, 08 Jun 2010 21:54:14 -0600
User-agent: Thunderbird 2.0.0.24 (Macintosh/20100228)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]