all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: martin rudalics <rudalics@gmx.at>
Cc: emacs-devel@gnu.org
Subject: Re: pop-to-buffer behavior
Date: Wed, 21 Apr 2010 23:08:58 +0200	[thread overview]
Message-ID: <878w8g3445.fsf@tux.homenetwork> (raw)
In-Reply-To: <4BCF60A3.3090100@gmx.at> (martin rudalics's message of "Wed, 21 Apr 2010 22:31:31 +0200")

martin rudalics <rudalics@gmx.at> 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/




      reply	other threads:[~2010-04-21 21:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-21  9:05 pop-to-buffer behavior Thierry Volpiatto
2010-04-21 14:23 ` martin rudalics
2010-04-21 18:23   ` Thierry Volpiatto
2010-04-21 18:37     ` Thierry Volpiatto
2010-04-21 20:31       ` martin rudalics
2010-04-21 21:08         ` Thierry Volpiatto [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878w8g3445.fsf@tux.homenetwork \
    --to=thierry.volpiatto@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=rudalics@gmx.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.