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#73986: 31.0.50; Allow suppressing message passed to set-transient-map Date: Thu, 24 Oct 2024 20:12:20 +0300 Organization: LINKOV.NET Message-ID: <86cyjps9vv.fsf@mail.linkov.net> References: <874j51r3xd.fsf@gmx.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="22592"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: 73986@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 24 19:15:58 2024 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 1t41RG-0005da-7D for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Oct 2024 19:15:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t41R1-0004dP-ST; Thu, 24 Oct 2024 13:15:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t41Qp-0004cn-JI for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 13:15:31 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t41Qp-0005eA-BD for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 13:15:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=NBCb6C0eRxFPogPdKus3zkN6MQ3CBeDSV+MOwAGBJ5g=; b=PGbwoS3J16FrQn7MsBYJx0G6kUDpcdC95481MvU2GbZKr20OuGMud6bxD3gou1zzig7Ut82Iof3fX1dYzA+yILZEHYYRTFBrYmGBEx1gqKK8r0xA/pzayxzcLlvvPpQPmRKDO6w+Kx7ihJPgW15eD/2pdA5aAsgwR/L+XhdMCGsiAzpjjUGas+CvVDunj1SdvZAySUwoiffVsY8c6olbxZJXWe400i4eUwTkQkRwxlV/6O4FnlgLvFYtQ0bWArr+T/hDYT4CBXO14+VdduXnaaXMIMRfzgyZPAM8Huys72mRUtBL7G1e1APEzDRdY9GVWuDQAhsv6wLSQ4nSyXtojA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t41RK-0006Ru-2z for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 13:16: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: Thu, 24 Oct 2024 17:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73986 X-GNU-PR-Package: emacs Original-Received: via spool by 73986-submit@debbugs.gnu.org id=B73986.172979013224388 (code B ref 73986); Thu, 24 Oct 2024 17:16:02 +0000 Original-Received: (at 73986) by debbugs.gnu.org; 24 Oct 2024 17:15:32 +0000 Original-Received: from localhost ([127.0.0.1]:36066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t41Qq-0006LI-5i for submit@debbugs.gnu.org; Thu, 24 Oct 2024 13:15:32 -0400 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:41757) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t41Qo-0006L2-Ol for 73986@debbugs.gnu.org; Thu, 24 Oct 2024 13:15:31 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 210C71C0005; Thu, 24 Oct 2024 17:14:51 +0000 (UTC) In-Reply-To: <874j51r3xd.fsf@gmx.net> (Stephen Berman via's message of "Thu, 24 Oct 2024 16:06:22 +0200") X-GND-Sasl: juri@linkov.net 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:294199 Archived-At: > If a caller of set-transient-map passes a suitable format string, this > is displayed as a message on activating the transient map. An example > is text-scale-adjust, which displays the message "Use +, =, -, 0, C-+, > C-=, C--, C-0 for further adjustment". So if after typing `C-x C-+' you > immediately type `+ + + - - -', the text size increases three times and > then decreases three times. But on each key press the message is > redisplayed, which is slighty annoying (it actually looks like it stays > in the echo area but there is a brief flicker on each key press); the > message is helpful the first time, if you're unfamiliar with the > command, but on repeated uses, it becomes visual noise. So I propose a > user option to suppress the message, as in the attached patch. Instead of adding a myriad of user options for every command that displays a message, we decided to create a single point of customization, so you could just set these options: (add-to-list 'set-message-functions 'inhibit-message) (add-to-list 'inhibit-message-regexps "for further adjustment")