From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Marshall, Simon" Newsgroups: gmane.emacs.devel Subject: RE: *Occur in buf*? Date: Thu, 25 Jul 2002 17:07:34 +0100 Sender: emacs-devel-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: main.gmane.org 1027613449 14227 127.0.0.1 (25 Jul 2002 16:10:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 25 Jul 2002 16:10:49 +0000 (UTC) Cc: '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 17XlCS-0003hM-00 for ; Thu, 25 Jul 2002 18:10:48 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17XlRo-0000KO-00 for ; Thu, 25 Jul 2002 18:26:40 +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 17XlCf-0005Ju-00; Thu, 25 Jul 2002 12:11:01 -0400 Original-Received: from mail17.messagelabs.com ([62.231.131.67]) by fencepost.gnu.org with smtp (Exim 3.35 #1 (Debian)) id 17Xl9S-0004qz-00 for ; Thu, 25 Jul 2002 12:07:42 -0400 X-VirusChecked: Checked Original-Received: (qmail 14894 invoked from network); 25 Jul 2002 16:07:41 -0000 Original-Received: from gull.midas-kapiti.com (HELO pigeon.misys.com) (193.115.208.67) by server-8.tower-17.messagelabs.com with SMTP; 25 Jul 2002 16:07:41 -0000 Original-Received: FROM gull.misys.com BY pigeon.misys.com ; Thu Jul 25 17:07:40 2002 +0100 Original-Received: by GULL with Internet Mail Service (5.5.2653.19) id ; Thu, 25 Jul 2002 17:07:41 +0100 Original-To: "'sds@gnu.org'" X-Mailer: Internet Mail Service (5.5.2653.19) 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:6036 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6036 > I can add an `occur-rename' command (bound to `r') that would > rename the > occur buffer as proposed and bind `clone-buffer' to 'c'. > do you like this better? > then the effect of my original patch can be accomplished by adding > `occur-rename' to `occur-mode-hook'. Sam, thanks for the suggestions. I thought that this renaming might be optional, i.e., current behaviour by default. I was thinking in terms of a user variable rather than adding to a hook. But, I'm not sure how clean the Occur buffer key (to rename the *Occur* buffer to *Occur: buf*) would actually be. Suppose M-x occur simply created an *Occur* buffer. Suppose I was to rename one to *Occur: buf* by using the key. Then, I did another M-x occur (maybe for a different regexp). Should M-x occur create another *Occur* buffer? Or reuse the *Occur: buf* buffer? The answer, of course, depends on what I happen to feel like at the time. Whichever it chooses will annoy me some of the time. "Damn, it went and created yet another buffer!" Or "damn, it overwrote my previous M-x occur buffer!". M-x occur cannot know if I had renamed the original *Occur* buffer so that *Occur: buf* is the buffer I want for future M-x occur output or so that I could keep/save that particular *Occur* buffer only. Perhaps, in this case, it should create another *Occur* buffer. If the user uses the key again to rename it to *Occur: buf*, should Emacs silently remove the old *Occur: buf* buffer? Maybe it needs some more thought. BTW, I prefer *Occur: buf* to *Occur:buf* though YMMV. I find it easier to spot the original buffer name. It follows the convention of other buffer names I've seen.