unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: juri@linkov.net, 13752@debbugs.gnu.org, esabof@gmail.com
Subject: bug#13752: Suggestions regarding the minibuffer
Date: Thu, 03 Jun 2021 09:30:41 +0200	[thread overview]
Message-ID: <87a6o7be1q.fsf@gnus.org> (raw)
In-Reply-To: <83y2bsxx99.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 02 Jun 2021 15:32:34 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

> '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.

Thanks!  That's the missing piece of the puzzle.  I've now extended the
doc strings of these two variables to mention each other.

> I think Lisp programs that want to control this should bind
> command-error-function to the function of their liking.

Indeed.  For future reference, the feature request can be achieved by
something like

(setq command-error-function
      (lambda (data string func)
	(unless (eq (car data) 'end-of-buffer)
	  (command-error-default-function data string func))))

to display all error messages except `end-of-buffer'.

So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  parent reply	other threads:[~2021-06-03  7:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-18 19:44 bug#13752: Suggestions regarding the minibuffer E Sabof
2013-02-18 20:02 ` Stefan Monnier
2021-05-31  7:06 ` Lars Ingebrigtsen
2021-05-31 20:13   ` Juri Linkov
2021-06-01  6:17     ` Lars Ingebrigtsen
2021-06-01 20:34       ` Juri Linkov
2021-06-02  5:46         ` Lars Ingebrigtsen
2021-06-02 12:32           ` Eli Zaretskii
2021-06-02 21:06             ` Juri Linkov
2021-06-03  7:30             ` Lars Ingebrigtsen [this message]
2021-06-03 20:29               ` Juri Linkov
2021-06-04  9:42                 ` bug#42865: " Lars Ingebrigtsen
2021-06-04 16:27                   ` Juri Linkov
2021-06-06  9:17                     ` Lars Ingebrigtsen

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=87a6o7be1q.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=13752@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=esabof@gmail.com \
    --cc=juri@linkov.net \
    /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).