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: Sun, 15 Nov 2020 22:40:20 +0200 Message-ID: <87blfyfj63.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> <87r1ruvab4.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="23681"; 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 Sun Nov 15 21:42:16 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 1keOql-00063j-UA for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Nov 2020 21:42:15 +0100 Original-Received: from localhost ([::1]:47618 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1keOqk-0003aW-Sv for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Nov 2020 15:42:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1keOqY-0003aO-KJ for bug-gnu-emacs@gnu.org; Sun, 15 Nov 2020 15:42:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42719) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1keOqY-0006v6-Ae for bug-gnu-emacs@gnu.org; Sun, 15 Nov 2020 15:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1keOqY-00054d-7E for bug-gnu-emacs@gnu.org; Sun, 15 Nov 2020 15:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Nov 2020 20:42:02 +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.160547286819434 (code B ref 42865); Sun, 15 Nov 2020 20:42:02 +0000 Original-Received: (at 42865) by debbugs.gnu.org; 15 Nov 2020 20:41:08 +0000 Original-Received: from localhost ([127.0.0.1]:54265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1keOpf-00053N-KQ for submit@debbugs.gnu.org; Sun, 15 Nov 2020 15:41:08 -0500 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:50481) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1keOpd-00052j-Vz for 42865@debbugs.gnu.org; Sun, 15 Nov 2020 15:41:06 -0500 Original-Received: from mail.gandi.net (m91-129-97-46.cust.tele2.ee [91.129.97.46]) (Authenticated sender: juri@linkov.net) by relay11.mail.gandi.net (Postfix) with ESMTPSA id E39F0100003; Sun, 15 Nov 2020 20:40:57 +0000 (UTC) In-Reply-To: (Stefan Kangas's message of "Tue, 25 Aug 2020 17:36:16 -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:193381 Archived-At: >> 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. > > I think you convinced me, thanks. I still think people will shoot > themselves in the foot, but OTOH we are hardly strangers to that. In bug#44629 Eli reminded about set-message-function, and indeed it's possible to make it safer by checking both the command name and message regexp. For example: (put 'kill-ring-save 'inhibit-message "^Copied text ") (put 'save-buffer 'inhibit-message "^Wrote ") (put 'read-only-mode 'inhibit-message "^View mode: type ") (defun inhibit-message-function (message) (and this-command (get this-command 'inhibit-message) (string-match-p (get this-command 'inhibit-message) message))) (setq set-message-function 'inhibit-message-function)