From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: set-transient-map and a question Date: Tue, 11 Jul 2023 10:03:34 +0200 Message-ID: <877cr698o9.fsf@gmail.com> References: <25772.44146.376434.337848@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14785"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: "T.V Raman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 11 10:04:37 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qJ8MN-0003d1-RM for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Jul 2023 10:04:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJ8LW-0002iv-8N; Tue, 11 Jul 2023 04:03:42 -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 1qJ8LU-0002ig-Di for emacs-devel@gnu.org; Tue, 11 Jul 2023 04:03:40 -0400 Original-Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qJ8LS-0003K6-OB for emacs-devel@gnu.org; Tue, 11 Jul 2023 04:03:40 -0400 Original-Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3fbc59de009so56449505e9.3 for ; Tue, 11 Jul 2023 01:03:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689062616; x=1691654616; h=content-transfer-encoding:mime-version:message-id:date :gmane-reply-to-list:references:in-reply-to:subject:cc:to:from:from :to:cc:subject:date:message-id:reply-to; bh=R+dSp9pbIfdnkJopb+nTndtqrSioDVkeiBqrUGtYtCY=; b=b2Alek0egfrlp1zA5qMLVUFZ8zCTGZ697xxmSKk6H82qI/YCzeetSYH8WQ80Hpvxr4 fGdvxegEKqZWFTgnio11bq46vgkoMyPg838ltKBFksP2X7uDluAbOxJeOCcHrpHRqbnY kL/6MfttfAW1TjQGTRCpDq4rNLl46EwYCObPIN8LVEsOHnVyonIE7VAnFsxRKfsQM8BA cQlo0FFVtTrV2LK8hTRzXMAAIDXj/BCBIwWtqK7CRNKyhNRqqDaiWnM6hDFoZtXEXW97 Y/XjWgzxAme0ZBUfM8xQRUA7khemlGRNKQJVRo/CY1q+TJ3/4FUjPV09bIaO58rWh7VD pG7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689062616; x=1691654616; h=content-transfer-encoding:mime-version:message-id:date :gmane-reply-to-list:references:in-reply-to:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=R+dSp9pbIfdnkJopb+nTndtqrSioDVkeiBqrUGtYtCY=; b=aLIwzz2W1V4x+3gXkNDDMU9PC0iRgREOuyMJFjsjuqWSdOfuVzurIbol8ECfnAkhcq V0Jxm2veWadg2kj87rCp/g847I8INqh7xIGAew2f+sCaIVhYaAyGS+HP+AG7UvFrhIlR l+uLbrRRoIch3fw24ECu1UKxrz0+ZWNtOX+BXQ3RCWBwpdglRYjgALjeWzPPnytJhUbC Md2D2Wbq1c1x9KWdEV3EYw7TIEnl0BuJ53ZY7ubblwEgz9MLGGmxVPVeFOPJzfHXSvLb DAMsBmgUhmLfvYkJKBDfBaBth1M28TKCjqBpJrrIY3TRDZRaqak+Y07eD4gRkNU38xQS 0hFg== X-Gm-Message-State: ABy/qLYxYz2E0BAZkyoAHwOkWNzSuNl2oYqxYQL7HGyjoWKXTeSrQhYY +ZKLVBBCPH7Iple/Hqd7C4GJpsiH0ng= X-Google-Smtp-Source: APBJJlFMBX/85CPky43eSq5fJlEgxeZa1dilHGyHTmyuRoDvyHS+IPAUy3/wYwZEnQ8Be0KqDoX8ag== X-Received: by 2002:a7b:c408:0:b0:3fb:d1db:545a with SMTP id k8-20020a7bc408000000b003fbd1db545amr12801604wmi.15.1689062616254; Tue, 11 Jul 2023 01:03:36 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:8d1f:1414:6dd0:d3c7]) by smtp.gmail.com with ESMTPSA id y9-20020a7bcd89000000b003fba94c9e18sm1823873wmj.4.2023.07.11.01.03.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 01:03:35 -0700 (PDT) In-Reply-To: <25772.44146.376434.337848@google.com> (T. V. Raman's message of "Mon, 10 Jul 2023 18:12:18 -0700") Gmane-Reply-To-List: yes Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=rpluim@gmail.com; helo=mail-wm1-x32b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:307744 Archived-At: >>>>> On Mon, 10 Jul 2023 18:12:18 -0700, "T.V Raman" sa= id: T> set-transient-map is used in text-scale-adjust here: T> https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/face-remap.el?= h=3Dmaster#n423... T> But it looks like it passes nil as the keep-pressed arg which sounds T> counter to the documentation for set-transient-map; but T> text-scale-adjust does work as intended -- so am I reading the T> set-transient-map doc incorrectly? All the bindings in that map in `text-scale-adjust' call `text-scale-adjust', which then results in `set-transient-map=CA=BC being called again, which means you don=CA=BCt need any logic to de-activate the transient keymap when someone presses a non-text-scale-adjust key. (I=CA=BCve just realized `text-scale-adjust' actually uses a minor-mode, which seems like overkill, but it works) Robert --=20