From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#13752: Suggestions regarding the minibuffer Date: Wed, 02 Jun 2021 15:32:34 +0300 Message-ID: <83y2bsxx99.fsf@gnu.org> References: <87zgwbidqs.fsf@gnus.org> <87v96ylmew.fsf@linkov.net> <87czt6f6rm.fsf@gnus.org> <87eedle5vs.fsf@mail.linkov.net> <87wnrc95ur.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11037"; mail-complaints-to="usenet@ciao.gmane.io" Cc: juri@linkov.net, 13752@debbugs.gnu.org, esabof@gmail.com To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 02 14:36:01 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 1loQ6K-0002aJ-UZ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Jun 2021 14:36:00 +0200 Original-Received: from localhost ([::1]:36558 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loQ6J-0001tl-TU for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Jun 2021 08:35:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loQ4Q-0008Lp-Da for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2021 08:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55853) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1loQ4P-0005bb-Ue for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2021 08:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1loQ4P-00080w-Q6 for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2021 08:34:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Jun 2021 12:34: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.162263719630748 (code B ref 13752); Wed, 02 Jun 2021 12:34:01 +0000 Original-Received: (at 13752) by debbugs.gnu.org; 2 Jun 2021 12:33:16 +0000 Original-Received: from localhost ([127.0.0.1]:39166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loQ3c-0007zo-Mc for submit@debbugs.gnu.org; Wed, 02 Jun 2021 08:33:16 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loQ3Y-0007zO-4I for 13752@debbugs.gnu.org; Wed, 02 Jun 2021 08:33:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46250) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loQ3S-0004zA-Bu; Wed, 02 Jun 2021 08:33:02 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1543 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loQ3D-0001Zc-HE; Wed, 02 Jun 2021 08:33:00 -0400 In-Reply-To: <87wnrc95ur.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 02 Jun 2021 07:46:04 +0200) 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:207861 Archived-At: > From: Lars Ingebrigtsen > Date: Wed, 02 Jun 2021 07:46:04 +0200 > Cc: E Sabof , 13752@debbugs.gnu.org > > Juri Linkov writes: > > > 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.