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: Mon, 29 Jul 2002 14:52:01 +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 1027950840 16520 127.0.0.1 (29 Jul 2002 13:54:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 29 Jul 2002 13:54:00 +0000 (UTC) Cc: emacs-devel@gnu.org, 'Andre Spiegel' Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17ZAyF-0004IL-00 for ; Mon, 29 Jul 2002 15:53:59 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17ZBFV-0005kV-00 for ; Mon, 29 Jul 2002 16:11:49 +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 17ZAyc-00027o-00; Mon, 29 Jul 2002 09:54:22 -0400 Original-Received: from mail17.messagelabs.com ([62.231.131.67]) by fencepost.gnu.org with smtp (Exim 3.35 #1 (Debian)) id 17ZAwR-0001eU-00 for ; Mon, 29 Jul 2002 09:52:07 -0400 X-VirusChecked: Checked Original-Received: (qmail 2537 invoked from network); 29 Jul 2002 13:52:05 -0000 Original-Received: from gull.midas-kapiti.com (HELO pigeon.misys.com) (193.115.208.67) by server-11.tower-17.messagelabs.com with SMTP; 29 Jul 2002 13:52:05 -0000 Original-Received: FROM gull.misys.com BY pigeon.misys.com ; Mon Jul 29 14:52:03 2002 +0100 Original-Received: by GULL with Internet Mail Service (5.5.2653.19) id ; Mon, 29 Jul 2002 14:52:05 +0100 Original-To: "'storm@cua.dk'" , rms@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:6140 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6140 > Alternatively, always name the buffer *Occur*, but provide a > occur-save-buffer > command (bound to `s') which renames the buffer to *Occur: > buffer*; then the > user can easily save precious occur buffers on a needed basis. > > The same could be done for *Help* buffers where it would > sometimes be very > useful to keep multiple help buffer around, e.g. *Help: > save-buffer* and > *Help: bury-buffer*. Perhaps that's the best solution, since as you point out we can use it in other Emacs-generated buffers. I would find it useful for *VC-log* buffers when checking in different files at the same time. Or maybe vc.el should always use the file buffer name in the temporary log buffer name. Perhaps there should be a command similar to rename-uniquely that runs some function to generate a new name. Different major modes could set this function to do the appropriate thing, e.g., M-x occur to use the original buffer's name; M-x describe-variable to use the variable's name; etc. The other suggestions: Using defadvice (on a function I have to find in replace.el) is not easy or intuitive. (Richard, was this what you meant by "customization"?) Using clone-buffer or rename-uniquely is not what I want---it will increase the amount of clutter and will not make it easy to find the buffer in the buffer list.