Subject: bug#34939: Some minibuffer behaviour is annoying

From: Juri Linkov <[email-masked]>
Date: Mon, 27 May 2019 23:15:34 +0300

>> There is a special function minibuffer-message for this purpose:
>>
>>    (add-hook 'minibuffer-setup-hook
>>              (lambda ()
>>                (setq-local command-error-function
>>                            (lambda (error context _command)
>>                              (minibuffer-message
>>                               (concat context (get (car error)
>>                                                    'error-message)))))))
>
> So um, what's the best way to make this behavior the default?

This is a nice behavior but the problem is that overriding
command-error-function also removes other useful default features
such as logging error messages to the *Messages* buffer
(see more at ‘print_error_message’).