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#21634: text-scale-adjust suggestion Date: Fri, 01 Jul 2022 18:40:37 +0300 Organization: LINKOV.NET Message-ID: <86k08wzx5e.fsf@mail.linkov.net> References: <22035.47283.76000.848103@gargle.gargle.HOWL> <83d1wsxcuz.fsf@gnu.org> <87zgstyl9e.fsf_-_@gnus.org> <871r65ab7q.fsf@mail.linkov.net> <87czpou8z7.fsf@gnus.org> <86letewfpa.fsf@mail.linkov.net> <878rpdyyxo.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="16233"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: Eli Barzilay , Eli Zaretskii , 21634@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 01 17:52:13 2022 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 1o7IwH-00046n-EU for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Jul 2022 17:52:13 +0200 Original-Received: from localhost ([::1]:42282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7IwG-00079I-DU for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Jul 2022 11:52:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7Iw5-00075O-Sn for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2022 11:52:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45049) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o7Iw5-0006Rs-Is for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2022 11:52:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o7Iw5-0006pw-I8 for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2022 11:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Jul 2022 15:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21634 X-GNU-PR-Package: emacs Original-Received: via spool by 21634-submit@debbugs.gnu.org id=B21634.165669066626193 (code B ref 21634); Fri, 01 Jul 2022 15:52:01 +0000 Original-Received: (at 21634) by debbugs.gnu.org; 1 Jul 2022 15:51:06 +0000 Original-Received: from localhost ([127.0.0.1]:38942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7IvC-0006oP-Cx for submit@debbugs.gnu.org; Fri, 01 Jul 2022 11:51:06 -0400 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:59517) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7Iv7-0006nq-MZ for 21634@debbugs.gnu.org; Fri, 01 Jul 2022 11:51:05 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id F184B1BF206; Fri, 1 Jul 2022 15:50:53 +0000 (UTC) In-Reply-To: <878rpdyyxo.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 01 Jul 2022 11:17:23 +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:235819 Archived-At: >> We don't need post-command-hook here - this leaves us with just >> set-transient-map. As was already suggested, we need either >> to add a new optional arg TIMEOUT to set-transient-map, >> or allow a number of seconds in the existing arg KEEP-PRED. >> >> Then another question is how the users could customize the timeout. >> One variable to customize timeout for all commands that use >> set-transient-map? Or separate variables for every command: >> one for indent-rigidly, one for text-scale-adjust? > > I think one variable for the timeout would be sufficient, and a value of > (say) `timeout' for KEEP-PRED could instruct set-transient-map to use > that timeout, perhaps? Actually, I can imagine when someone might want to keep a transient map active with KEEP-PRED, but still deactivate it after a timeout. So a separate TIMEOUT looks cleaner. Anyway, repeat-mode has separate options for repeat-exit-timeout and constructs a message, so I could copy the same code from repeat-mode to set-transient-map.