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: Howto: Bind Windows key as a prefix? Date: Tue, 05 Jul 2022 17:05:58 -0700 Message-ID: References: <25284.32832.471566.596874@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=gb18030 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11545"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 06 02:08:57 2022 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 1o8sbB-0002m1-J5 for ged-emacs-devel@m.gmane-mx.org; Wed, 06 Jul 2022 02:08:57 +0200 Original-Received: from localhost ([::1]:52362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8sb9-0005Un-5X for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Jul 2022 20:08:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8sYT-0004Jm-6A for emacs-devel@gnu.org; Tue, 05 Jul 2022 20:06:09 -0400 Original-Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]:46880) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o8sYO-0007Hc-VW for emacs-devel@gnu.org; Tue, 05 Jul 2022 20:06:08 -0400 Original-Received: by mail-pj1-x102e.google.com with SMTP id t5-20020a17090a6a0500b001ef965b262eso3914582pjj.5 for ; Tue, 05 Jul 2022 17:06:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :user-agent:mime-version:content-transfer-encoding; bh=9ICH8F6bvcfCCXhy/6ogg8a9Nw07E4bF5Ewx2l3au48=; b=Qgcl3l0vQvpduAo9c2z+AHyVUk0SIM9815upPYEWjgAn0PqulIF6IOUZok2Ie+y6kS S+icLj5lyQL2zE1m9A/mRJcPzeWSPUMT5mK3ohACTLCCKtPrxaWSfT/N2CoivVtJM2VC lu4lZqJ3o6Ue0syeog6oDUW84lOB5n3Z7VJRMi/+sk6olKWjxzxlDwLCZqFLYvyGZaWI ifaJixJppdYlIfwTexa4vaa2gMEdfG/M5hACpJ3QMjXpMUB7UmfUAOXim+uQJyqyhSji WgtDEMFYKi3+K5bBKp/mlfBp3XqxZS+xkIKCCm24R0qP+o4VfbmBs7SR4/SlGp2Ab3td HFkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:user-agent:mime-version:content-transfer-encoding; bh=9ICH8F6bvcfCCXhy/6ogg8a9Nw07E4bF5Ewx2l3au48=; b=Acvm507uWzbz+u5ott8c0a1UD4WGUrEM83NcUwcfvvUkfJF4Qqal4IbeVmaaiK4P3s TzjmtOW5jTv8kf0D/9ubxpJwBhekIExGRE9ljAjzn/e1j5UHhFMk649fCIFZDoGLgvhu ZYDHbVJ7EcQOl6xxTFJvBD9s4ciS5934QCPA2DbdDC30h4nwmkNgMn7kkxyodszo2tyc 8pJZGo8/RMf4V9khgsbOwyviJWc9rAlQ40mwfNyDc06L7vgQdjkun5deAiH9BKGR7lmI utd+1nfNJlScQKavXFfj9AdgYfb75j8YfczGiNw98RBUto2dGJZ38arptOxZswYvKL8Q RJiw== X-Gm-Message-State: AJIora9NLENxoCsU9BCH3UfmDSEKpCHoHfLPeQyBh1LNRoK7fXaVKOg9 PEW+czWmSJKNMrT4QBU7AmpEMrZVyCuyEw== X-Google-Smtp-Source: AGRyM1sMMdKsKHGY9CO+fqy5zqubJf/ttLcomfRQ+bfbWEEk7ZK851lWp9xI+7r4Msyzdf0CeAjNdA== X-Received: by 2002:a17:902:6b41:b0:16a:55f6:95ee with SMTP id g1-20020a1709026b4100b0016a55f695eemr45103905plt.156.1657065962625; Tue, 05 Jul 2022 17:06:02 -0700 (PDT) Original-Received: from raman9 (c-24-4-174-65.hsd1.ca.comcast.net. [24.4.174.65]) by smtp.gmail.com with ESMTPSA id u22-20020a63f656000000b0040cd8f71424sm22511952pgj.69.2022.07.05.17.06.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 17:06:01 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Tue, 05 Jul 2022 16:09:52 -0400") Received-SPF: pass client-ip=2607:f8b0:4864:20::102e; envelope-from=raman@google.com; helo=mail-pj1-x102e.google.com X-Spam_score_int: -175 X-Spam_score: -17.6 X-Spam_bar: ----------------- X-Spam_report: (-17.6 / 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, 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" Xref: news.gmane.io gmane.emacs.devel:291891 Archived-At: Thanks Stefan! Now that whole discussion around keybinds from a few weeks (months?) comes back to mind:-) For doing this programmatically, I also discovered=20 (cl-loop for binding in val do (global-set-key (vector (event-apply-modifier (cl-first binding) 'super 23 "s-")) (cl-second binding))) Found by looking for usage examples of function event-apply-modifier in the Emacs codebase. --=20 Thanks, --Raman(I Search, I Find, I Misplace, I Research) =817=A94 Id: kg:/m/0285kf1 =950=DC8