[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pop-to-buffer behavior
From: |
martin rudalics |
Subject: |
Re: pop-to-buffer behavior |
Date: |
Wed, 21 Apr 2010 16:23:14 +0200 |
User-agent: |
Thunderbird 2.0.0.21 (Windows/20090302) |
> The purpose is to know if a particular buffer is actually visible in
> this window:(work fine in most case, but not in this one)
`pop-to-buffer' gives no guarantee which window it selects when the same
buffer appears in several windows at once. Also, using `pop-to-buffer'
for checking buffer-window associations is probably a bad idea.
If `buffer' denotes the "particular buffer" and "this window" means the
selected window why not simply use (eq (window-buffer) buffer) instead?
martin