From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: how to get list of visible buffers of current frame Date: Thu, 13 Nov 2008 11:40:24 -0800 Message-ID: <000d01c945c7$ac735da0$c2b22382@us.oracle.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1226605713 18640 80.91.229.12 (13 Nov 2008 19:48:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Nov 2008 19:48:33 +0000 (UTC) To: "'Michal'" , "'emacs mailing list'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 13 20:49:32 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L0iBv-0002yy-W4 for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Nov 2008 20:49:24 +0100 Original-Received: from localhost ([127.0.0.1]:36735 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0iAn-0005Zn-S9 for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Nov 2008 14:48:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L0i3Q-0007uN-1j for help-gnu-emacs@gnu.org; Thu, 13 Nov 2008 14:40:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L0i3O-0007tm-AX for help-gnu-emacs@gnu.org; Thu, 13 Nov 2008 14:40:35 -0500 Original-Received: from [199.232.76.173] (port=49264 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0i3N-0007tW-U4 for help-gnu-emacs@gnu.org; Thu, 13 Nov 2008 14:40:33 -0500 Original-Received: from acsinet12.oracle.com ([141.146.126.234]:60259) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L0i3N-0007Nf-KE for help-gnu-emacs@gnu.org; Thu, 13 Nov 2008 14:40:33 -0500 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by acsinet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mADJeJCr024996 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 13 Nov 2008 19:40:21 GMT Original-Received: from acsmt700.oracle.com (acsmt700.oracle.com [141.146.40.70]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mADJeRde015698; Thu, 13 Nov 2008 19:40:29 GMT Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 13 Nov 2008 19:40:23 +0000 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AclFwxr14QOXz4OWQWmUWjMwOnkyNQAAGwSg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt700.oracle.com [141.146.40.70] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090201.491C82A9.00BF:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59756 Archived-At: > have You got idea on how to do this? The fish: `C-h f get-buffer-window' How to fish: The Elisp manual is your friend (again). `i' in the manual searches the index, with completion. If you use Icicles, then completion works for any number of substrings (or regexps) combined in any order. Example: `i window S-SPC buffer' shows the index entries that contain both `window' and `buffer': active-minibuffer-window buffers, controlled in windows fit-window-to-buffer get-buffer-window get-buffer-window-list minibuffer window, and next-window minibuffer windows minibuffer-scroll-window minibuffer-selected-window minibuffer-window minibuffer-window-active-p other-window-scroll-buffer replace-buffer-in-windows same-window-buffer-names set-minibuffer-window set-window-buffer shrink-window-if-larger-than-buffer switch-to-buffer-other-window window-buffer window-minibuffer-p If you want to narrow things further, typing `minibuffer ~' then removes the entries that contain `minibuffer'. Among the remaining entries, any of the following get you to the node `Buffers and Windows', which describes what you want: buffers, controlled in windows get-buffer-window get-buffer-window-list set-window-buffer window-buffer That's if you start with the keywords `window' and `buffer'. Suppose you start instead with `display' and `buffer'. Then you see these matching index entries: buffer-display-count buffer-display-table buffer-display-time display-buffer display-buffer-function display-buffer-reuse-frames display-message-or-buffer displaying a buffer edebug-save-displayed-buffer-points special-display-buffer-names Of those, the following entries get you to the same node `Buffers and Windows': buffer-display-count buffer-display-time In Icicles, you can just use `C-next'... to visit the matching entries in order, or `next'... and then `C-RET' to visit only specific entries - all in the same invocation of `i'. Nothing is as helpful as Emacs onboard help. You owe it to yourself to learn to use it. And Icicles can help Emacs help you: http://www.emacswiki.org/emacs/Icicles_-_Nutshell_View http://www.emacswiki.org/emacs/Icicles_-_Info_Enhancements