[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pop-to-buffer behavior
From: |
Thierry Volpiatto |
Subject: |
Re: pop-to-buffer behavior |
Date: |
Wed, 21 Apr 2010 23:08:58 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
martin rudalics <address@hidden> writes:
>> `get-buffer-window' work perfectly.
>
> Since your buffer appears in two windows simultaneously,
> `get-buffer-window-list' is probably what you want.
No, it's working like that (with get-buffer-window), i only want to know
if buffer is visible, duplicated or not.
What i was doing before was comparing the windows configurations, so
it's was important to come back in the initial buffer for comparing.
So if i have buffers A, B, C, D in current frame, i do
(get-buffer-window A)==> ok buffer A is visible
with A, A, B, C ==> same it's ok buffer A is visible.
with B, C, D ==> nil, buffer A is not visible.
And i do a different thing if buffer is visible or not.
(That's for ioccur.el)
But thanks for get-buffer-window-list, i will also need it for other
purpose ;-)
--
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/