From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Re: Some testing issues Date: Fri, 14 Jul 2017 11:55:33 +0200 Message-ID: <87o9sngx62.fsf@rosalinde> References: <8737a8j61r.fsf@rosalinde> <59608730.3050308@gmx.at> <87y3rznfrj.fsf@rosalinde> <5961DF42.5020000@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1500026374 12245 195.159.176.226 (14 Jul 2017 09:59:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 14 Jul 2017 09:59:34 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Stephen Berman , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 14 11:59:30 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 1dVxNh-0002my-GF for ged-emacs-devel@m.gmane.org; Fri, 14 Jul 2017 11:59:29 +0200 Original-Received: from localhost ([::1]:36628 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVxNm-0004jV-Ip for ged-emacs-devel@m.gmane.org; Fri, 14 Jul 2017 05:59:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVxJz-0002fI-D6 for emacs-devel@gnu.org; Fri, 14 Jul 2017 05:55:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVxJw-0006xL-CP for emacs-devel@gnu.org; Fri, 14 Jul 2017 05:55:39 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:61938) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVxJv-0006w5-Ux for emacs-devel@gnu.org; Fri, 14 Jul 2017 05:55:36 -0400 Original-Received: from rosalinde ([83.135.15.98]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MQQzk-1d4Z7B42EW-00Tp5v; Fri, 14 Jul 2017 11:55:34 +0200 In-Reply-To: <5961DF42.5020000@gmx.at> (martin rudalics's message of "Sun, 09 Jul 2017 09:46:10 +0200") X-Provags-ID: V03:K0:iGNO+SK58XzCKNGQfHxVeqVSOC1EyjhtiinifPBNjcJyDjZHLn1 kzMFsjmVQ/AMPg5tuHcgLnoqaJ27/bvM8BfwH5+mEL+BUJTzLxACB17QGtV+fUJP/z+SYQd 1EsaUbWIlZWCQCBafJgeEqe4Z13upEJwcAwbYh2ye1KrXS6HC434IYb3Izo3MozkUaNbeti 8nBJ3HiMNKjzZ65GEB64Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:ZK1PsRjy7Pk=:cpHuxcc8fPVm0mp/PRZeLa atLInDmD4x6lWNGCvf/8Ic92kmJPndoDmYvyHUYEUosI3UgVK5RtoU5ShnUqeyG4JD4t5piAd tzsipdJTQpRYMZRHQVw9xMM+dyrMuUhvDjJhwPkjsnBQy0JEzJ2hNu8VbWQFhiWKsaQhqfIVJ 7XTSb2BpLOCWgGSXr3fMiTkSwuL5Pg0x6Y1CUQgnGfeiGIe0yU+2EowO/lf6bQg9wrXyQJsRm zflN/nPDWF+dIymMKgSGNc7NvRwlLys313lCYxgRntjpQ9I+h8wCFgRZgJ4T8GwjsPI0DP+z6 x3io6u0BB2yBqppzjLqdorBvwonnfgmx7p6UQLF0x/p6KEo33wur2eOGZC/Emt/eS4egi6A/o a1WKYd/3mCXszOjojoqABk+ShXGRxnQEPmcxgrV6cj2+YTGxXMre1BxbBSnKPXoujtvDoXjyA RRtb0fXP/MwYzlFb+b1QYFq9QebXwEj/Bw6iv7i1xoajvyF4ioSuLLQOfiwIAM4NK1XyIqrsU qG+6kJkqKqQoJB7cOzMBJI0A2SSRYEq8iLd2yO8hUfrJRkpHq8syzqE9L0EI3dH0/N+5luBjU 3ZIEzKWvNS2ofYc2veMEuQ/nv/EvnGfuiVsQv3bEkUOwNaQL+li0m8gC0Pgw4tR7ts6E3VQFc EnmWFEBJWTbP9kqJO1l+SnjOXkncBZnT0OtYhn31v3IoJFJoFdEX6wRR+Wdxec4d/xSnU7vYW RNKw755tuo8PyoFgnE8KNcuPsTtG9UUAKorVpMnXXYuZcN0oLhYCzihIqNFx8aIP6y0GdQkg X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.19 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:216643 Archived-At: On Sun, 09 Jul 2017 09:46:10 +0200 martin rudalics wrote: >> True, though when I step through the code in the interactive test, the >> condition (pos-visible-in-window-p shown) is true, so recenter is not >> called; so the question to me is why this is not the case in the batch r= un. > > =E2=80=98pos-visible-in-window-p=E2=80=99 is specified as > > DEFUN ("pos-visible-in-window-p", Fpos_visible_in_window_p, > ... > Lisp_Object in_window =3D Qnil; > > ... > return in_window; > > so if none of the conditions it checks succeeds, it will return nil. I see; thanks. >> Thanks for clarifying that for me. I guess I'll have to leave such >> features untested, or is there an alternative? > > You can wrap them in a (skip-unless (display-graphic-p)) which means > that they are allowed to fail in interactive use only. Seems like a good idea; thanks for the pointer. Steve Berman