From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: I wish list-buffers used my current window when it listed my buffers Date: Thu, 15 Aug 2013 12:54:32 +0800 Message-ID: <871u5vlfjr.fsf@ericabrahamsen.net> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1376542469 25718 80.91.229.3 (15 Aug 2013 04:54:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Aug 2013 04:54:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 15 06:54:31 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1V9pZu-0002FG-Cu for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Aug 2013 06:54:30 +0200 Original-Received: from localhost ([::1]:51226 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9pZu-0003Eh-3A for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Aug 2013 00:54:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9pZd-0003Dk-NJ for help-gnu-emacs@gnu.org; Thu, 15 Aug 2013 00:54:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9pZU-0001IF-0Y for help-gnu-emacs@gnu.org; Thu, 15 Aug 2013 00:54:13 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:38806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9pZT-0001Ht-QG for help-gnu-emacs@gnu.org; Thu, 15 Aug 2013 00:54:03 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V9pZS-0001qk-O7 for help-gnu-emacs@gnu.org; Thu, 15 Aug 2013 06:54:02 +0200 Original-Received: from 114.252.248.224 ([114.252.248.224]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Aug 2013 06:54:02 +0200 Original-Received: from eric by 114.252.248.224 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Aug 2013 06:54:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 114.252.248.224 User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:zs3oC1KDk+ltZXwvMpQf+Jgkkag= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92897 Archived-At: Rustom Mody writes: > On Thursday, August 15, 2013 7:32:50 AM UTC+5:30, Jay Cotton wrote: >> I've always wished list-buffers used my current window when it listed my >> buffers. I don't know why, but this rubbed me the wrong way immediately when >> I learned the command, and I've never been able to shake it. > > Does this work? > > (add-to-list 'same-window-buffer-names "*Buffer List*") Hey I was just thinking something similar about the *Help* buffer: I often look up docs for functions and variables, and then end up TAB-bing to the source file link and hitting return to see the definition. I like that the *Help* buffer itself opens a new window, but once I've got that new window I want the source file in question to re-use it, rather than going back and clobbering the window I was in. That's not quite the same thing as the OP's question, but it seems like a close cousin. I eventually found `display-buffer-alist' (I'm on 24.3), but the docstring for that is as confusing as any emacs docs I've ever read. Has anyone accomplished what I'm after? Thanks! Eric