From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mario Lang Newsgroups: gmane.emacs.devel Subject: Why does signaling an error not call set-message-function? Date: Tue, 05 Apr 2022 10:01:58 +0200 Message-ID: <87tub8hsax.fsf@blind.guru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2294"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 05 10:05:47 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nbeC9-0000H5-O4 for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Apr 2022 10:05:45 +0200 Original-Received: from localhost ([::1]:53166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nbeC8-0007WG-Bg for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Apr 2022 04:05:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbe8g-0006gm-TQ for emacs-devel@gnu.org; Tue, 05 Apr 2022 04:02:11 -0400 Original-Received: from familiekainz.at ([37.187.20.171]:35390 helo=ns3035380.ip-37-187-20.eu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbe8c-0006vv-Jy for emacs-devel@gnu.org; Tue, 05 Apr 2022 04:02:10 -0400 Original-Received: by ns3035380.ip-37-187-20.eu (Postfix, from userid 110) id 17D3C297B; Tue, 5 Apr 2022 10:02:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=blind.guru; s=mail; t=1649145722; bh=e2auyoyD9SIPVcXO4XZ0V/nbrmNU/B6vaKqLv7n6HvQ=; h=From:To:Subject:Date:From; b=ZVjCUMLFDC20ndWb7daQjrcU9IA1HVmTNMCKEC8Fh/JOJlVt0hT/krbJYdXAPmYkc gftA4jtI6iPjKPVEkqjERaaLvbLj6nCNxqk1N0R4OicmwSabPoU3RdR8xxgoaTaCLa zmgcmg5s/XyU3QjHp1tpAinQeicXb2xQxDLJYWBw= Original-Received: from x1.blind.guru (zidpc777.tugraz.at [129.27.7.77]) by ns3035380.ip-37-187-20.eu (Postfix) with ESMTPSA id 830002974 for ; Tue, 5 Apr 2022 10:01:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=blind.guru; s=mail; t=1649145719; bh=e2auyoyD9SIPVcXO4XZ0V/nbrmNU/B6vaKqLv7n6HvQ=; h=From:To:Subject:Date:From; b=d4esXIIq0gR6ktN5Z/QN1JGTXiZ81FINXxv9NT4kXqstRb+ViKNulKe+Xb2sBJmSA hsGNrEuCxmlRfRpun1AS2tjee+llKQo2cWmlpDmTj19vjKsnZ8Xso89WO7WAE6HuSi PV1S2qQ+h6pdzQCch2Xeqv3bOweUqS+O8CBh5bd4= Original-Received: by x1.blind.guru (Postfix, from userid 1000) id E6212E80556; Tue, 5 Apr 2022 10:01:58 +0200 (CEST) Received-SPF: pass client-ip=37.187.20.171; envelope-from=mlang@blind.guru; helo=ns3035380.ip-37-187-20.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:287799 Archived-At: Hi. I just realized that only a certain type of message goes through `set-message-function'. In particular, things like (signal 'end-of-buffer nil) write to the echo area but do not trigger set-message-function. This is a bit unexpected. Is there an equivalent hook for error messages going to the echo area? --=20 CYa, =E2=A1=8D=E2=A0=81=E2=A0=97=E2=A0=8A=E2=A0=95