From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: *Occur in buf*? Date: Thu, 25 Jul 2002 10:37:38 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <20020725143738.GA26891@gnu.org> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1027607898 28372 127.0.0.1 (25 Jul 2002 14:38:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 25 Jul 2002 14:38:18 +0000 (UTC) Cc: "Marshall, Simon" , 'Emacs Developers' Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17Xjku-0007NV-00 for ; Thu, 25 Jul 2002 16:38:16 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17Xk0F-0006b3-00 for ; Thu, 25 Jul 2002 16:54:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17Xjl8-0007Jh-00; Thu, 25 Jul 2002 10:38:30 -0400 Original-Received: from miles by fencepost.gnu.org with local (Exim 3.35 #1 (Debian)) id 17XjkI-0007ES-00; Thu, 25 Jul 2002 10:37:38 -0400 Original-To: Sam Steingold Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6034 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6034 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.