From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: pop-to-buffer behavior Date: Wed, 21 Apr 2010 16:23:14 +0200 Message-ID: <4BCF0A52.5090701@gmx.at> References: <87vdblb2fu.fsf@tux.homenetwork> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1271859817 7618 80.91.229.12 (21 Apr 2010 14:23:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Apr 2010 14:23:37 +0000 (UTC) Cc: emacs-devel@gnu.org To: Thierry Volpiatto Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 21 16:23:36 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O4apy-0008C0-LC for ged-emacs-devel@m.gmane.org; Wed, 21 Apr 2010 16:23:34 +0200 Original-Received: from localhost ([127.0.0.1]:56674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4apx-0000OB-Vp for ged-emacs-devel@m.gmane.org; Wed, 21 Apr 2010 10:23:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4apt-0000O0-QS for emacs-devel@gnu.org; Wed, 21 Apr 2010 10:23:29 -0400 Original-Received: from [140.186.70.92] (port=35408 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4app-0000Mn-Ds for emacs-devel@gnu.org; Wed, 21 Apr 2010 10:23:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4apk-0005T6-SE for emacs-devel@gnu.org; Wed, 21 Apr 2010 10:23:25 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:33485) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1O4apk-0005Sb-Fb for emacs-devel@gnu.org; Wed, 21 Apr 2010 10:23:20 -0400 Original-Received: (qmail invoked by alias); 21 Apr 2010 14:23:16 -0000 Original-Received: from 62-47-56-61.adsl.highway.telekom.at (EHLO [62.47.56.61]) [62.47.56.61] by mail.gmx.net (mp025) with SMTP; 21 Apr 2010 16:23:16 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18Al1RUQyUAV93Sb7/ZXZ7K6huesIzyf2Fsl5uoXA 813Khs4p9YKXsS User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <87vdblb2fu.fsf@tux.homenetwork> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.71999999999999997 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:123982 Archived-At: > 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