GNU bug report logs -
#13752
Suggestions regarding the minibuffer
Previous Next
Reported by: E Sabof <esabof <at> gmail.com>
Date: Mon, 18 Feb 2013 19:46:01 UTC
Severity: wishlist
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #32 received at 13752 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> 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
This bug report was last modified 3 years and 354 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.