emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need message-fn arg back in ert-run-tests-interactively


From: Juri Linkov
Subject: Re: Need message-fn arg back in ert-run-tests-interactively
Date: Thu, 07 Sep 2023 09:22:23 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu)

>>     (cl-letf (((symbol-function 'message)
>>                (lambda (format-string &rest args)
>>                  ...)))
>>       (ert-run-tests-interactively t))
>
> It might work, but dynamically binding the function cell of a standard
> Emacs Lisp function is very unclean.  Can wecome up with a cleaner way
> to do this job?

There is set-message-function added in Emacs 27.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]