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 09:44:41 +0000 Message-ID: References: <83zg4bk4oe.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="14678"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Drew Adams , 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 11:45:52 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 1qGz56-0003bl-7w for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 05 Jul 2023 11:45:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qGz4Q-00073u-8u; Wed, 05 Jul 2023 05:45:10 -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 1qGz4K-00073T-VI for help-gnu-emacs@gnu.org; Wed, 05 Jul 2023 05:45:07 -0400 Original-Received: from mail-40138.protonmail.ch ([185.70.40.138]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qGz4G-0001IN-Sd; Wed, 05 Jul 2023 05:45:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1688550296; x=1688809496; bh=z1jN4unyf1SWIx5ZDlgNP2zdkdGxckJVMp6lghFz3vs=; 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=cugwNNO7ydHcnQ0vLXeKkMTpfjaTsg4Ugtxp1OAdzOu6cFysBd0xT6gXUp+6eQ4QA nDmUy1QSpICNVk4GE0skmKic6jV92FlJ03y8IMHQds9uOUzfpOqAsG2+89wtzMXad8 jkfGDAnlesewymoNVrljs38B4dDBX0dgOKJQWa5Nz6Jm3bmovV/RKWlg7piUCv37Q3 X7kHN3hSTXwJ74eIO12CoMrkr8gx57OrgIbifccgypVr+h8QeghYYcDJL2IFHQdtTe WE4tKW3jhAqpJnkuNVb82AYgdxG/B+nZrQMyt+qhzlKnxx+U1XGDvuUHBjtizXDVVi ftFA2bdX3YnAA== In-Reply-To: Feedback-ID: 52887082:user:proton Received-SPF: pass client-ip=185.70.40.138; envelope-from=uzibalqa@proton.me; helo=mail-40138.protonmail.ch X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 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, TO_EQ_FM_DIRECT_MX=0.73, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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:144120 Archived-At: ------- Original Message ------- On Wednesday, July 5th, 2023 at 8:39 AM, uzibalqa wrot= e: > ------- Original Message ------- > On Wednesday, July 5th, 2023 at 8:26 AM, Drew Adams drew.adams@oracle.com= wrote: >=20 >=20 >=20 > > > > What does one do to replace > > > >=20 > > > > (global-set-key (kbd "C-;") (kbd "C-x C-;")) > > >=20 > > > I tried > > >=20 > > > (keymap-global-set "C-;" "C-x C-;") > > >=20 > > > and it sets C-; to the command that's bound to C-x C-; > > >=20 > > > The doc string of keymap-global-set doesn't say clearly that argument > > > COMMAND can be a key description (what kbd returns) of a key sequence= bound to > > > some command. I recommend an improved description. > >=20 > > FWIW, that's quoting me, until your "I recommend...". >=20 >=20 > Right. Your suggestion made as direct request here. >=20 > > https://emacs.stackexchange.com/a/77865 > >=20 > > Someone may correct me. A quick look at the doc strings > > and manuals indicated to me that some things aren't yet > > specified clearly. Eli, are we meant to use keymap-global-set this way in order=20 to make an alternative keymap ? (keymap-global-set "C-;" "C-x C-;")