From: Eli Zaretskii <eliz@gnu.org>
To: Mario Lang <mlang@blind.guru>
Cc: emacs-devel@gnu.org
Subject: Re: Why does signaling an error not call set-message-function?
Date: Tue, 05 Apr 2022 14:38:08 +0300 [thread overview]
Message-ID: <83h777ep5r.fsf@gnu.org> (raw)
In-Reply-To: <87tub8hsax.fsf@blind.guru> (message from Mario Lang on Tue, 05 Apr 2022 10:01:58 +0200)
> From: Mario Lang <mlang@blind.guru>
> Date: Tue, 05 Apr 2022 10:01:58 +0200
>
> 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?
(set-message-function _does_ affect echo-area messages, just not any
kind of them.)
Are you sure it is a good idea to allow running arbitrary Lisp when
Emacs wants to signal an error?
next prev parent reply other threads:[~2022-04-05 11:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-05 8:01 Why does signaling an error not call set-message-function? Mario Lang
2022-04-05 11:38 ` Eli Zaretskii [this message]
2022-04-05 12:05 ` Mario Lang
2022-04-05 12:21 ` Eli Zaretskii
2022-04-05 12:55 ` Mario Lang
2022-04-05 13:58 ` T.V Raman
2022-04-05 13:14 ` Stefan Monnier
2022-04-05 13:20 ` Eli Zaretskii
2022-04-05 13:34 ` Stefan Monnier
2022-04-05 13:39 ` Eli Zaretskii
2022-04-05 14:19 ` Stefan Monnier
2022-04-05 16:07 ` T.V Raman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83h777ep5r.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=mlang@blind.guru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).