unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Mario Lang <mlang@blind.guru>,  emacs-devel@gnu.org
Subject: Re: Why does signaling an error not call set-message-function?
Date: Tue, 05 Apr 2022 09:14:58 -0400	[thread overview]
Message-ID: <jwvilrnvgr9.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <83bkxfen5h.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 05 Apr 2022 15:21:30 +0300")

> AFAIR, the set-message-function feature is explicitly for controlling
> the output that goes via calls to 'message'.  Maybe we should
> emphasize this in the doc string.

OTOH which echo-area message goes through `message` and which goes
through some lower-level C function is largely an implementation detail
(e.g. in order to know that uncaught errors get displayed without going
through `message` the user has to read the C code, AFAICT), so I think
it makes sense to try and make sure we go through `set-message-function`
whenever possible.


        Stefan




  parent reply	other threads:[~2022-04-05 13:14 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
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 [this message]
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=jwvilrnvgr9.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=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).