[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Some testing issues
From: |
Stephen Berman |
Subject: |
Re: Some testing issues |
Date: |
Fri, 14 Jul 2017 11:55:33 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
On Sun, 09 Jul 2017 09:46:10 +0200 martin rudalics <address@hidden> 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 run.
>
> ‘pos-visible-in-window-p’ is specified as
>
> DEFUN ("pos-visible-in-window-p", Fpos_visible_in_window_p,
> ...
> Lisp_Object in_window = 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
- Re: Some testing issues, (continued)
- Re: Some testing issues, Stefan Monnier, 2017/07/08
- Re: Some testing issues, Stephen Berman, 2017/07/08
- Re: Some testing issues, Stefan Monnier, 2017/07/10
- Re: Some testing issues, Stephen Berman, 2017/07/14
- Re: Some testing issues, Stefan Monnier, 2017/07/14
- Re: Some testing issues, Stephen Berman, 2017/07/17
- Re: Some testing issues, Stefan Monnier, 2017/07/17
Re: Some testing issues, martin rudalics, 2017/07/08