unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: David Bremner <david@tethera.net>
To: Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org
Cc: tomi.ollila@iki.fi
Subject: Re: [PATCH 1/2] test-lib-emacs: re-define test_emacs() after initialization
Date: Sat, 26 Jun 2021 09:31:49 -0300	[thread overview]
Message-ID: <87eecozu16.fsf@tethera.net> (raw)
In-Reply-To: <20210522152008.27059-1-tomi.ollila@iki.fi>

Tomi Ollila <tomi.ollila@iki.fi> writes:

> After test_emacs() has started emacs, it re-defines
> itself as just calling the started emacs.
>
> First call to test_emacs() will execute to the end of it;
> next calls will just execute the 2 lines, first clearing OUTPUT,
> second and last executing TEST_EMACSCLIENT...
>
> This simplifies away one if constructs and reduces xtrace
> output when doing test debugging with set -x.

Although I am slightly horrified to learn that bash functions can
redefine themselves, I guess I can live with this if it is useful. It's
not like checking an environment variable is such a pretty construct.

  reply	other threads:[~2021-06-26 12:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-22 15:20 [PATCH 1/2] test-lib-emacs: re-define test_emacs() after initialization Tomi Ollila
2021-06-26 12:31 ` David Bremner [this message]
2021-06-26 14:10 ` David Bremner

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

  List information: https://notmuchmail.org/

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

  git send-email \
    --in-reply-to=87eecozu16.fsf@tethera.net \
    --to=david@tethera.net \
    --cc=notmuch@notmuchmail.org \
    --cc=tomi.ollila@iki.fi \
    /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 public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).