|
From: | Juri Linkov |
Subject: | bug#42865: 28.0.50; Add new 'copy-region-quietly' defcustom |
Date: | Fri, 21 Aug 2020 02:19:09 +0300 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
> I think we'd have to introduce a new function, like... > > (defun information (name &rest args) > (when (information-wanted name) > (apply #'message args))) > > that would allow inhibiting messages based on names and or levels This looks like the existing function 'user-error' that doesn't enter the debugger when 'debug-on-error' is t. Does the name 'user-message' make more sense? But the problem is that it would be a huge endeavor to replace all 'message' calls with a new function call. So maybe a better route is to add a list of ignored messages like 'debug-ignored-errors' contains a list of regexps that match messages to ignore. Then this will disable display of the copy-region message: (add-to-list 'ignored-messages "^Saved text")
[Prev in Thread] | Current Thread | [Next in Thread] |