From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Re: I wish list-buffers used my current window when it listed my buffers Date: Thu, 15 Aug 2013 09:31:55 +0200 Message-ID: <87k3jns93o.fsf@gmail.com> References: <871u5vlfjr.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1376551951 16391 80.91.229.3 (15 Aug 2013 07:32:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Aug 2013 07:32:31 +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 09:32:33 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 1V9s2p-0007Xw-QI for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Aug 2013 09:32:31 +0200 Original-Received: from localhost ([::1]:51658 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9s2p-00088i-DU for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Aug 2013 03:32:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9s2a-00087i-Br for help-gnu-emacs@gnu.org; Thu, 15 Aug 2013 03:32:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9s2U-0004Pp-9t for help-gnu-emacs@gnu.org; Thu, 15 Aug 2013 03:32:16 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:52227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9s2U-0004Ph-4J for help-gnu-emacs@gnu.org; Thu, 15 Aug 2013 03:32:10 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V9s2S-0007CB-N3 for help-gnu-emacs@gnu.org; Thu, 15 Aug 2013 09:32:08 +0200 Original-Received: from g231111206.adsl.alicedsl.de ([92.231.111.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Aug 2013 09:32:08 +0200 Original-Received: from tjolitz by g231111206.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Aug 2013 09:32:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 54 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: g231111206.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:DgoUzcsR41dQV/xY2PZU5R/kCS8= 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:92899 Archived-At: Eric Abrahamsen writes: > 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. same thing here > 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. I like the fact that the help buffer opens in another window, but I would like to be able to "remote-control" it from the source buffer where I called C-h f or C-h v or so. With point remaining in the source buffer, I can scroll up and down the help buffer, but I would like to have commands like 1. help-kill-buffer-and-go-back-to-original-window-config 2. help-go-to-source (i.e. first link in help buffer) 3. help-back-to-original-window-config (without killing the help buffer -> winner-undo might do this job) 4. help-restore-window-config (winner-redo or winner-undo might do the job. go back to the window-config that resulted after the help call, e.g. after visiting one or more source-files) 5. help-select-links (with-ido or so, i.e. collect all the links - except to the source file - in the help buffer in an alist and use that collection for quick selection in the mini-buffer. All this should be done remotely without a need to switch to the help buffer. C-h f and C-h v are such frequent commands that avoiding the switching of windows and maybe TAB-ing involved when using Emacs help functionality would be a real improvement - IMO. -- cheers, Thorsten