all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* how to get list of visible buffers of current frame
@ 2008-11-13 17:01 Michal
  2008-11-13 19:40 ` Drew Adams
  2008-11-13 19:40 ` tyler
  0 siblings, 2 replies; 4+ messages in thread
From: Michal @ 2008-11-13 17:01 UTC (permalink / raw)
  To: emacs mailing list

hallo Group Members

have You got idea on how to do this?

best regards
Michal




^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: how to get list of visible buffers of current frame
  2008-11-13 17:01 how to get list of visible buffers of current frame Michal
@ 2008-11-13 19:40 ` Drew Adams
  2008-11-13 19:53   ` Drew Adams
  2008-11-13 19:40 ` tyler
  1 sibling, 1 reply; 4+ messages in thread
From: Drew Adams @ 2008-11-13 19:40 UTC (permalink / raw)
  To: 'Michal', 'emacs mailing list'

> 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






^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to get list of visible buffers of current frame
  2008-11-13 17:01 how to get list of visible buffers of current frame Michal
  2008-11-13 19:40 ` Drew Adams
@ 2008-11-13 19:40 ` tyler
  1 sibling, 0 replies; 4+ messages in thread
From: tyler @ 2008-11-13 19:40 UTC (permalink / raw)
  To: help-gnu-emacs

Michal <rabbit50@tenbit.pl> writes:

> hallo Group Members
>
> have You got idea on how to do this?
>
> best regards
> Michal
>
>
>

C-h i elisp <return> m Windows <return>
  =>

 -- Function: window-list &optional frame minibuf window
     This function returns a list of the windows on FRAME, starting
     with WINDOW.  If FRAME is `nil' or omitted, `window-list' uses the
     selected frame instead; if WINDOW is `nil' or omitted, it uses the
     selected window.

     The value of MINIBUF determines if the minibuffer window is
     included in the result list.  If MINIBUF is `t', the result always
     includes the minibuffer window.  If MINIBUF is `nil' or omitted,
     that includes the minibuffer window if it is active.  If MINIBUF
     is neither `nil' nor `t', the result never includes the minibuffer
     window.

 -- Function: window-buffer &optional window
     This function returns the buffer that WINDOW is displaying.  If
     WINDOW is omitted, this function returns the buffer for the
     selected window.

          (window-buffer)
               => #<buffer windows.texi>


-- 
Philosophy of science is about as useful to scientists as ornithology is to
birds.                                 --Richard Feynman





^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: how to get list of visible buffers of current frame
  2008-11-13 19:40 ` Drew Adams
@ 2008-11-13 19:53   ` Drew Adams
  0 siblings, 0 replies; 4+ messages in thread
From: Drew Adams @ 2008-11-13 19:53 UTC (permalink / raw)
  To: 'Michal', 'emacs mailing list'

I said:

> `C-h f get-buffer-window'

I should perhaps have mentioned using that to filter `buffer-list'.

So you'll also want to do `C-h f buffer-list'. The same general comments about
using the manual apply to finding `buffer-list'.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-11-13 19:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-13 17:01 how to get list of visible buffers of current frame Michal
2008-11-13 19:40 ` Drew Adams
2008-11-13 19:53   ` Drew Adams
2008-11-13 19:40 ` tyler

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.