From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#10770: info-display-manual replaces existing *info* buffer Date: Fri, 10 Feb 2012 12:14:56 +0200 Organization: JURTA Message-ID: <87ty2zvx7r.fsf@mail.jurta.org> References: <83pqdnam73.fsf@gnu.org> <8hbop7yhe1.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1328869443 17467 80.91.229.3 (10 Feb 2012 10:24:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Feb 2012 10:24:03 +0000 (UTC) Cc: 10770@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 10 11:24:02 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rvne3-0000QB-G6 for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Feb 2012 11:23:59 +0100 Original-Received: from localhost ([::1]:60789 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rvne3-00087q-0q for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Feb 2012 05:23:59 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:58006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rvne0-00087Y-Ie for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2012 05:23:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rvndu-0006u4-CL for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2012 05:23:56 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59173) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rvndt-0006sD-Qb for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2012 05:23:50 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Rvnf3-00056f-Ly for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2012 05:25:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Feb 2012 10:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10770 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 10770-submit@debbugs.gnu.org id=B10770.132886945319553 (code B ref 10770); Fri, 10 Feb 2012 10:25:01 +0000 Original-Received: (at 10770) by debbugs.gnu.org; 10 Feb 2012 10:24:13 +0000 Original-Received: from localhost ([127.0.0.1]:34559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RvneE-000558-JM for submit@debbugs.gnu.org; Fri, 10 Feb 2012 05:24:12 -0500 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:49386 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RvneA-00054x-56 for 10770@debbugs.gnu.org; Fri, 10 Feb 2012 05:24:09 -0500 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 4DE0F451C841; Fri, 10 Feb 2012 02:21:32 -0800 (PST) In-Reply-To: (Glenn Morris's message of "Thu, 09 Feb 2012 14:23:12 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:56753 Archived-At: >> PS maybe there should be an `info-rename' command that renames an info >> buffer to include the name of the displayed manual. > > Or maybe `rename-uniquely' should get some (optional) smart behaviour to > use more meaningful names. Names of manuals in info, names of recipient > of current mail message, etc. Then functions like `occur-rename-buffer' could be replaced with a simple buffer-local naming function (named e.g. `rename-buffer-name-function') with the behaviour similar to `compilation-buffer-name-function'. This will help to replace such customizations as: (add-hook 'occur-hook (lambda () (occur-rename-buffer t))) (setq compilation-buffer-name-function (lambda (mode-name) (generate-new-buffer-name (concat "*" (downcase mode-name) "*")))) with just: (add-hook 'occur-hook 'rename-uniquely) (add-hook 'compilation-mode-hook 'rename-uniquely)