Subject: Re: bug#3465: 23.0.94; feature request: be able to log minibuffer messages

From: Lars Ingebrigtsen <[email-masked]>
Date: Fri, 21 Aug 2020 02:05:44 +0200

Juri Linkov <[email-masked]> writes:

>> There's no problem with logging in general.  The request is to also have
>> the messages output by the minibuffer-message function also end up in
>> the *Messages* buffer.
>
> This was already implemented in 8693611136 (see "Record message in the
> *Messages* buffer"
> in 'minibuffer-message'), but later reverted in 7254b63462.

The reversion refers to

    Revert aa89c84e00d8dc85100e6fedab7631c415e6364d (bug#38457)

which is a very long thread.  What was the reason for removing the
*Messages* logging?  The patch had other things in addition to the
logging...

But I liked the way to log to the buffer: 

+    ;; Record message in the *Messages* buffer
+    (let ((inhibit-message t))
+      (if args
+          (apply #'message message args)
+        (message "%s" message)))

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no