From unknown Wed Jun 18 23:04:52 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#55842 <55842@debbugs.gnu.org> To: bug#55842 <55842@debbugs.gnu.org> Subject: Status: 29.0.50; Using shorthand syntax in keymap-global-set Reply-To: bug#55842 <55842@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:04:52 +0000 retitle 55842 29.0.50; Using shorthand syntax in keymap-global-set reassign 55842 emacs submitter 55842 Arash Esbati severity 55842 normal tag 55842 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 08 05:48:41 2022 Received: (at submit) by debbugs.gnu.org; 8 Jun 2022 09:48:41 +0000 Received: from localhost ([127.0.0.1]:42493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nysIr-0006BG-Jr for submit@debbugs.gnu.org; Wed, 08 Jun 2022 05:48:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:47726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nysIp-0006B7-CG for submit@debbugs.gnu.org; Wed, 08 Jun 2022 05:48:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nysIm-00050j-Uh for bug-gnu-emacs@gnu.org; Wed, 08 Jun 2022 05:48:38 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57288) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nysIl-0001BM-2d for bug-gnu-emacs@gnu.org; Wed, 08 Jun 2022 05:48:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=HPqIPTam9vl7CBtnfxaOv+lUvVnESJ0gmYZBIBFy9bc=; b=PRSE6oCS5V/iPE YnaP2qrGJbohLZ24Bcl+1++oh41EhxXPIoOcen1gIrIG2TeO5QxA4iyBmGfQXJDsCxRJ2humsftsQ QgWUSkG5kP1HTnyEOe5t80Y4UTA2BnQjV0J42syW35JxRbe76PYcnT24o+cyg0oglR9ZYW7Th4/pt 6o+ANnp2nvn0lUBxdXlLGGJz5iV4dJD1g0dhNuoJI2yxQSNA0s4EjC4x2POndMTwgV4Vxxrb985cq oiiMlYSat9tUA5tfSG8LlMjGdNRMk8keEBPkSfo93CJG88zp8n4ux28J+s3d0fWdvQXOD8zCJ1wHY uvcq/L+m1zNXBnwJ7+2Q==; Received: from p4fe3ee56.dip0.t-ipconnect.de ([79.227.238.86]:59135 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nysIk-0001gO-Ke for bug-gnu-emacs@gnu.org; Wed, 08 Jun 2022 05:48:34 -0400 From: Arash Esbati To: emacs-bugs Subject: 29.0.50; Using shorthand syntax in keymap-global-set Date: Wed, 08 Jun 2022 11:48:04 +0200 Message-ID: <86czfjlc4r.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi all, I tried to switch from `global-set-key' to `keymap-global-set' and this is my first observation: I can't use shorthand syntax. To reproduce: 1. emacs -Q 2. In scratch, eval (key-valid-p "C-TAB") => t 3. In scratch, eval (keymap-global-set "C-TAB" #'other-window) 4. Try 'C-h k Ctrl-Tab' => C- is undefined 5. In scratch, eval (keymap-global-set "C-" #'other-window) 6. 'C-h k Ctrl-Tab' returns the expected result. Am I missing something about shorthands? Reading the docstring of `key-valid-p', I thought the item 3. above should also work. This is Emacs from master 22d3f0e95a. Best, Arash From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 09 09:35:15 2022 Received: (at 55842) by debbugs.gnu.org; 9 Jun 2022 13:35:15 +0000 Received: from localhost ([127.0.0.1]:45499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzIJe-00017p-MQ for submit@debbugs.gnu.org; Thu, 09 Jun 2022 09:35:14 -0400 Received: from quimby.gnus.org ([95.216.78.240]:49634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzIJc-00017I-9N for 55842@debbugs.gnu.org; Thu, 09 Jun 2022 09:35:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2nhR8s0n1kODEfpW4r8J566KIG9yX9kHfH8Hc4nq5mA=; b=lzTrW+BPOSD0f2lkmvQ9P6k/EI iN+5VqnKAOXfydqQytG7rLFHyVp8ybpTO1oGsdi6FJnmTwos0eT05161eTU9qFOBvWQo5bG5ZJsux 0q+PE8q95AieWlXzRyM72+gH5jP3CdCZnCKh+0YqhZ8oZNiTH2ySQshIXACm83RLC0uQ=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nzIJT-0000Gy-FU; Thu, 09 Jun 2022 15:35:05 +0200 From: Lars Ingebrigtsen To: Arash Esbati Subject: Re: bug#55842: 29.0.50; Using shorthand syntax in keymap-global-set References: <86czfjlc4r.fsf@gnu.org> X-Now-Playing: Prince's _Sign 'O' the Times (7): Live in Utrecht II_: "Let's Go Crazy (Live In Utrecht)" Date: Thu, 09 Jun 2022 15:35:02 +0200 In-Reply-To: <86czfjlc4r.fsf@gnu.org> (Arash Esbati's message of "Wed, 08 Jun 2022 11:48:04 +0200") Message-ID: <874k0u55a1.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Arash Esbati writes: > I tried to switch from `global-set-key' to `keymap-global-set' and this > is my first observation: I can't use shorthand syntax. To reproduce: > > 1. emacs -Q > 2. In scratch, eval (key-valid-p "C-T [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55842 Cc: 55842@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Arash Esbati writes: > I tried to switch from `global-set-key' to `keymap-global-set' and this > is my first observation: I can't use shorthand syntax. To reproduce: > > 1. emacs -Q > 2. In scratch, eval (key-valid-p "C-TAB") => t > 3. In scratch, eval (keymap-global-set "C-TAB" #'other-window) > 4. Try 'C-h k Ctrl-Tab' => C- is undefined > 5. In scratch, eval (keymap-global-set "C-" #'other-window) > 6. 'C-h k Ctrl-Tab' returns the expected result. > > Am I missing something about shorthands? Reading the docstring of > `key-valid-p', I thought the item 3. above should also work. TAB is a complicated issue in Emacs, unfortunately. "C-TAB" is just a different way to write "C-i", because TAB and C-i are the same in most terminals. If you want to bind the C- key stroke, you have to specify it as such. (And it won't work in most terminals, only in GUI Emacs.) (key-valid-p "C-TAB") could signal an error to help lessen the confusion, I guess? (And C-RET and C-LFD.) Anybody got an opinion here? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 09 09:35:20 2022 Received: (at control) by debbugs.gnu.org; 9 Jun 2022 13:35:20 +0000 Received: from localhost ([127.0.0.1]:45502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzIJk-000188-1Y for submit@debbugs.gnu.org; Thu, 09 Jun 2022 09:35:20 -0400 Received: from quimby.gnus.org ([95.216.78.240]:49658) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzIJi-00017e-IG for control@debbugs.gnu.org; Thu, 09 Jun 2022 09:35:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=3TTcozKuWBpfxB7mpNlilk10STSIb7v4mXSwlSuYNA0=; b=UmJhBcAotr5IWEuTmMw5FfCUgJ s0FwbunoLi8Qi6GJuSJR8hWaBendNiq3eMSDM5mmsQis2uEu95uSKOUV6ZRbqQWPsRG8kIOvwX1i/ xBclf0vOL9MoZX52A68Y+QKqfpBKOaqQCHXsyzAPj87L4ykpWFl5i9e0cgXXZZJ8VEPY=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nzIJa-0000H8-Nm for control@debbugs.gnu.org; Thu, 09 Jun 2022 15:35:12 +0200 Date: Thu, 09 Jun 2022 15:35:08 +0200 Message-Id: <8735ge559v.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #55842 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 55842 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 55842 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 09 12:08:53 2022 Received: (at 55842) by debbugs.gnu.org; 9 Jun 2022 16:08:53 +0000 Received: from localhost ([127.0.0.1]:47501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzKiK-0002CP-S6 for submit@debbugs.gnu.org; Thu, 09 Jun 2022 12:08:53 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzKiJ-0002CD-EP for 55842@debbugs.gnu.org; Thu, 09 Jun 2022 12:08:51 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60142) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzKiD-0000BH-WD; Thu, 09 Jun 2022 12:08:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=nJYXWaXKGmzmy51BxUqBCs1iBl4jDVoCYE7aazvMfGA=; b=dJRPCVu3aBLQ /SqyZgyUweyMVJuEseMkCtvg4hdGwVcMO6EuPnG+OmFT6SjWc68I5KuOXiMcGbzdVfIbteFrF7m+L t7ldQCiLKhxVO6CE1EkM/Q6yNg7rDFDDkk5PepYaXTXUxgkajZdXQhQgMQ3pwznfLWdhDsoJEbhkj VM3OAB/YhMUgD6PTOotpKGIqcBkqEYvNYF6+eIH+1K1ll1XTZwGCFu66ZJloCWZzdM4fLA1qqBwrz IQliI3j1pP7vyd7+/qlCgjNToba192IB4D6tSSWJGwTP9RUxAgvH6C4sJXbJ8ExOYPOz6Lvn8mz9s J36r5w7+aHy7IIKsflfMEg==; Received: from [87.69.77.57] (port=1493 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzKiD-00020P-Ch; Thu, 09 Jun 2022 12:08:45 -0400 Date: Thu, 09 Jun 2022 19:08:42 +0300 Message-Id: <83czfh3jlh.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <874k0u55a1.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 09 Jun 2022 15:35:02 +0200) Subject: Re: bug#55842: 29.0.50; Using shorthand syntax in keymap-global-set References: <86czfjlc4r.fsf@gnu.org> <874k0u55a1.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55842 Cc: arash@gnu.org, 55842@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: 55842@debbugs.gnu.org > From: Lars Ingebrigtsen > Date: Thu, 09 Jun 2022 15:35:02 +0200 > > > 1. emacs -Q > > 2. In scratch, eval (key-valid-p "C-TAB") => t > > 3. In scratch, eval (keymap-global-set "C-TAB" #'other-window) > > 4. Try 'C-h k Ctrl-Tab' => C- is undefined > > 5. In scratch, eval (keymap-global-set "C-" #'other-window) > > 6. 'C-h k Ctrl-Tab' returns the expected result. > > > > Am I missing something about shorthands? Reading the docstring of > > `key-valid-p', I thought the item 3. above should also work. > > TAB is a complicated issue in Emacs, unfortunately. > > "C-TAB" is just a different way to write "C-i", because TAB and C-i are > the same in most terminals. > > If you want to bind the C- key stroke, you have to specify it as > such. (And it won't work in most terminals, only in GUI Emacs.) > > (key-valid-p "C-TAB") could signal an error to help lessen the > confusion, I guess? (And C-RET and C-LFD.) Anybody got an opinion > here? Without thinking about this too much, my opinion is that if the new APIs are to be the replacement for the obsolete ones, they had better supported the same syntax, because I don't believe there's a single Emacs user out there who doesn't have some key bindings in their init files. If the syntax is incompatible, how can we ever convince the majority to switch? From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 09 12:37:18 2022 Received: (at 55842) by debbugs.gnu.org; 9 Jun 2022 16:37:18 +0000 Received: from localhost ([127.0.0.1]:47548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzL9q-000573-Le for submit@debbugs.gnu.org; Thu, 09 Jun 2022 12:37:18 -0400 Received: from quimby.gnus.org ([95.216.78.240]:52000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzL9o-00056q-Ux for 55842@debbugs.gnu.org; Thu, 09 Jun 2022 12:37:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=YqauYFoIOG56cyzH0arIhk3/BXCKKaIkDRufA0BqBzY=; b=C1/ZCA69sHtbKCm7sE1T2Zj6tU PtyfJqKpA18klPrCVgeAREeoF9ZHQNK9Jq4n3U68GEaPVPN4Sce16zbm6YPFsLhWt9CtCxXJYij/k uJe6LukMw8hnxvc+IxjMqG20LdODP8kVtJ/nJyL2WXJ3ONBPeP6eNiijegAPL98iMSQ4=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nzL9f-0002sU-RY; Thu, 09 Jun 2022 18:37:10 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#55842: 29.0.50; Using shorthand syntax in keymap-global-set References: <86czfjlc4r.fsf@gnu.org> <874k0u55a1.fsf@gnus.org> <83czfh3jlh.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEUPDxInHCONbKxO KEOiOy3///9uRwijAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YGCQ87KhLUicYAAAGlSURBVDjLpZNh mqMwCIbh6R4AxAOsZA4gkAO0mvufaUk6M9raf8uPqLx8BAkB+G9DZiY6vpl/QaIDYLEkmA40PoOb aiG4/e1axFMqdFUCfN9wWmCO+A07FF6wHXJkW79fdaGGcNryJ0QXvCP4+gmswG7v4KaZCFivCg+T 2q4AoC5Sd71uPredUK4AYvrKDpVrpy0bslzjYX508OFoNkbxxwfQcvnzAcwje7sWuw3XdH/zCzde 8zznB9tJ5CAzZb8ni7oTUJ8RxhXZgTM55TnDfO/eCBZfOY+TmxsHO0sfD9UOTRaE1vwrYtOwaoxf zVjUpoVBS4R6aEQsnL0Jm8oAHl5105yrnsSTh1rk+Eno0zL+Vlt0VckoiAGiuJqI1j3qpsWLQd84 N8j+lmAte6L82hp0l46lKGW0L2WEgfZUuw8Vieoj/zHzOvQ6m0VUcqMMshyw4iFQIr3ELBRMWRAT S+nXKPhpQsYkcUwj/9j7UOPTO4alL3CSjEf22T4oXi7kGfQrzG/kW5ANfSXS0mysO13AHn2NFwkP V9Sk9lIA15OCjuL+AZFuUILiwA2mAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA2LTA5VDE1OjU5 OjQyKzAwOjAwfNxggQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNi0wOVQxNTo1OTo0MiswMDow MA2B2D0AAAAASUVORK5CYII= X-Now-Playing: Julie Tippetts & Martin Archer's _Illusion_: "Elephant Rider" Date: Thu, 09 Jun 2022 18:37:06 +0200 In-Reply-To: <83czfh3jlh.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 09 Jun 2022 19:08:42 +0300") Message-ID: <87sfodztcd.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > Without thinking about this too much, my opinion is that if the new > APIs are to be the replacement for the obsolete ones, they had better > supported the same syntax, because I don't believe there [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55842 Cc: arash@gnu.org, 55842@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: > Without thinking about this too much, my opinion is that if the new > APIs are to be the replacement for the obsolete ones, they had better > supported the same syntax, because I don't believe there's a single > Emacs user out there who doesn't have some key bindings in their init > files. If the syntax is incompatible, how can we ever convince the > majority to switch? I'm not sure what you mean here. People that previously said (local-set-key "\C-\M-i" ... ) can say (keymap-local-set "C-M-i" ...) just fine. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 09 12:43:28 2022 Received: (at 55842) by debbugs.gnu.org; 9 Jun 2022 16:43:28 +0000 Received: from localhost ([127.0.0.1]:47564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzLFo-0005Gs-BG for submit@debbugs.gnu.org; Thu, 09 Jun 2022 12:43:28 -0400 Received: from quimby.gnus.org ([95.216.78.240]:52036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzLFm-0005Ge-2g for 55842@debbugs.gnu.org; Thu, 09 Jun 2022 12:43:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=RzqTg0llNMvWhOB8qlTCIgpbe86LOGtUcu8QBjdrIA8=; b=o6nM8s6iBn6/o0AavgCHMiIZJt 10o7vY/yVpfl6tNHPvVqpgaRoWcqx8NIpgVr/sV1XGtPAROeT4XRYvN2HMHuP32x+gByhPEY+PMzZ RqNUZ8azgALYMzcTBhI594gaEbFfMcwrLPfrdlH9YS7Ftnwuui33RggQEx4UyHI4YeX8=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nzLFd-0002wS-3n; Thu, 09 Jun 2022 18:43:19 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#55842: 29.0.50; Using shorthand syntax in keymap-global-set References: <86czfjlc4r.fsf@gnu.org> <874k0u55a1.fsf@gnus.org> <83czfh3jlh.fsf@gnu.org> <87sfodztcd.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEUPDxInHCONbKxO KEOiOy3///9uRwijAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YGCQ87KhLUicYAAAGlSURBVDjLpZNh mqMwCIbh6R4AxAOsZA4gkAO0mvufaUk6M9raf8uPqLx8BAkB+G9DZiY6vpl/QaIDYLEkmA40PoOb aiG4/e1axFMqdFUCfN9wWmCO+A07FF6wHXJkW79fdaGGcNryJ0QXvCP4+gmswG7v4KaZCFivCg+T 2q4AoC5Sd71uPredUK4AYvrKDpVrpy0bslzjYX508OFoNkbxxwfQcvnzAcwje7sWuw3XdH/zCzde 8zznB9tJ5CAzZb8ni7oTUJ8RxhXZgTM55TnDfO/eCBZfOY+TmxsHO0sfD9UOTRaE1vwrYtOwaoxf zVjUpoVBS4R6aEQsnL0Jm8oAHl5105yrnsSTh1rk+Eno0zL+Vlt0VckoiAGiuJqI1j3qpsWLQd84 N8j+lmAte6L82hp0l46lKGW0L2WEgfZUuw8Vieoj/zHzOvQ6m0VUcqMMshyw4iFQIr3ELBRMWRAT S+nXKPhpQsYkcUwj/9j7UOPTO4alL3CSjEf22T4oXi7kGfQrzG/kW5ANfSXS0mysO13AHn2NFwkP V9Sk9lIA15OCjuL+AZFuUILiwA2mAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA2LTA5VDE1OjU5 OjQyKzAwOjAwfNxggQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNi0wOVQxNTo1OTo0MiswMDow MA2B2D0AAAAASUVORK5CYII= X-Now-Playing: Julie Tippetts & Martin Archer's _Illusion_: "Dancing On Air" Date: Thu, 09 Jun 2022 18:43:16 +0200 In-Reply-To: <87sfodztcd.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 09 Jun 2022 18:37:06 +0200") Message-ID: <87leu5zt23.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > I'm not sure what you mean here. People that previously said > (local-set-key "\C-\M-i" ... ) can say (keymap-local-set "C-M-i" ...) > just fine. Or do you mean C-TAB? I misspoke -- that's not the same as C-i, it's (key-parse "C-TAB") => [67108873] (now and before), which is not the same as (key-parse "C-") => [C-tab], which was my point. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55842 Cc: arash@gnu.org, 55842@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > I'm not sure what you mean here. People that previously said > (local-set-key "\C-\M-i" ... ) can say (keymap-local-set "C-M-i" ...) > just fine. Or do you mean C-TAB? I misspoke -- that's not the same as C-i, it's (key-parse "C-TAB") => [67108873] (now and before), which is not the same as (key-parse "C-") => [C-tab], which was my point. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 09 12:56:03 2022 Received: (at 55842) by debbugs.gnu.org; 9 Jun 2022 16:56:03 +0000 Received: from localhost ([127.0.0.1]:47607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzLRz-0005gC-Cp for submit@debbugs.gnu.org; Thu, 09 Jun 2022 12:56:03 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzLRx-0005fi-R0 for 55842@debbugs.gnu.org; Thu, 09 Jun 2022 12:56:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33082) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzLRs-0007k2-Do; Thu, 09 Jun 2022 12:55:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Xp8FU0HlgpTbkw2s8z/97YP5a7H6UIVyVH6k7T0N+9k=; b=n9DbTZVrGMIL 3n8rPmBXmiWfDVjorDDGic7IwVsHX6dUBxH+5GD9ZmbyHgH2JADTghHns6aBimKJdvzfLh3en2rEw XfUKuvEF5q9Hmskpn0BaoIrlnFubREhGAHEKsz+7fXppF4f38FW5m2rN4XZpxutdINAifBnlY5e3p b7JCmcCg5tmGVsM8PiT7IcFYngpHHGpUrstRHDgDjswRUmUBAgSEsUUzzxg9DzrKlZtLDx06TkNfE 2tQHY2pBqQdt+R4Xd+AE0tZuVKEiwSUnBdi8Nqxkdnx0qkoBLynj67lhQPJhPH9j8x5+AGpVJbX+7 AEynJJggCLusj+ovUf31/w==; Received: from [87.69.77.57] (port=4388 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzLRr-0005iH-F3; Thu, 09 Jun 2022 12:55:55 -0400 Date: Thu, 09 Jun 2022 19:55:53 +0300 Message-Id: <8335gd3heu.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87sfodztcd.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 09 Jun 2022 18:37:06 +0200) Subject: Re: bug#55842: 29.0.50; Using shorthand syntax in keymap-global-set References: <86czfjlc4r.fsf@gnu.org> <874k0u55a1.fsf@gnus.org> <83czfh3jlh.fsf@gnu.org> <87sfodztcd.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55842 Cc: arash@gnu.org, 55842@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Cc: arash@gnu.org, 55842@debbugs.gnu.org > Date: Thu, 09 Jun 2022 18:37:06 +0200 > > Eli Zaretskii writes: > > > Without thinking about this too much, my opinion is that if the new > > APIs are to be the replacement for the obsolete ones, they had better > > supported the same syntax, because I don't believe there's a single > > Emacs user out there who doesn't have some key bindings in their init > > files. If the syntax is incompatible, how can we ever convince the > > majority to switch? > > I'm not sure what you mean here. People that previously said > (local-set-key "\C-\M-i" ... ) can say (keymap-local-set "C-M-i" ...) > just fine. My point is that (keymap-local-set "\C-\M-i" ...) signals an error, and a weird one at that. I hoped that we could make the APIs fully compatible. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 09 13:14:58 2022 Received: (at 55842) by debbugs.gnu.org; 9 Jun 2022 17:14:58 +0000 Received: from localhost ([127.0.0.1]:47625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzLkH-0006BA-VT for submit@debbugs.gnu.org; Thu, 09 Jun 2022 13:14:58 -0400 Received: from quimby.gnus.org ([95.216.78.240]:52230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzLkD-0006An-5Y for 55842@debbugs.gnu.org; Thu, 09 Jun 2022 13:14:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=N+OtUIyCdoNhqHfA/lGFZN/6PfFMAISYP+eIbjrYsjQ=; b=OVnCtIvTExFKjeSe5BsZNTa0Bu D/nsyiPMn4yEv9JXJsaaP4M8PHG2AZskRPRNYOENDL/GS59Hy3zpOakySa/3aJ0wnCTwCQqs+IV/O ArDdc6HwtgksjN80r8z9SX9uliXmbE4KxNyN+bEgFByY/zjC3+dKMM6XVEc2TvqB+ECI=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nzLk3-0003Jy-MF; Thu, 09 Jun 2022 19:14:46 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#55842: 29.0.50; Using shorthand syntax in keymap-global-set References: <86czfjlc4r.fsf@gnu.org> <874k0u55a1.fsf@gnus.org> <83czfh3jlh.fsf@gnu.org> <87sfodztcd.fsf@gnus.org> <8335gd3heu.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEUPDxInHCONbKxO KEOiOy3///9uRwijAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YGCQ87KhLUicYAAAGlSURBVDjLpZNh mqMwCIbh6R4AxAOsZA4gkAO0mvufaUk6M9raf8uPqLx8BAkB+G9DZiY6vpl/QaIDYLEkmA40PoOb aiG4/e1axFMqdFUCfN9wWmCO+A07FF6wHXJkW79fdaGGcNryJ0QXvCP4+gmswG7v4KaZCFivCg+T 2q4AoC5Sd71uPredUK4AYvrKDpVrpy0bslzjYX508OFoNkbxxwfQcvnzAcwje7sWuw3XdH/zCzde 8zznB9tJ5CAzZb8ni7oTUJ8RxhXZgTM55TnDfO/eCBZfOY+TmxsHO0sfD9UOTRaE1vwrYtOwaoxf zVjUpoVBS4R6aEQsnL0Jm8oAHl5105yrnsSTh1rk+Eno0zL+Vlt0VckoiAGiuJqI1j3qpsWLQd84 N8j+lmAte6L82hp0l46lKGW0L2WEgfZUuw8Vieoj/zHzOvQ6m0VUcqMMshyw4iFQIr3ELBRMWRAT S+nXKPhpQsYkcUwj/9j7UOPTO4alL3CSjEf22T4oXi7kGfQrzG/kW5ANfSXS0mysO13AHn2NFwkP V9Sk9lIA15OCjuL+AZFuUILiwA2mAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA2LTA5VDE1OjU5 OjQyKzAwOjAwfNxggQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNi0wOVQxNTo1OTo0MiswMDow MA2B2D0AAAAASUVORK5CYII= X-Now-Playing: Julie Tippetts & Martin Archer's _Illusion_: "Chances (Illusion Suite #1)" Date: Thu, 09 Jun 2022 19:14:43 +0200 In-Reply-To: <8335gd3heu.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 09 Jun 2022 19:55:53 +0300") Message-ID: <87h74tzrlo.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > My point is that (keymap-local-set "\C-\M-i" ...) signals an error, > and a weird one at that. I hoped that we could make the APIs fully > compatible. The aim with these new functions were to settle on a single syntax for keys, and the syntax we settled on was the `kbd' one. You can't do (keymap-local-set "\C-\M-i" ...) or (keymap-local-set [?\C-\M- [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55842 Cc: arash@gnu.org, 55842@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: > My point is that (keymap-local-set "\C-\M-i" ...) signals an error, > and a weird one at that. I hoped that we could make the APIs fully > compatible. The aim with these new functions were to settle on a single syntax for keys, and the syntax we settled on was the `kbd' one. You can't do (keymap-local-set "\C-\M-i" ...) or (keymap-local-set [?\C-\M-i] .. ) or (keymap-local-set [(control meta i)] ...) either -- that was the whole point of the exercise. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 09 13:50:02 2022 Received: (at 55842) by debbugs.gnu.org; 9 Jun 2022 17:50:02 +0000 Received: from localhost ([127.0.0.1]:47688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzMID-0007A6-Ku for submit@debbugs.gnu.org; Thu, 09 Jun 2022 13:50:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzMIC-00079l-24 for 55842@debbugs.gnu.org; Thu, 09 Jun 2022 13:50:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34774) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzMI6-0007rM-8g; Thu, 09 Jun 2022 13:49:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=K1QTz4JrxYEo2MHgRiWdj28BOgwgeFWFcv5bDkiKORY=; b=ECMgZmRTxTGd eu9yfNE4u/ekgW0jWyVCdXEnUOyBuK4xocGtNlznoMZWzy3PJZv20P9i/wgqISxtk/ICdJgRDorFw t/NU5Mg8F2vuQU80WiEKejUGngvnx1D4ZD8RgdTiQWSLvZmOWbAZZVcZvzO5OQxrUsbxQdSTm/IPT GoH6fQRo2Uf51y5te+m/hONIPMpHGFNQjTUjVKFtQrOAOpQRibAlc4dU2XuPOItM89tRhUIyPuF6C XtHgncbQ7fUlwSSi2uEV0G8s8TMezPhk6DlBZGZwnvAumKg3oY5IrQHiEe73Tg3Sd4WvdaObn/hqD /LPPBT7/0mDfwdwtv7ILOw==; Received: from [87.69.77.57] (port=3732 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzMI4-0000E6-SK; Thu, 09 Jun 2022 13:49:53 -0400 Date: Thu, 09 Jun 2022 20:49:50 +0300 Message-Id: <83wndp20ch.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87h74tzrlo.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 09 Jun 2022 19:14:43 +0200) Subject: Re: bug#55842: 29.0.50; Using shorthand syntax in keymap-global-set References: <86czfjlc4r.fsf@gnu.org> <874k0u55a1.fsf@gnus.org> <83czfh3jlh.fsf@gnu.org> <87sfodztcd.fsf@gnus.org> <8335gd3heu.fsf@gnu.org> <87h74tzrlo.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55842 Cc: arash@gnu.org, 55842@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Cc: arash@gnu.org, 55842@debbugs.gnu.org > Date: Thu, 09 Jun 2022 19:14:43 +0200 > > Eli Zaretskii writes: > > > My point is that (keymap-local-set "\C-\M-i" ...) signals an error, > > and a weird one at that. I hoped that we could make the APIs fully > > compatible. > > The aim with these new functions were to settle on a single syntax for > keys, and the syntax we settled on was the `kbd' one. You can't > do (keymap-local-set "\C-\M-i" ...) or (keymap-local-set [?\C-\M-i] .. ) > or (keymap-local-set [(control meta i)] ...) either -- that was the > whole point of the exercise. Then I wish us good luck convincing users to switch. From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 10 04:33:05 2022 Received: (at 55842) by debbugs.gnu.org; 10 Jun 2022 08:33:05 +0000 Received: from localhost ([127.0.0.1]:48632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nza4n-0003FN-3X for submit@debbugs.gnu.org; Fri, 10 Jun 2022 04:33:05 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nza4k-0003Er-QQ for 55842@debbugs.gnu.org; Fri, 10 Jun 2022 04:33:04 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49972) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nza4f-0002sA-Hf; Fri, 10 Jun 2022 04:32:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=74n7whhD1bCvtUcgJjEbo9QH6Kr75K+QHJG30JZAPQw=; b=iGGIOeHtYR9a/72PK7WY xEZRudBnkh+dOvvlFe1HvWmI/kjJBtb8rOTJzKx6rgCulgfhZgJSTImnnbgrqabYB9oj5uTqhECJE n6kj2CBeusaf82POdJWzb8Opy/pmYSgm0P1x+0SNrGzl1w/sNQsWoXCLk/wGyOzDYZDk9Js//SX7U cCiYDqlzGzWW++fGFGhIVP+DJIRDXYaQ7TRdEIu37yhJuS3Us3DE695dqJJWXlxhur2h7yqiOOyd8 d93xM5JPrVFvMscuRqtH9do1BLv62PEPRYx2UdF7pNIn/dJ0uB89B1rytiAK7WfbAVmCHsIv7/xYo bgZ8GsxsIkA01g==; Received: from p4fe3ee56.dip0.t-ipconnect.de ([79.227.238.86]:54502 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nza4f-0002Ka-4U; Fri, 10 Jun 2022 04:32:57 -0400 From: Arash Esbati To: Lars Ingebrigtsen Subject: Re: bug#55842: 29.0.50; Using shorthand syntax in keymap-global-set References: <86czfjlc4r.fsf@gnu.org> <874k0u55a1.fsf@gnus.org> Date: Fri, 10 Jun 2022 10:32:36 +0200 In-Reply-To: <874k0u55a1.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 09 Jun 2022 15:35:02 +0200") Message-ID: <86leu4j4uz.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55842 Cc: 55842@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > If you want to bind the C- key stroke, you have to specify it as > such. Thanks for your response. This is what I had, so I just removed the (kbd ...) around it. > (key-valid-p "C-TAB") could signal an error to help lessen the > confusion, I guess? Wouldn't it be enough to return nil? > (And C-RET and C-LFD.) Anybody got an opinion here? I think it should suffice to make `key-valid-p' return nil and adjust its docstring to say there are 3 exceptions to the rule. Best, Arash From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 10 04:57:39 2022 Received: (at 55842) by debbugs.gnu.org; 10 Jun 2022 08:57:39 +0000 Received: from localhost ([127.0.0.1]:48686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzaSZ-0003t6-AV for submit@debbugs.gnu.org; Fri, 10 Jun 2022 04:57:39 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzaSX-0003sp-C6 for 55842@debbugs.gnu.org; Fri, 10 Jun 2022 04:57:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ys9BRGlaTittzXR+J6uzMDK0M/atp3GDq3NSBa/a9qE=; b=C+6o0HaOYcihLzhLfzRFxcS8fc oyvn2RLcDxD0JXH8qgtFr+A23iapDkCo5aR0MM6uDrgp0rxMOZRj25VBaXrhYetoheQ/GOekA+6fG 91R391NV0A3DJloB3Vhpf6wGZVobBOQBYfvv11LK8Cple3fhflwXGaxnp6IJHdT+2ehc=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nzaSO-0005PI-KS; Fri, 10 Jun 2022 10:57:30 +0200 From: Lars Ingebrigtsen To: Arash Esbati Subject: Re: bug#55842: 29.0.50; Using shorthand syntax in keymap-global-set References: <86czfjlc4r.fsf@gnu.org> <874k0u55a1.fsf@gnus.org> <86leu4j4uz.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEX9/fzDvrXY1dCs pZ9lW19FOkEbEBeDfHn///9SSyIfAAAAAWJLR0QIht6VegAAAAd0SU1FB+YGCgg1LpzA2ToAAAGk SURBVDjL1dO9cqMwEABgTF4goEvSgshcjbQ2aUkQ0MZnya5vgrbPz+Re/1ZaYVfpMnNzW2gYfRLs rkSW/W+xKTjkJaoIW+BwEyLaOT5HEGmn6RC9KsPqJk6ommEkWFRxAdgwTDvaoesL3M5lVSXAAbRU ZQJctICHYdoiOjsa52ZIgL/C4gVo8IaG/RmeQ0IHCPk+0eCGCDTZdx48ROh/ErxwgSO2HS4W4JOg 3aDV/KqHeuqbrXlLkHW+TXXkn30mQDJcZ1fuKVV+NfVZrfMInioSqQ5ojn2eZwShJzSRF9w++IG9 zGXNUAXgj8ONa/OqVgCxJy2dR4Id9psI1JPQ+TNQESfZrGCopekbVPBvKcLBIae1ngdBW0c4kugz bCf0ZR2PmpaMWq7QHZeB3xTyHXQjV8BFaL4oIV8c92dA70/voERMyxpXrfAoPwxBTMsf9P2bSOCN cUrRjpiWBb0CrbMi3FIVGo+HkivvrLNmiNdXhKtlIDVx9yqlUAx3tF4UIu04FSUA33h1DDuAs7ox FB9m/kMxj845M7z+61/zG0N+Mf8XUTePbgwOBngAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDYt MTBUMDg6NTM6NDYrMDA6MDAfT5DOAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA2LTEwVDA4OjUz OjQ2KzAwOjAwbhIocgAAAABJRU5ErkJggg== X-Now-Playing: The Style Council's _The Complete Adventures (5)_: "Sure Is Sure" Date: Fri, 10 Jun 2022 10:57:25 +0200 In-Reply-To: <86leu4j4uz.fsf@gnu.org> (Arash Esbati's message of "Fri, 10 Jun 2022 10:32:36 +0200") Message-ID: <87zgikx5e2.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Arash Esbati writes: >> (key-valid-p "C-TAB") could signal an error to help lessen the >> confusion, I guess? > > Wouldn't it be enough to return nil? As I said in a later post -- I was the one that was confused here. "C-TAB" is valid (and is a different key than "C-i", "TAB" and "C-"), so this is working as designed, even if the design is pret [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55842 Cc: 55842@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Arash Esbati writes: >> (key-valid-p "C-TAB") could signal an error to help lessen the >> confusion, I guess? > > Wouldn't it be enough to return nil? As I said in a later post -- I was the one that was confused here. "C-TAB" is valid (and is a different key than "C-i", "TAB" and "C-"), so this is working as designed, even if the design is pretty confusing (for historical reasons, mostly). And this hasn't changed with the new keymap-* functions -- they just reproduce the previous behaviour here, so I guess there's nothing here to be done, and I'm therefore closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 10 04:57:48 2022 Received: (at control) by debbugs.gnu.org; 10 Jun 2022 08:57:48 +0000 Received: from localhost ([127.0.0.1]:48689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzaSi-0003tT-IM for submit@debbugs.gnu.org; Fri, 10 Jun 2022 04:57:48 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzaSh-0003tG-3T for control@debbugs.gnu.org; Fri, 10 Jun 2022 04:57:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1WEU+bukWr4UGMiDc+F2QtCL9AwDDJNQc1d4avR/ELY=; b=qvW9O3KNVq+FJJwgxtKYLF4l6p Au0SH3U13aQAFcDmQLRWG+5Bc96hXyYWFkDd+FWzkJKPePYzyq7zv65/FYmgz2dhPAOYc8iTi2ett bygzf37lrepdj84QWWY6QafTmID6/jB8JzzhwfTox76fWOtpKbil0mECB2q7BGXm9G4Y=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nzaSZ-0005PT-BJ for control@debbugs.gnu.org; Fri, 10 Jun 2022 10:57:41 +0200 Date: Fri, 10 Jun 2022 10:57:37 +0200 Message-Id: <87y1y4x5dq.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #55842 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 55842 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 55842 quit From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 10 06:34:25 2022 Received: (at 55842) by debbugs.gnu.org; 10 Jun 2022 10:34:25 +0000 Received: from localhost ([127.0.0.1]:48916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzbyC-0000Ui-NI for submit@debbugs.gnu.org; Fri, 10 Jun 2022 06:34:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzby9-0000UV-Vh for 55842@debbugs.gnu.org; Fri, 10 Jun 2022 06:34:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33594) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzby4-0005wf-Hy; Fri, 10 Jun 2022 06:34:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=AjYjO3qQsFGAwtlXo5y8qdE9lzNxFpI1MvpT4F4ZDaM=; b=rrsAS8upluqHLCOWeE+/ aqTfb2LBCXClavQdWaMfpAn0wKQeSKPLZcyzBU8eNA/YfZ6PhhM8qHGRdsYjINInxn9XcDsaT2WmY J0lUxojDUkmwjQ4aeq2uOepgQqoXEruVtA4DBx2xKor5lNDnXeomevMrB9iQEczeiR4FoMsO42SdO A+7qLNepw62LlZAYjFZA+LSTzqAIxyfRDG4W465ocCOooq1z+oGQZ9oFmHMZpnMEZixkU6pUnZvLW i2lmbTIVSq2sJuklUO9K1lLBp1WLhHkhF+ZTVIaE0FYUODzJQ2oQafH7icKHjpumiJrYSnz0coAOg 3efTjLC80rAQAQ==; Received: from p4fe3ee56.dip0.t-ipconnect.de ([79.227.238.86]:57224 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzby2-0003RZ-Vu; Fri, 10 Jun 2022 06:34:16 -0400 From: Arash Esbati To: Lars Ingebrigtsen Subject: Re: bug#55842: 29.0.50; Using shorthand syntax in keymap-global-set References: <86czfjlc4r.fsf@gnu.org> <874k0u55a1.fsf@gnus.org> <86leu4j4uz.fsf@gnu.org> <87zgikx5e2.fsf@gnus.org> Date: Fri, 10 Jun 2022 12:33:57 +0200 In-Reply-To: <87zgikx5e2.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 10 Jun 2022 10:57:25 +0200") Message-ID: <86h74siz8q.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55842 Cc: 55842@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > As I said in a later post -- I was the one that was confused here. You were not alone there ;-) > "C-TAB" is valid (and is a different key than "C-i", "TAB" and > "C-"), so this is working as designed, even if the design is > pretty confusing (for historical reasons, mostly). I should have read that message more carefully. Thanks for looking into this. Best, Arash From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 10 18:46:57 2022 Received: (at 55842) by debbugs.gnu.org; 10 Jun 2022 22:46:57 +0000 Received: from localhost ([127.0.0.1]:51521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nznP6-00053S-TX for submit@debbugs.gnu.org; Fri, 10 Jun 2022 18:46:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nznP4-00053D-Iy for 55842@debbugs.gnu.org; Fri, 10 Jun 2022 18:46:55 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41724) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nznOz-000070-4m; Fri, 10 Jun 2022 18:46:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=fNjJ9Jrom3ytgQeqK/peqOCE5CSCxozjhJyqGofupRE=; b=ZJgRIodvtmPE 6bJaaCmlgQDegizD8KZwGujicDcoKpKOlmgTiR578J8iQaNzBx3C7FcgSNwR+G5+fqL4BBZQUDU4R ySP0DcsNpePU3zkVr7UJNJNpnxptNiuyyFAV6iaY3rhLLvK6ELPHOkPv4/DHcBloXvI17TcokOYLU PJjQFAfe1dM0KzwLYJDDicuXaaEk29+G0J0PRKWLvoMyZNX3vKm9Sststr112mX9sOWv/jvcHdJtG 5OcvLMeqHh57n3SUG8HCiX8a8Yx3KMDVZ8fQHBzp2v43EC8aghDGEkFULLuejh2zYaLYSEtuGZQwm xM+ak27cb7lW5Pl8b2Me9Q==; Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1nznOu-0000cg-Ci; Fri, 10 Jun 2022 18:46:48 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman To: Eli Zaretskii In-Reply-To: <83wndp20ch.fsf@gnu.org> (message from Eli Zaretskii on Thu, 09 Jun 2022 20:49:50 +0300) Subject: Re: bug#55842: 29.0.50; Using shorthand syntax in keymap-global-set References: <86czfjlc4r.fsf@gnu.org> <874k0u55a1.fsf@gnus.org> <83czfh3jlh.fsf@gnu.org> <87sfodztcd.fsf@gnus.org> <8335gd3heu.fsf@gnu.org> <87h74tzrlo.fsf@gnus.org> <83wndp20ch.fsf@gnu.org> Message-Id: Date: Fri, 10 Jun 2022 18:46:44 -0400 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55842 Cc: larsi@gnus.org, arash@gnu.org, 55842@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rms@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > The aim with these new functions were to settle on a single syntax for > > keys, and the syntax we settled on was the `kbd' one. You can't > > do (keymap-local-set "\C-\M-i" ...) or (keymap-local-set [?\C-\M-i] .. ) > > or (keymap-local-set [(control meta i)] ...) either -- that was the > > whole point of the exercise. > Then I wish us good luck convincing users to switch. Even if we never convince _all users_ to switch, if most packages use the new syntax, that will be an improvement in clarity. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From unknown Wed Jun 18 23:04:52 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 09 Jul 2022 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator