From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Some testing issues Date: Mon, 10 Jul 2017 13:33:15 -0400 Message-ID: References: <8737a8j61r.fsf@rosalinde> <87wp7jnfpz.fsf@rosalinde> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1499708011 11080 195.159.176.226 (10 Jul 2017 17:33:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Jul 2017 17:33:31 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 10 19:33:28 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUcYk-0002R3-LG for ged-emacs-devel@m.gmane.org; Mon, 10 Jul 2017 19:33:22 +0200 Original-Received: from localhost ([::1]:42278 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUcYq-0006ZN-77 for ged-emacs-devel@m.gmane.org; Mon, 10 Jul 2017 13:33:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUcYj-0006Z4-Tv for emacs-devel@gnu.org; Mon, 10 Jul 2017 13:33:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUcYg-00040B-Ph for emacs-devel@gnu.org; Mon, 10 Jul 2017 13:33:21 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:37529) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dUcYg-0003yW-JV for emacs-devel@gnu.org; Mon, 10 Jul 2017 13:33:18 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CMCwDbuGNZ/9vnr2xdHQEFAQsBg1pEijCGAJB4LAGXaIYWBAICgyNEFAECAQEBAQEBAWsohRkBBAFWIwULCzQSFBgNJIo6CK1liyYBAQEHAiaDKIhRil4BBJ8elX4BiSCHDZN8gUQ2IYEKMSEIMId7JIkcAQEB X-IPAS-Result: A0CMCwDbuGNZ/9vnr2xdHQEFAQsBg1pEijCGAJB4LAGXaIYWBAICgyNEFAECAQEBAQEBAWsohRkBBAFWIwULCzQSFBgNJIo6CK1liyYBAQEHAiaDKIhRil4BBJ8elX4BiSCHDZN8gUQ2IYEKMSEIMId7JIkcAQEB X-IronPort-AV: E=Sophos;i="5.40,341,1496116800"; d="scan'208";a="319904115" Original-Received: from 108-175-231-219.dsl.teksavvy.com (HELO pastel.home) ([108.175.231.219]) by smtp.teksavvy.com with ESMTP; 10 Jul 2017 13:33:16 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 7764E615D9; Mon, 10 Jul 2017 13:33:15 -0400 (EDT) In-Reply-To: <87wp7jnfpz.fsf@rosalinde> (Stephen Berman's message of "Sat, 08 Jul 2017 16:52:24 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:216427 Archived-At: > Is there a less brittle way to test the visibility of point? Of course, but you first have to use a less brittle question: which "point"? If you just use "point" it normally refer to a location in the current buffer regardless of any window and hence "visibility" is ill-defined. So to make it less brittle, you first have to explicitly select the window that interests you (i.e. look for a window which displays the current buffer). Stefan