Subject: Re: bug#58788: 29.0.50; [PATCH] Respect inhibit-message

From: Juri Linkov <[email-masked]>
Date: Sun, 13 Nov 2022 19:39:44 +0200

tags 58788 notabug
close 58788 29.0.50
quit

> (let ((dont \"dont clear me\!\")) \
>   (message dont) \
>   (let ((inhibit-message t)) \
>     (message \"nice try\") \
>     (cl-assert (equal (current-message) dont) t)))"

(setq clear-message-function
      (lambda () (when inhibit-message 'dont-clear-message)))

Problem solved.