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 14:01:51 +0000 Message-ID: References: <83zg4bk4oe.fsf@gnu.org> <83h6qik2wv.fsf@gnu.org> <838rbujxiz.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="4254"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 05 16:02:39 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 1qH35a-0000rV-Gg for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 05 Jul 2023 16:02:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qH34z-0007YK-K5; Wed, 05 Jul 2023 10:02:01 -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 1qH34y-0007YA-Mk for help-gnu-emacs@gnu.org; Wed, 05 Jul 2023 10:02:00 -0400 Original-Received: from mail-4027.protonmail.ch ([185.70.40.27]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qH34v-000118-Os for help-gnu-emacs@gnu.org; Wed, 05 Jul 2023 10:02:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1688565714; x=1688824914; bh=3kB2u+Nh1k/281ZIHH7PE8HHGHQPuznrjMrmT/KkNmY=; 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=N2kB/gv/a1R1sBm69SaY2PhzvYUWno90jYRSU+aExPLwqH/W/uTr/TPkISFCvdgbc n5EyHhzCB/iejMTcTqAohXUl4TF5W3oFlbmxtww2FPx+N5FKxuqzKmJgZCwYOM0Awu fe63gfelMk7gUY40vDw9lJfbX70U7OGddBEJTEJoqOFd9AU++LsKFW/ISG/V1QFr7R iYEptQYorffjynSF5HV7W8aCGushcEBUks1rVWuoJvn12hIsGcRN+aFeviqn+Zmg0h YTZCts7m1JeAR08fmyxNPLlzxkwFcCEOYsbp/J1nvmGpO0kknyeJz/C9QyT086jCkv exI2OZlLLvtxw== In-Reply-To: <838rbujxiz.fsf@gnu.org> Feedback-ID: 52887082:user:proton Received-SPF: pass client-ip=185.70.40.27; envelope-from=uzibalqa@proton.me; helo=mail-4027.protonmail.ch 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, SPF_HELO_PASS=-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: 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:144128 Archived-At: ------- Original Message ------- On Thursday, July 6th, 2023 at 1:30 AM, Eli Zaretskii wrote: > > Date: Wed, 05 Jul 2023 12:02:54 +0000 > > From: uzibalqa uzibalqa@proton.me > > Cc: help-gnu-emacs@gnu.org > >=20 > > ------- Original Message ------- > > On Wednesday, July 5th, 2023 at 11:34 PM, Eli Zaretskii eliz@gnu.org wr= ote: > >=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 > > Following up on Drew's "What's a command and its purported replacement"= , > > are "keymap-set" and "keymap-global-set" supposed to accept the declara= tions > > 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-;". >=20 >=20 > Except that "C-x C-;" is not a keymap, so I still don't understand > what are you asking about when you say "alternative keymap". Drew has corrected me about the terminology. I am quite confused with the following (global-set-key KEY COMMAND) (keymap-global-set KEY COMMAND) (define-key KEYMAP KEY DEF &optional REMOVE) (keymap-set KEYMAP KEY DEFINITION) Previously one was able to add a Key Sequence KSQ as equivalent to a=20 previously defined Key Sequence KSQ-ORIGINAL. How would we do this=20 now with "keymap-set" and "keymap-global-set" ?=20