From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: uzibalqa Newsgroups: gmane.emacs.help Subject: Re: [External] : Re: From global-set-key to keymap-global-set Date: Wed, 05 Jul 2023 12:46:54 +0000 Message-ID: References: <83zg4bk4oe.fsf@gnu.org> <83h6qik2wv.fsf@gnu.org> 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="11899"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , help-gnu-emacs@gnu.org To: uzibalqa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 05 14:47:50 2023 Return-path: Envelope-to: geh-help-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 1qH1vB-0002q1-So for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 05 Jul 2023 14:47:49 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qH1ub-0003Rg-RM; Wed, 05 Jul 2023 08:47:13 -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 1qH1ua-0003RY-JE for help-gnu-emacs@gnu.org; Wed, 05 Jul 2023 08:47:12 -0400 Original-Received: from mail-4324.protonmail.ch ([185.70.43.24]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qH1uX-0006fh-3e; Wed, 05 Jul 2023 08:47:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=jrjwjiezlnaarafxe2w74u7yei.protonmail; t=1688561225; x=1688820425; bh=Pf5ZkMkb4NOy9y8BmZ3OQax0xbABg8AHckd3X2I0v/c=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=eouZlC7W1PPxKc/nYrJSNzvcKR6P/Q+reP6v5DJxSYnNe1QYvXuPEaou0eGOz2Hgh +DWCthI68/4ZTzpuyh6bExOMxqzZltYmmTIOw2dEkERfJg8q+g1kUQ2RAUI8LLG5eY acjcBKzNVzriJtDx46JL7Gph3UEg+87PwOBbUfYGsFBLR0dp9wWwNZySZtKYlJ51tl uPPZdBtAjlcR4Xd470XnMh1Z5JmIJcHWp3sJkEWFR5JkArTJG+piwoP51GtOM81kg1 W+lpEFEPO55guxPtzuuZ882UNAK22Xf4uF+nuxxIkCCHLzdhwjx8IsWfv1v15JR95O TwZpkpRp99M6Q== In-Reply-To: Feedback-ID: 52887082:user:proton Received-SPF: pass client-ip=185.70.43.24; envelope-from=uzibalqa@proton.me; helo=mail-4324.protonmail.ch X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TO_EQ_FM_DIRECT_MX=0.254, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144123 Archived-At: ------- Original Message ------- On Thursday, July 6th, 2023 at 12:02 AM, uzibalqa wrot= e: > ------- Original Message ------- > On Wednesday, July 5th, 2023 at 11:34 PM, Eli Zaretskii eliz@gnu.org wrot= e: >=20 >=20 >=20 > > > Date: Wed, 05 Jul 2023 09:44:41 +0000 > > > From: uzibalqa uzibalqa@proton.me > > > Cc: Drew Adams drew.adams@oracle.com, Eli Zaretskii eliz@gnu.org, "he= lp-gnu-emacs@gnu.org" help-gnu-emacs@gnu.org > > >=20 > > > Eli, are we meant to use keymap-global-set this way in order > > > to make an alternative keymap ? > > >=20 > > > (keymap-global-set "C-;" "C-x C-;") > >=20 > > I don't think I understand the question. What do you mean by "make an > > alternative map"? >=20 >=20 > Following up on Drew's "What's a command and its purported replacement", > are "keymap-set" and "keymap-global-set" supposed to accept the declarati= ons > where command is actually a keymap like so >=20 > (keymap-set "C-;" "C-x C-;") > (keymap-global-set "C-;" "C-x C-;") >=20 > Which is intended to add the keymap "C-;" as an equivalence to "C-x C-;",= 'and > thusly having "C-;" as an alternative keymap to using "C-x C-;". It makes sense to use (keymap-set "C-;" (kbd "C-x C-;"))=20 because (kbd "C-x C-;") looks as a command.