all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: martin rudalics <rudalics@gmx.at>
Cc: Stephen Berman <stephen.berman@gmx.net>, emacs-devel@gnu.org
Subject: Re: Some testing issues
Date: Fri, 14 Jul 2017 11:55:33 +0200	[thread overview]
Message-ID: <87o9sngx62.fsf@rosalinde> (raw)
In-Reply-To: <5961DF42.5020000@gmx.at> (martin rudalics's message of "Sun, 09 Jul 2017 09:46:10 +0200")

On Sun, 09 Jul 2017 09:46:10 +0200 martin rudalics <rudalics@gmx.at> 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



      reply	other threads:[~2017-07-14  9:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-07 21:22 Some testing issues Stephen Berman
2017-07-08  4:20 ` Noam Postavsky
2017-07-08 14:50   ` Stephen Berman
2017-07-08 22:01     ` Noam Postavsky
2017-07-14  9:55       ` Stephen Berman
2017-07-08  4:45 ` Stefan Monnier
2017-07-08 14:52   ` Stephen Berman
2017-07-10 17:33     ` Stefan Monnier
2017-07-14  9:56       ` Stephen Berman
2017-07-14 13:44         ` Stefan Monnier
2017-07-17 10:02           ` Stephen Berman
2017-07-17 18:22             ` Stefan Monnier
2017-07-08  7:18 ` martin rudalics
2017-07-08 14:51   ` Stephen Berman
2017-07-09  7:46     ` martin rudalics
2017-07-14  9:55       ` Stephen Berman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o9sngx62.fsf@rosalinde \
    --to=stephen.berman@gmx.net \
    --cc=emacs-devel@gnu.org \
    --cc=rudalics@gmx.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.