From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#42865: 28.0.50; Add new 'copy-region-quietly' defcustom Date: Tue, 25 Aug 2020 21:40:15 +0300 Organization: LINKOV.NET Message-ID: <87r1ruvab4.fsf@mail.linkov.net> References: <87lfihi0w5.fsf@iris.silentflame.com> <87mu2sm5vu.fsf@gnus.org> <875z9fe3l9.fsf@mail.linkov.net> <87eeo37x1f.fsf@gnus.org> <87a6yqc874.fsf@mail.linkov.net> <87blj5xyi0.fsf@gnus.org> <87o8n5ifr6.fsf@mail.linkov.net> <87364g8cgf.fsf@gnus.org> <87h7stnvaa.fsf@mail.linkov.net> <87eenwchk2.fsf@gnus.org> <87wo1nsyv7.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28753"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: Lars Ingebrigtsen , 42865@debbugs.gnu.org, Sean Whitton To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 25 21:11:56 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kAeMM-0007Jh-0M for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Aug 2020 21:11:54 +0200 Original-Received: from localhost ([::1]:38420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAeML-0007VF-2D for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Aug 2020 15:11:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAeKZ-0005Ta-WA for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2020 15:10:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52833) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kAeKZ-0004FT-N4 for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2020 15:10:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kAeKZ-000126-IE for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2020 15:10:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Aug 2020 19:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42865 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 42865-submit@debbugs.gnu.org id=B42865.15983825903927 (code B ref 42865); Tue, 25 Aug 2020 19:10:03 +0000 Original-Received: (at 42865) by debbugs.gnu.org; 25 Aug 2020 19:09:50 +0000 Original-Received: from localhost ([127.0.0.1]:36143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAeKM-00011G-DJ for submit@debbugs.gnu.org; Tue, 25 Aug 2020 15:09:50 -0400 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:49261) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAeKL-00010l-2k for 42865@debbugs.gnu.org; Tue, 25 Aug 2020 15:09:49 -0400 X-Originating-IP: 91.129.102.47 Original-Received: from mail.gandi.net (m91-129-102-47.cust.tele2.ee [91.129.102.47]) (Authenticated sender: juri@linkov.net) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id D7D651BF206; Tue, 25 Aug 2020 19:09:40 +0000 (UTC) In-Reply-To: (Stefan Kangas's message of "Mon, 24 Aug 2020 12:34:19 -0700") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:186339 Archived-At: >> 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'.