unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Getting the currently visible buffers
@ 2022-12-02 14:33 Heime
  2022-12-02 20:05 ` Emanuel Berg
  2022-12-03 17:33 ` [External] : " Drew Adams
  0 siblings, 2 replies; 4+ messages in thread
From: Heime @ 2022-12-02 14:33 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

How can I get the currently visible buffers?



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

* Re: Getting the currently visible buffers
  2022-12-02 14:33 Getting the currently visible buffers Heime
@ 2022-12-02 20:05 ` Emanuel Berg
  2022-12-03 17:33 ` [External] : " Drew Adams
  1 sibling, 0 replies; 4+ messages in thread
From: Emanuel Berg @ 2022-12-02 20:05 UTC (permalink / raw)
  To: help-gnu-emacs

Heime wrote:

> How can I get the currently visible buffers?

Iterate the windows?

-- 
underground experts united
https://dataswamp.org/~incal




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

* RE: [External] : Getting the currently visible buffers
  2022-12-02 14:33 Getting the currently visible buffers Heime
  2022-12-02 20:05 ` Emanuel Berg
@ 2022-12-03 17:33 ` Drew Adams
  2022-12-03 20:29   ` Heime
  1 sibling, 1 reply; 4+ messages in thread
From: Drew Adams @ 2022-12-03 17:33 UTC (permalink / raw)
  To: Heime, 'Help-Gnu-Emacs (help-gnu-emacs@gnu.org)'

[-- Attachment #1: Type: text/plain, Size: 160 bytes --]

> How can I get the currently visible buffers?

(cl-delete-if (lambda (buf)
                (not (get-buffer-window buf 'visible)))
		    (buffer-list))


[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 12919 bytes --]

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

* RE: [External] : Getting the currently visible buffers
  2022-12-03 17:33 ` [External] : " Drew Adams
@ 2022-12-03 20:29   ` Heime
  0 siblings, 0 replies; 4+ messages in thread
From: Heime @ 2022-12-03 20:29 UTC (permalink / raw)
  To: Drew Adams; +Cc: 'Help-Gnu-Emacs (help-gnu-emacs@gnu.org)'

------- Original Message -------
On Saturday, December 3rd, 2022 at 5:33 PM, Drew Adams <drew.adams@oracle.com> wrote:


> > How can I get the currently visible buffers?
> 
> 
> (cl-delete-if (lambda (buf)
> (not (get-buffer-window buf 'visible)))
> (buffer-list))

I want to exclude the speedbar and buffers from other frames.




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

end of thread, other threads:[~2022-12-03 20:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-02 14:33 Getting the currently visible buffers Heime
2022-12-02 20:05 ` Emanuel Berg
2022-12-03 17:33 ` [External] : " Drew Adams
2022-12-03 20:29   ` Heime

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).