From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: set-transient-map and a question Date: Tue, 11 Jul 2023 07:09:13 -0700 Message-ID: <25773.25225.248343.196243@retriever.mtv.corp.google.com> References: <25772.44146.376434.337848@google.com> <877cr698o9.fsf@gmail.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="4506"; mail-complaints-to="usenet@ciao.gmane.io" Cc: raman@google.com, emacs-devel@gnu.org To: rpluim@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 11 16:10:11 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 1qJE4B-0000zO-Nf for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Jul 2023 16:10:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJE3R-0007Nz-UX; Tue, 11 Jul 2023 10:09:25 -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 1qJE3P-0007Nj-Ro for emacs-devel@gnu.org; Tue, 11 Jul 2023 10:09:23 -0400 Original-Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qJE3O-0001Uh-2b for emacs-devel@gnu.org; Tue, 11 Jul 2023 10:09:23 -0400 Original-Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-666ecb21f86so5137549b3a.3 for ; Tue, 11 Jul 2023 07:09:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1689084560; x=1691676560; h=references:in-reply-to:subject:cc:to:date:message-id :content-transfer-encoding:mime-version:from:from:to:cc:subject:date :message-id:reply-to; bh=wrNv2z1k6eVfgJapkme+F5kbp/0jtgC/aDyZt6p4DaA=; b=UCGBdTgdVUsGJgS7jdWx9QnrQpLDG8EqiMyS2ykjXp7kMBrtJ3OPVQZNHAMEMv88QA RLcGmB2vooCxlz/OTQSvMPxbcNYMkArYJJnrWrGfQYtjVFXx0Z/q6yFwZMfyepZuyVaY ynf6CgnKjrsCX8/hwxoBohiUgeo0oqDKLkMNPdONYJUe11nqM7FmoBx1u8EcQiCYoUwQ SsXt/bqVJoZ0dhga5kwpMxRWRCsvFcTtb9FJ66t8q2Q8LHp+m4v2WdMSNG2F5ZbpCuPY xOdUZneFWWNCTDhrFkapk263zszMptBtXNwl+f54eikbLaoD6q3rYNwnYrFJvZ6wJeW2 9c4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689084560; x=1691676560; h=references:in-reply-to:subject:cc:to:date:message-id :content-transfer-encoding:mime-version:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=wrNv2z1k6eVfgJapkme+F5kbp/0jtgC/aDyZt6p4DaA=; b=GiB2kB8dIAELKU+DWERUykJkuvv2tgwxyL41OpFgSoRvu0bkkf5RFq8Y3vMfvmy7tF pw6gi6mdyLbCEpGTtUlWbOSDbaIR3WHWdhLP3G3m0Rrhh1d8/5PYiu53ROFRieqBPCKo vj0oolUePXoMxEH7IfnwXjREq0tE8Km9W48flk4/EGfVdlm1sh47UiGsvFpvdDn6Y9I+ 5q4aCpG4i/2oXgiSmXoeoSJvKrfaqgjHhMLs43CBYDXLQc1/dp+kenSUTzZjmV/D4v3m wKhE78A4wIlH2v/7Zlo5NEKnjcOaq/WYPSXiSnls9CJD/moN76U0sIm2GiCsuR8t6+Gw XhvA== X-Gm-Message-State: ABy/qLaAvDpgvyHMqigUGlZk+epY8whrA2svhtULZx06Y4J2KlE2dhe2 BoWXTECSzxUjx/8yyUAHdNGjkbEtzrLpk52XciyhtQ== X-Google-Smtp-Source: APBJJlHQiTRM/9qRT+2u1f8Ykoh+Ntc/Sb3QTyOeaslw+HmSmv9GjA6T5AcyXPEpzwwZSjS8gUJMbA== X-Received: by 2002:a05:6a21:32a2:b0:130:d234:c914 with SMTP id yt34-20020a056a2132a200b00130d234c914mr15374732pzb.26.1689084559777; Tue, 11 Jul 2023 07:09:19 -0700 (PDT) Original-Received: from retriever.mtv.corp.google.com ([2620:0:1000:1612:348c:801b:da3b:f50f]) by smtp.gmail.com with ESMTPSA id v11-20020aa7808b000000b0066a31111ccdsm1752989pff.65.2023.07.11.07.09.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 07:09:18 -0700 (PDT) In-Reply-To: <877cr698o9.fsf@gmail.com> X-Mailer: VM 8.1.1 under 30.0.50 (x86_64-pc-linux-gnu) Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=raman@google.com; helo=mail-pf1-x430.google.com X-Spam_score_int: -176 X-Spam_score: -17.7 X-Spam_bar: ----------------- X-Spam_report: (-17.7 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, NICE_REPLY_A=-0.089, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 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:307750 Archived-At: interesting; so what is the point of keep-pressed as an argument to set-transient-map=3F Robert Pluim writes: > >>>>> On Mon, 10 Jul 2023 18:12:18 -0700, "T.V Raman" said: >=20 > T> set-transient-map is used in text-scale-adjust here: > T> https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/face-re= map.el=3Fh=3Dmaster#n423... >=20 > 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 t= he > T> set-transient-map doc incorrectly=3F >=20 > 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-activa= te the > transient keymap when someone presses a non-text-scale-adjust key. >=20 > (I=CA=BCve just realized `text-scale-adjust' actually uses a minor-m= ode, > which seems like overkill, but it works) >=20 > Robert > --=20 --=20 Thanks, --Raman(I Search, I Find, I Misplace, I Research) =E2=99=89 Id: kg:/m/0285kf1 =F0=9F=A6=AE -- Thanks, --Raman(I Search, I Find, I Misplace, I Research) ♉ Id: kg:/m/0285kf1 🦮