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: Mon, 24 Aug 2020 21:38:48 +0300 Organization: LINKOV.NET Message-ID: <87wo1nsyv7.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9152"; 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: 42865@debbugs.gnu.org, Sean Whitton To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 24 20:41:10 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 1kAHP4-0002JJ-3t for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Aug 2020 20:41:10 +0200 Original-Received: from localhost ([::1]:33030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAHP3-0007K0-67 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Aug 2020 14:41:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAHOw-0007Ho-DA for bug-gnu-emacs@gnu.org; Mon, 24 Aug 2020 14:41:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47687) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kAHOw-0001DU-2M for bug-gnu-emacs@gnu.org; Mon, 24 Aug 2020 14:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kAHOw-0002FN-0w for bug-gnu-emacs@gnu.org; Mon, 24 Aug 2020 14:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Aug 2020 18:41:01 +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.15982944058533 (code B ref 42865); Mon, 24 Aug 2020 18:41:01 +0000 Original-Received: (at 42865) by debbugs.gnu.org; 24 Aug 2020 18:40:05 +0000 Original-Received: from localhost ([127.0.0.1]:59233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAHO1-0002DY-1a for submit@debbugs.gnu.org; Mon, 24 Aug 2020 14:40:05 -0400 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:55507) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAHNz-0002Cy-23 for 42865@debbugs.gnu.org; Mon, 24 Aug 2020 14:40:03 -0400 Original-Received: from mail.gandi.net (m91-129-102-47.cust.tele2.ee [91.129.102.47]) (Authenticated sender: juri@linkov.net) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 2D6F8100007; Mon, 24 Aug 2020 18:39:54 +0000 (UTC) In-Reply-To: <87eenwchk2.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 24 Aug 2020 15:14:05 +0200") 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:186204 Archived-At: >> Then like 'signal' uses 'ERROR-SYMBOL' as an error symbol, not string, >> 'user-message' should use a symbol as well, e.g. in 'indicate-copied-region': >> >> (user-message >> 'indicate-copied-region >> "Saved text until \"%s\"" (buffer-substring-no-properties (- mark len) mark)) >> >> then users put a property on that symbol: >> >> (put 'indicate-copied-region 'inhibit-message t) >> >> to disable the message. > > Or we could have inhibit-message also be a list of symbols to inhibit? Or a list of regexps for those users who want to inhibit message strings directly by a regexp instead of messing with an intermediate layer of symbols :) 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.