From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: pop-to-buffer behavior Date: Wed, 21 Apr 2010 23:08:58 +0200 Organization: ThierryVolpiatto Message-ID: <878w8g3445.fsf@tux.homenetwork> References: <87vdblb2fu.fsf@tux.homenetwork> <4BCF0A52.5090701@gmx.at> <87mxwwr7ex.fsf@tux.homenetwork> <87fx2or6sq.fsf@tux.homenetwork> <4BCF60A3.3090100@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1271884372 11781 80.91.229.12 (21 Apr 2010 21:12:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Apr 2010 21:12:52 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 21 23:12:51 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 1O4hDz-0006Pd-C2 for ged-emacs-devel@m.gmane.org; Wed, 21 Apr 2010 23:12:47 +0200 Original-Received: from localhost ([127.0.0.1]:36620 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4hDy-0002kT-AK for ged-emacs-devel@m.gmane.org; Wed, 21 Apr 2010 17:12:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4hDr-0002gw-HA for emacs-devel@gnu.org; Wed, 21 Apr 2010 17:12:39 -0400 Original-Received: from [140.186.70.92] (port=38274 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4hDq-0002dm-3v for emacs-devel@gnu.org; Wed, 21 Apr 2010 17:12:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4hDo-0007V5-IO for emacs-devel@gnu.org; Wed, 21 Apr 2010 17:12:38 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:49828) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4hDo-0007Ut-ED for emacs-devel@gnu.org; Wed, 21 Apr 2010 17:12:36 -0400 Original-Received: by wyg36 with SMTP id 36so1110224wyg.0 for ; Wed, 21 Apr 2010 14:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject :organization:references:face:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=Hsg22e4AURADkQh36gBQFIeH4U8UvpFvb3JcncEXhLI=; b=fcB0QoKifdBVLLi5IWUHYsR/zyRvBQ1M/0NF6nk1RG2W2nxNq7/w9B6ypLvbxXcchY QjAFdFlvajx1P915HSpWNZjUOzyhgkhIW1gfDNSgHqP9mR4cF+MBbmQilf+tpjkOFH2N llF49lK8wB8DCL2R40B9avuQpeUK4hwTI1pSY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:organization:references:face:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=U/cRGOMoAsye0wePYiVlJpktWBNjOVK1LCFpstTGcREtrQO4Hu53UcuMoLCgWUvrsd 6yBxpmo/aRd1QcPPoOHZkQYuaCye+LncV5meuMCqypIusuER2hqLu0bffybYVuM7A4N/ g9/cOgEEAwFazFavE2lyu33YiQLQ5qBoXml4k= Original-Received: by 10.216.174.193 with SMTP id x43mr2966414wel.139.1271884354445; Wed, 21 Apr 2010 14:12:34 -0700 (PDT) Original-Received: from tux.homenetwork (202.77.197-77.rev.gaoland.net [77.197.77.202]) by mx.google.com with ESMTPS id t27sm28077988wbc.17.2010.04.21.14.12.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 21 Apr 2010 14:12:33 -0700 (PDT)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s/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:124005 Archived-At: martin rudalics 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/