[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to search through all buffers?
From: |
John Paul Wallington |
Subject: |
Re: How to search through all buffers? |
Date: |
Sat, 05 Apr 2003 05:44:45 +0100 |
User-agent: |
Gnus/5.090017 (Oort Gnus v0.17) Emacs/21.3.50 (powerpc-unknown-linux-gnu) |
I misread `occur-read-primary-args'; this is cleaner:
(defun hanchrow-all-encompassing-occur (regexp &optional hidden-bufs-too)
"Show all lines in all visible buffers containing a match for REGEXP.
With prefix arg HIDDEN-BUFS-TOO, show lines matching in all buffers."
(interactive (occur-read-primary-args))
(multi-occur (if hidden-bufs-too
(buffer-list)
(delq nil
(mapcar (lambda (buf)
(unless (string-match "^ " (buffer-name buf))
buf))
(buffer-list))))
regexp))