From: John Paul Wallington <jpw@shootybangbang.com>
Subject: multi-occur-all-buffers suggestion, plus maybe a bug
Date: Wed, 15 May 2002 15:00:36 +0100 [thread overview]
Message-ID: <E177zKW-0004OK-00@bundalo.shootybangbang.com> (raw)
Do people think the following function, or something like it, is a
good idea ?
(defun multi-occur-all-buffers (regexp &optional nlines)
"Show all lines in all buffers containing a match for REGEXP.
See also `multi-occur'."
(interactive (occur-read-primary-args))
(occur-1 regexp nlines (remove (get-buffer "*Occur*") (buffer-list))))
Also, presently C-u M-x occur will error:
Wrong type argument: number-or-marker-p, (4)
(as will other commands that use `occur-read-primary-args')
One way to change this is like so:
*** replace.el.orig Wed May 15 14:49:47 2002
--- replace.el Wed May 15 14:51:10 2002
***************
*** 612,618 ****
(if (equal input "")
default
input))
! current-prefix-arg))
(defun occur (regexp &optional nlines)
"Show all lines in the current buffer containing a match for REGEXP.
--- 612,619 ----
(if (equal input "")
default
input))
! (if current-prefix-arg
! (prefix-numeric-value current-prefix-arg))))
(defun occur (regexp &optional nlines)
"Show all lines in the current buffer containing a match for
Is that a good way ?
--
John Paul Wallington
next reply other threads:[~2002-05-15 14:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-15 14:00 John Paul Wallington [this message]
2002-05-15 19:35 ` multi-occur-all-buffers suggestion, plus maybe a bug Colin Walters
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E177zKW-0004OK-00@bundalo.shootybangbang.com \
--to=jpw@shootybangbang.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.