all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Weiner <rsw@gnu.org>
To: emacs-devel <emacs-devel@gnu.org>
Cc: Lidell Mats <matsl@gnu.org>
Subject: Need message-fn arg back in ert-run-tests-interactively
Date: Sun, 9 Jul 2023 11:49:15 -0400	[thread overview]
Message-ID: <CA+OMD9iLUsiujjfNPf_WE9Dp5_rBtdm1dpWVkVdSzEbO2Mc-KQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1039 bytes --]

In ert.el of Emacs 27.1, we have a simple ability to override the 'message'
function when running ert tests interactively by setting the message-fn
argument here:

;; Should OUTPUT-BUFFER-NAME and MESSAGE-FN really be arguments here?
;; They are needed only for our automated self-tests at the moment.
;; Or should there be some other mechanism?
;;;###autoload
(defun ert-run-tests-interactively (selector
                                    &optional output-buffer-name message-fn)

But in recent Emacs versions this function takes only the selector
argument, with no clear way of how to override messaging behavior so that a
message from a test case (rather than ert itself) can remain in the
minibuffer after a test case finishes:

(defun ert-run-tests-interactively (selector)
  "Run the tests specified by SELECTOR and display the results in a buffer.

SELECTOR works as described in `ert-select-tests'."

This would be very useful behavior to have back.  Is there any simple way
to do it now or can you add it back in?

Thanks,

Bob

[-- Attachment #2: Type: text/html, Size: 2177 bytes --]

             reply	other threads:[~2023-07-09 15:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-09 15:49 Robert Weiner [this message]
2023-07-11  6:18 ` Need message-fn arg back in ert-run-tests-interactively Robert Weiner
2023-09-05 22:43 ` Stefan Kangas
2023-09-07  1:21   ` Richard Stallman
2023-09-07  6:22     ` Juri Linkov

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=CA+OMD9iLUsiujjfNPf_WE9Dp5_rBtdm1dpWVkVdSzEbO2Mc-KQ@mail.gmail.com \
    --to=rsw@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=matsl@gnu.org \
    --cc=rswgnu@gmail.com \
    /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.