GNU bug report logs -
#42865
28.0.50; Add new 'copy-region-quietly' defcustom
Previous Next
Reported by: Sean Whitton <spwhitton <at> spwhitton.name>
Date: Fri, 14 Aug 2020 17:39:01 UTC
Severity: normal
Tags: patch
Found in version 28.0.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
>> IOW, I still prefer the simplicity of such regexps as
>>
>> (add-to-list 'inhibit-message "^Saved text until")
>>
>> and can't imagine a situation why I'd want to inhibit such message
>> for one command but not for another.
>
> One package says: "Saved text until end"
>
> Another one says: "Saved text until end... failed, retry to avoid data
> loss"
Then it could match the whole message with $ at the end.
(add-to-list 'inhibit-message "^Saved text until end$")
> And then you have the joy when the message text changes...
The message text changes not often. But the symbol approach is much worse
because it takes the freedom from users - in case of symbols the developers
decide whether to allow the users to inhibit messages or not. When developers
allow to inhibit some messages by adding a new symbol to the message function,
then it takes many years until the users can start using new symbols to
inhibit messages after the next release.
OTOH, in case of regexps, the users decide what text they want to inhibit
without waiting for developers adding new symbols.
For example, in https://debbugs.gnu.org/21893#23
I needed to inhibit the message from view-end-message.
With a regexp this would be very easy:
(add-to-list 'inhibit-message "^End of buffer")
But currently I use such complicated advice:
(advice-add 'view-end-message :around
(lambda (orig-fun &rest args)
(let ((inhibit-message t))
(apply orig-fun args)))
'((name . non-verbose-view-end-message)))
Also using regexps will obsolete many such ad-hoc options as
'view-inhibit-help-message'.
This bug report was last modified 3 years and 329 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.