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: Richard Stallman
Subject: Re: Need message-fn arg back in ert-run-tests-interactively
Date: Wed, 06 Sep 2023 21:21:27 -0400

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > You can use something like this:

  >     (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?
 
-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





reply via email to

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