From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#13752: Suggestions regarding the minibuffer Date: Thu, 03 Jun 2021 00:06:01 +0300 Organization: LINKOV.NET Message-ID: <87lf7sdlja.fsf@mail.linkov.net> References: <87zgwbidqs.fsf@gnus.org> <87v96ylmew.fsf@linkov.net> <87czt6f6rm.fsf@gnus.org> <87eedle5vs.fsf@mail.linkov.net> <87wnrc95ur.fsf@gnus.org> <83y2bsxx99.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23014"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: Lars Ingebrigtsen , esabof@gmail.com, 13752@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 02 23:19:13 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1loYGe-0005p4-OE for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Jun 2021 23:19:12 +0200 Original-Received: from localhost ([::1]:35964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loYGd-0003cb-3L for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Jun 2021 17:19:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loYGU-0003ZU-Cl for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2021 17:19:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58157) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1loYGU-0007TI-4o for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2021 17:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1loYGU-0000xG-1K for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2021 17:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Jun 2021 21:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13752 X-GNU-PR-Package: emacs Original-Received: via spool by 13752-submit@debbugs.gnu.org id=B13752.16226687283639 (code B ref 13752); Wed, 02 Jun 2021 21:19:01 +0000 Original-Received: (at 13752) by debbugs.gnu.org; 2 Jun 2021 21:18:48 +0000 Original-Received: from localhost ([127.0.0.1]:41467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loYGG-0000wd-72 for submit@debbugs.gnu.org; Wed, 02 Jun 2021 17:18:48 -0400 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:32983) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loYGF-0000wC-Dc for 13752@debbugs.gnu.org; Wed, 02 Jun 2021 17:18:47 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 24EB7FF803; Wed, 2 Jun 2021 21:18:39 +0000 (UTC) In-Reply-To: <83y2bsxx99.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 02 Jun 2021 15:32:34 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:207882 Archived-At: >> > But does `signal' use one of too low-level messaging functions? >> > I can't find what function displays the error message in the echo area. >> >> I hoped that was only me. :-) I tried following the logic from Ferror >> to Fsignal to signal_or_quit, but it wasn't at all obvious to me where >> that's actually displaying the message. >> >> I instrumented set_message, and that's called by Fsignal at some point, >> but even with Vset_message_function set properly, the error message >> still ends up in the echo area... > > 'set_message' isn't called to display errors signaled by 'signal', > because those messages don't go the 'message' route. Those messages > go through cmd_error, which eventually calls command-error-function. > The latter is by default bound to command-error-default-function, > which displays the error message via print_error_message. > > I think Lisp programs that want to control this should bind > command-error-function to the function of their liking. Unbelievable that I forgot that recently I already implemented (setq-local command-error-function 'minibuffer-error-function) for the minibuffer :-) So like we already have 'set-message-function' that can be set to 'set-minibuffer-message', the corresponding pair of existing error-related functions are 'command-error-function' and 'minibuffer-error-function'. This there is nothing to do more here?