From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Occur stack Date: Wed, 15 Jan 2014 10:27:33 +0200 Organization: JURTA Message-ID: <87ob3d645m.fsf@mail.jurta.org> References: <8738kq5xo5.fsf@yahoo.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1389774522 13196 80.91.229.3 (15 Jan 2014 08:28:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jan 2014 08:28:42 +0000 (UTC) Cc: Tom , Emacs developers To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 15 09:28:48 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W3LqB-0004C4-M3 for ged-emacs-devel@m.gmane.org; Wed, 15 Jan 2014 09:28:47 +0100 Original-Received: from localhost ([::1]:52878 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3LqB-0008Q0-AJ for ged-emacs-devel@m.gmane.org; Wed, 15 Jan 2014 03:28:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Lq2-0008Ps-MA for emacs-devel@gnu.org; Wed, 15 Jan 2014 03:28:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3Lpv-0000Iy-SW for emacs-devel@gnu.org; Wed, 15 Jan 2014 03:28:38 -0500 Original-Received: from [69.163.184.122] (port=34369 helo=ps18281.dreamhostps.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Lpv-0000Il-My for emacs-devel@gnu.org; Wed, 15 Jan 2014 03:28:31 -0500 Original-Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.184.122]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 33D7F33F0BF2C6; Wed, 15 Jan 2014 00:28:29 -0800 (PST) In-Reply-To: (Juanma Barranquero's message of "Tue, 14 Jan 2014 18:07:15 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 69.163.184.122 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:168445 Archived-At: >> Yes, I can do this manually if I remember to do it, > > No need to do it by hand: > > (add-hook 'occur-hook 'rename-uniquely) Or (add-hook 'occur-hook (lambda () (occur-rename-buffer t))) In addition, for more convenience of switching related buffers we could group occur buffers in the window-local tab-bar, so it will display the history of *Occur* buffers. In *Help* it could display the history of help topics, in Dired the history of directories visited with `a' (dired-find-alternate-file), etc.