Subject: bug#16853: 24.3.50; ert-run-tests-interactively difficult to abort

From: Helmut Eller <[email-masked]>
Date: Tue, 09 Sep 2014 16:14:05 +0200

On Tue, Sep 09 2014, Eli Zaretskii wrote:

>> From: Helmut Eller <[email-masked]>
>> Cc: [email-masked]
>> Date: Tue, 09 Sep 2014 15:45:27 +0200
>> 
>> On Tue, Sep 09 2014, Eli Zaretskii wrote:
>> 
>> >> From: Helmut Eller <[email-masked]>
>> >> Date: Mon, 08 Sep 2014 16:02:53 +0200
>> >> 
>> >> Try this:
>> >>  emacs -batch -eval '(message "%s" (pos-visible-in-window-p
>> >> (window-start)))'
>> >> 
>> >> It prints nil.  Shouldn't window-start always be visible?
>> >
>> > No, not when the window is not "live".
>> 
>> The window in the example is the selected window and it is live:
>>  emacs -batch -eval '(message "%s" (window-live-p (selected-window)))'
>> => t
>
> Not in batch mode, it isn't.

Are you wasting time on purpose or what is this?  The point of the
example was to show that pos-visible-in-window-p doesn't work normally
in batch mode.  Claiming that the window isn't live when window-live-p
obviously returns t is IMO silly.

Helmut