unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
Cc: "Marshall, Simon" <simon.marshall@misys.com>,
	'Emacs Developers' <emacs-devel@gnu.org>
Subject: Re: *Occur in buf*?
Date: Thu, 25 Jul 2002 10:37:38 -0400	[thread overview]
Message-ID: <20020725143738.GA26891@gnu.org> (raw)
In-Reply-To: <sa08z3zc4av.fsf@glip.premonitia.com>

On Thu, Jul 25, 2002 at 09:42:16AM -0400, Sam Steingold wrote:
> > IWBNI M-x occur created an *Occur in buf* buffer so that I wouldn't have
> > to do this, rather than *Occur*.
> 
> I like your idea.
> unless there are objections, I will install the appended patch.

The reason why it's common for commands such as occur to use a global buffer
is that otherwise you end up with lots of random buffers cluttering up things.

I would suggest to instead make a C-u prefix to occur create a unique buffer,
and keep the default behavior as-is.

Also note that a more general solution is the `clone-buffer' command, which
duplicates the current buffer with a unique name; in some modes such as info
this is bound to M-n (in occur though, M-n is bound to `occur-next', though
that command actually doesn't seem to work).

-Miles
-- 
P.S.  All information contained in the above letter is false,
      for reasons of military security.

  reply	other threads:[~2002-07-25 14:37 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-25 10:05 *Occur in buf*? Marshall, Simon
2002-07-25 13:42 ` Sam Steingold
2002-07-25 14:37   ` Miles Bader [this message]
2002-07-25 15:01     ` Sam Steingold
2002-07-26 15:36       ` Richard Stallman
2002-07-26 19:53         ` Sam Steingold
2002-07-26 15:36 ` Richard Stallman
2002-07-26 17:53   ` Benjamin Rutt
2002-07-28  0:15   ` Kim F. Storm
2002-07-28  1:10     ` Miles Bader
2002-07-29  8:31       ` Kim F. Storm
2002-07-30 14:20         ` Sam Steingold
2002-07-31  1:36           ` Miles Bader
2002-07-31  5:54           ` Richard Stallman
2002-07-31 15:33             ` Sam Steingold
2002-08-09  7:32           ` Stefan Monnier
2002-08-09  7:34       ` Stefan Monnier
2002-07-29  1:42     ` Miles Bader
  -- strict thread matches above, loose matches on Subject: below --
2002-07-25 16:07 Marshall, Simon
2002-07-25 18:46 ` Robert J. Chassell
2002-07-29 13:52 Marshall, Simon

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020725143738.GA26891@gnu.org \
    --to=miles@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=simon.marshall@misys.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).