From unknown Sun Jun 22 04:29:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61647: edit-kbd-macro: Wrong type argument: characterp, 134217785 Resent-From: Eduardo Ochs Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Feb 2023 05:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61647 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 61647@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167687111514356 (code B ref -1); Mon, 20 Feb 2023 05:32:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Feb 2023 05:31:55 +0000 Received: from localhost ([127.0.0.1]:50178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTymJ-0003jT-4h for submit@debbugs.gnu.org; Mon, 20 Feb 2023 00:31:55 -0500 Received: from lists.gnu.org ([209.51.188.17]:45442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTymH-0003jJ-Mn for submit@debbugs.gnu.org; Mon, 20 Feb 2023 00:31:54 -0500 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 1pTymG-0004sO-Jp for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2023 00:31:52 -0500 Received: from mail-yw1-x1134.google.com ([2607:f8b0:4864:20::1134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pTymE-0003Bg-PC for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2023 00:31:52 -0500 Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-5369b3204daso26312257b3.7 for ; Sun, 19 Feb 2023 21:31:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=XxWsv/pntkIkK1hZUsdQyUzfOjFvBLl48wV42DxmRXo=; b=WxEyta0JJb/B4mNHI1aA7UZwMWLje0m0/TFOJWPYNdutX2/aOVfdqhaQEXRZdHgLZ0 WcYicyQqR+71Ydtn8GGZT0xTLocpO3AGh62ENsgK7y53AriuYr7N/AX/WIyiPrRZbTJH TjHSrbvzU3lJE56bQsKv33XlNrEAZ/YSF8PjgYpk3t3bXcOAUl5H39eFaxNpfUENoDc2 Ijz3+m/3/kmBUQhY1HwrtzldkX//X81A8oOwmf++bXtfl3YvGv4F3Oc6qPyPp8yuBVGD ZidDTKdVQeX8JYy7k+ytjqHd/F5WJj2aYV6aPF9ykbLuTqx9aycQua1MqJ+j6SFvxvB/ ua2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=XxWsv/pntkIkK1hZUsdQyUzfOjFvBLl48wV42DxmRXo=; b=wQFaBsPBtFDdLng+lQvKfUpotHo9s8f6SFfDqOs/CdDrK2LYSI/MjEJc2xzpDgDz7k Q1DUtUkIYjfWh+KeomsP01NK5CbjESeoytRVuLYQiBH+z3TWZ6FIqzcVWONqkQhhvAfq vb7gmtpDpFIWoa62g3VP3xLS74ndZFkbkbnSzHW67RZ6QBeR/UyG/hpIiShpESQOQpZO Y+Ke/OLkE7J1D0dz0SLjefxpy6X7tu8GHJ+FMlA390/nJeDjxL2a3NEdRAJzpI/Bpmiu gr4ZeKWaxLeufNt4q7Kr2cAOxfh+qjSGyvrYmNj0snkddfLOYXBsbfChIUZD+ixTh9in 5rUA== X-Gm-Message-State: AO0yUKUjTks6lEB3JWQqgcoy9SySz6SssnCr7QBvT8eYs5tsQ1/fQxr0 U5+ASLHzNvNDJu1My2fPIitHY5X5utElB1BSsdtqRQYO1ebzLg== X-Google-Smtp-Source: AK7set+6AnANont3ktNDb2XuN5e3YKqr5Sh5OVvoDyfWyzJjkb1PZjEnfZHMBVKdAIr+IBnAbZIK3eUgoaHm2Q1FwWM= X-Received: by 2002:a81:5307:0:b0:52a:8eb5:bcfb with SMTP id h7-20020a815307000000b0052a8eb5bcfbmr2085201ywb.518.1676871097035; Sun, 19 Feb 2023 21:31:37 -0800 (PST) MIME-Version: 1.0 From: Eduardo Ochs Date: Mon, 20 Feb 2023 02:31:25 -0300 Message-ID: Content-Type: multipart/alternative; boundary="00000000000012affd05f51afa75" Received-SPF: pass client-ip=2607:f8b0:4864:20::1134; envelope-from=eduardoochs@gmail.com; helo=mail-yw1-x1134.google.com 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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: -2.3 (--) --00000000000012affd05f51afa75 Content-Type: text/plain; charset="UTF-8" Hi all, I found a keyboard macro on which edit-kbd-macro fails with this error: edit-kbd-macro: Wrong type argument: characterp, 134217785 To reproduce the error run any of these two setqs - they should be equivalent - (setq last-kbd-macro [134217847 134217785 134217785 134217834 5 32 25 1 67108896 down 134217847 134217777 134217834 return 25 134217803 134217803]) (setq last-kbd-macro (kbd "M-w M-99 M-j C-e SPC C-y C-a C-SPC M-w M-1 M-j RET C-y 2*M-K")) and then run `M-x edit-kbd-macro C-x e'. The error happens in this version of Emacs, GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2023-02-20 but not in an Emacs28. Here's the output of uname -a: Linux scylla 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux Cheers, Eduardo Ochs http://anggtwu.net/#eev --00000000000012affd05f51afa75 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all, I found a keyboard macro on which edit-kbd-macro f= ails with
this error:

=C2=A0 edit-kbd-macro: Wrong type argument:= characterp, 134217785

To reproduce the error run any of these two s= etqs - they should be
equivalent -

=C2=A0 (setq last-kbd-macro [1= 34217847 134217785 134217785 134217834 5 32
=C2=A0 =C2=A0 25 1 67108896 = down 134217847 134217777 134217834 return 25
=C2=A0 =C2=A0 134217803 134= 217803])

=C2=A0 (setq last-kbd-macro (kbd "M-w M-99 M-j C-e SPC= C-y C-a C-SPC <down>
=C2=A0 =C2=A0 M-w M-1 M-j RET C-y 2*M-K"= ;))

and then run `M-x edit-kbd-macro C-x e'.

The error ha= ppens in this version of Emacs,

=C2=A0 GNU Emacs 30.0.50 (build 1, x= 86_64-pc-linux-gnu, GTK+ Version
=C2=A0 3.24.24, cairo version 1.16.0) o= f 2023-02-20

but not in an Emacs28. Here's the output of uname -= a:

=C2=A0 Linux scylla 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (202= 3-01-21)
=C2=A0 x86_64 GNU/Linux

Cheers,
=C2=A0 Eduardo Ochs


--00000000000012affd05f51afa75-- From unknown Sun Jun 22 04:29:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61647: edit-kbd-macro: Wrong type argument: characterp, 134217785 Resent-From: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Feb 2023 11:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61647 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eduardo Ochs Cc: mattiase@acm.org, 61647@debbugs.gnu.org Received: via spool by 61647-submit@debbugs.gnu.org id=B61647.167689317822222 (code B ref 61647); Mon, 20 Feb 2023 11:40:01 +0000 Received: (at 61647) by debbugs.gnu.org; 20 Feb 2023 11:39:38 +0000 Received: from localhost ([127.0.0.1]:50699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pU4WA-0005mJ-2r for submit@debbugs.gnu.org; Mon, 20 Feb 2023 06:39:38 -0500 Received: from sonic310-57.consmr.mail.ir2.yahoo.com ([77.238.177.30]:35172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pU4W7-0005m4-FW for 61647@debbugs.gnu.org; Mon, 20 Feb 2023 06:39:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1676893168; bh=DqiVOYrCbwAqVvhk1a1HoNVuuTKPUOPATRw9JaDfM/U=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=L/0mlzwS2ZnT0HJOs3oCcazdR/FWnofWbMPRN7Ufaq6+DLOCrwb6/Tt/HF9D/2hUippgNi8pN4V6QMJKXspDEooq2VksOeBQ/TCy8EY6zMUa03pvubdiSrIoC2jwIaAUhtCUiZ0gZkKQMaNjam2xsmubpWZnw4uYFu434qhtQrovEUNi+WSOjr3kH4jNatNKsgLzhiGt5dEjwgGDTzk4FnGcTbVu0bJ8XzXmsTbNmDsZjoJDNfuLZu5wIZMfz6FauSpD6tXvxIGgMWKrAZQaDK8XMNT7QL5OiyZZqmsjsxs6IqQHnWOmdBOl6GXv/EhsHncJ0ZMAmKWZaosqHKm9mw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676893169; bh=bEGKuEhGGyxDmNdmtw95GZOQnI8UPAKhoZvz1T95Z3F=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Jpxeby2jb2YURPaUXiknLqs7s+b7IpgzvGS93R3zWJwePQSkMSbKXpZyULPdgGMVlJa8v+5KEVGbXNy0ZpCVoYWIdVfLa+Nb6UaYZgSKU1IiFZZo2NplCEyUHqsetv7nF/25qO1epMhhxOSgtrNn+cFrAN+qs+S3oEZLqQRdnZZNScPtNxjw5IwcXQAZDoZo3BjvymGtilrpSMJYqLlpzNeyyhOuei7l9MV2NzB+oACBr6H7CMR5Kjf46L00DtBpJAdm+Lrn06hKzfD9tWUiHyTIOs7Oo3tPvqRJq3vEeF4St1l405orSs4xBi2n7N6wU8yS0YOrUop+4NsY2YY2nQ== X-YMail-OSG: x1Hx8WEVM1krABtqWTv1mJdiQyUer5jeska.yNWEHf8C3dlzwke_F9D6ujKRMRM wOtmv_7kWCIViQmhfBGkxtdut2fKp0duKSIADchKVf9CuDTxi8GI_PozICcTLsxpi4thtr7i3YDc _hLzcXvRNbVfpmy04srmyersajFirTC843a5FZh6oLXTaUy3wWg1hiwg6qJRvXmDaSz.Lr7AEuyQ MTs1z1fxZNfUiHV_.YOseUjkC_.NYgw6F3E43DoaGZ8lMLLHrj1PyNyOBtl32r6wVXG6jcG9Hvm8 D45qguHYho2mRRnacgtqjGuEUQubCPNysvcbs.9K6NGMYeCBKc_T0nxJuW9tzEyPAMKW.cgKOogv vqCIi8GhhxuJE7Z3AMfD8GOenEeuQW9ttNF_45Y5XKpiFpdN.ErbFlSHU73rLP1X_40fqOECvjfv sVAmKyXCe__8_hRUk3LO5ZNa3FazVnXe7Xq4DSUZ1S3yvsYJjLDE88qSYGgQDC7Uhvf2DkMqZOA6 54J3bEd_1tE15pTK.O8UcomeHnLbuL9icpO9MdqR16SoM3DhJMbl9gd11PvjbGSQATTwdbCbjstC B.9FjqS85ZaqEwRIEdFThqUkOwWFLjxEDDXh40huk.xdHRp4rKLrSPVDug65mzkHvV86TzI.DE4X kKHblr0KiCXer4VRF_U4ClkDdFJCGfsBZpFmriACypT4yjc5TnnwEcQLis0nmaN4HpQKUrqaYu9I imxnKezXsjESfT7rMjCLspCWo2pxS4rBFxg.2YPJksPfpZEkS4qs_R49rp9y.4VfDGtUmhaanZLB GPga_wBJ3JWGj10sY6BkebRq0G6nQLUiFuJ4wHESfivzUUTq6ttDHMn6ar3GbESofylRgWUBQOl8 okyv4D0Hv0U50HrTlmlyso9XcwL4h6o0SCtwtDsuP0biQwxEAdvQfJTAD6wR7QMpQHpKbINljHEa uzvg4TjMCJ7T4rb2N8iLF7PorXckdB8Wjlpu.K53_mkjQnmnvg.3QkonRUcJdNsja_58_EFkKhUf cYmjLGlcl667PlC1pbzp0sk5dLdQnkAVN1rJv4tU4fOvXlNxY6bbmb.Wb8nhmwMsZpVQZ6HZC1_O vuF2a0I250DHMOJFq3RAUOqhnI8dMmZGzrqVsooBKId5QaW5c4ydvg9Up2OejNFIFQqUCxQ9TZJ2 xhcVx46X9Dr5yfkORGxJuwffIUaQ8s5grJ52kNfipP96YSyLS9Fq5FnnegkAFeqb69sun0rUvDrT xQfHsecw1vRblOZTmJUox64k5P.oZazsxiDlD_axmzba3V4tjGt.LfuZeWVjnvnxtwPzt.s9k7ZN eJf8Z90U3GMgn.XIFSGbTct_QnDYInrGos8cDZfjUDYHLW7soNufgGEUQJ5pg_8zve_Heh_KaS8. 2_bWJWJJzWMnnGbPrIXqT.wHQxcPv8dwqEK5dY1fe7K3BiY4e81lA4.bN9wnMZse6oZ7v92edfio qTdlJAI2AvZKcBSM89X3HTw26Lfyoc1CHdORL9Z9rYcnC4fxjccP7czkHsmk7dMTcY3t_yk7MeK6 rpsG6HQNK1vFY.fdphUbnL.2zaNR1.f6zR3OOR2TJnD2XrkUI9PBtcfAxiyeeeQSpesKrs..TWXe IWnC4UHdGehtCupQ.E55OnDOHTMvSCPmyVlZPY9iy5GRzA3D42hFAc.Qs32j0sQx6MKHxLZSPmL. HcpYgILSV44UUhiDzx5eKQiIMm3hpiv5EM15GFKYipUekw.M3PxE52xSnbZecry_82gK4_jzHlKX 4RtA0VC1DkuCJ2FjZY9XB3mb_kgYHxR.8rDIB6JaX9wGoprq_LDh_EDykxo5.eyB3icWIT1WMR8u FemeeSHf0Ej8UHjUUj8kFPOkCeRLUuni4coaWTt.CgYXPhfBgChrU2QCst7Kp2bgZxeiigYrbM57 SLCrV0H7LYJ7HqyBrwj7VUVJYAj2WorwUjptURC0oDE1uIF8z82YwKM7FYThamQTG7uyK5mJ9Q1O RnoelQn6YWynP4OiSvooJt0gl6DWxJN8bxQ9gG_lfFlI9Q9vJVhqnNJ4zuZBsWIYwjBPPsIHbjtY DEGk6p0yfVlCkGAavM.Um8PHD8CiLFPlATvym7nSKJU7MM4rzXKp5aVEzyS2blgXMT3JOBMqsL06 ILZAnPeRAsRrzq53gk6AvRJ4jCLRg0dLk2Mt35Mkkn54SmquSpl8cRuLk63q.4almNkFUuLomuke 0OGsq1lobaZFlWr4VfFfakPROLyVfT1N9RjSg8n6VSpE- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ir2.yahoo.com with HTTP; Mon, 20 Feb 2023 11:39:28 +0000 Received: by hermes--production-ir2-65c64dfd66-mp9nb (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID f142a3f470774a7f3d7e9c0e34627e2d; Mon, 20 Feb 2023 11:39:26 +0000 (UTC) From: Daniel =?UTF-8?Q?Mart=C3=ADn?= References: Date: Mon, 20 Feb 2023 12:39:25 +0100 In-Reply-To: (Eduardo Ochs's message of "Mon, 20 Feb 2023 02:31:25 -0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.21183 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 1613 X-Spam-Score: 0.3 (/) 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: -0.7 (/) Eduardo Ochs writes: > Hi all, I found a keyboard macro on which edit-kbd-macro fails with > this error: > > edit-kbd-macro: Wrong type argument: characterp, 134217785 > > To reproduce the error run any of these two setqs - they should be > equivalent - > > (setq last-kbd-macro [134217847 134217785 134217785 134217834 5 32 > 25 1 67108896 down 134217847 134217777 134217834 return 25 > 134217803 134217803]) > > (setq last-kbd-macro (kbd "M-w M-99 M-j C-e SPC C-y C-a C-SPC > M-w M-1 M-j RET C-y 2*M-K")) > > and then run `M-x edit-kbd-macro C-x e'. > This is the commit that introduced this regression: commit e5695faec4a43f10be3b56fa7fd436d5f54a5761 Author: Mattias Engdeg=C3=A5rd Date: Fri Aug 19 13:27:53 2022 +0200 * lisp/edmacro.el (edmacro-sanitize-for-string): Fix condition. =20=20=20=20 This is of little consequence in practice since the input is always a vector of keys representing a prefix, where bit 7 isn't likely to be set when higher bits are set, but it silences a (justified) warning. diff --git a/lisp/edmacro.el b/lisp/edmacro.el index efffab9b30b..26a5d2347f0 100644 --- a/lisp/edmacro.el +++ b/lisp/edmacro.el @@ -626,7 +626,7 @@ edmacro-sanitize-for-string This function assumes that the events can be stored in a string." (setq seq (copy-sequence seq)) (cl-loop for i below (length seq) do - (when (logand (aref seq i) 128) + (when (/=3D (logand (aref seq i) 128) 0) (setf (aref seq i) (logand (aref seq i) 127)))) seq) =20 Adding Mattias to the CC. From unknown Sun Jun 22 04:29:17 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Eduardo Ochs Subject: bug#61647: closed (Re: bug#61647: edit-kbd-macro: Wrong type argument: characterp, 134217785) Message-ID: References: X-Gnu-PR-Message: they-closed 61647 X-Gnu-PR-Package: emacs Reply-To: 61647@debbugs.gnu.org Date: Mon, 20 Feb 2023 12:19:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1676895542-26448-1" This is a multi-part message in MIME format... ------------=_1676895542-26448-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #61647: edit-kbd-macro: Wrong type argument: characterp, 134217785 which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 61647@debbugs.gnu.org. --=20 61647: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D61647 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1676895542-26448-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 61647-done) by debbugs.gnu.org; 20 Feb 2023 12:18:47 +0000 Received: from localhost ([127.0.0.1]:50789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pU582-0006s0-Sp for submit@debbugs.gnu.org; Mon, 20 Feb 2023 07:18:47 -0500 Received: from mail1455c50.megamailservers.eu ([91.136.14.55]:59112 helo=mail266c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pU580-0006rk-9A for 61647-done@debbugs.gnu.org; Mon, 20 Feb 2023 07:18:45 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1676895516; bh=4NIOX7nZonN3yP58q6NxPtC9MiCo8qASZfUI7mkKijE=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=BRv0byzoWuMlHDZnbgpeB2W5EaSCKvCAFVxqMLcMy4g6ALZM9KhaXcUoFFxOb/jxq CzfrMilQQn6OJVypW/y1tZIOba1D5tR15yUuF+4/hFrIKWjMhTkZGW4/bYx672SRJ9 SDe7ZZfAWWA9EzG4IFiJzLMBMHQ7/QptLUM716zM= Feedback-ID: mattiase@acm.or Received: from smtpclient.apple (c188-150-171-209.bredband.tele2.se [188.150.171.209]) (authenticated bits=0) by mail266c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 31KCIY3n017209; Mon, 20 Feb 2023 12:18:35 +0000 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.14\)) Subject: Re: bug#61647: edit-kbd-macro: Wrong type argument: characterp, 134217785 From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= In-Reply-To: Date: Mon, 20 Feb 2023 13:18:33 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: =?utf-8?Q?Daniel_Mart=C3=ADn?= X-Mailer: Apple Mail (2.3654.120.0.1.14) X-VADE-SPAMSTATE: clean X-VADE-SPAMSCORE: -100 X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrudejhedgfedvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffquffvqffrkfetpdfqfgfvpdfgpfggqdevhedtnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpegtggfuhfgjffevgffkfhfvofesthhqmhdthhdtjeenucfhrhhomhepofgrthhtihgrshcugfhnghguvghgnohrugcuoehmrghtthhirghsvgesrggtmhdrohhrgheqnecuggftrfgrthhtvghrnhepvdfhieevkefgveeludfgueffiedujedttdelheetteffudegkeevhefghfefhfdtnecukfhppedukeekrdduhedtrddujedurddvtdelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudekkedrudehtddrudejuddrvddtledphhgvlhhopehsmhhtphgtlhhivghnthdrrghpphhlvgdpmhgrihhlfhhrohhmpehmrghtthhirghsvgesrggtmhdrohhrghdpnhgspghrtghpthhtohepfedprhgtphhtthhopehmrghruggrnhhivdelseihrghhohhordgvshdprhgtphhtthhopegvughurghrughoohgthhhssehgmhgrihhlrdgtohhmpdhrtghpthhtohepieduieegjedqughonhgvseguvggssghughhsrdhgnhhurdhorhhg X-Origin-Country: SE X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 61647-done Cc: Eduardo Ochs , 61647-done@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: -0.0 (/) 20 feb. 2023 kl. 12.39 skrev Daniel Mart=C3=ADn : > This is the commit that introduced this regression: Sorry about that mistake, and thank you very much for finding it! Now fixed on master. ------------=_1676895542-26448-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 20 Feb 2023 05:31:55 +0000 Received: from localhost ([127.0.0.1]:50178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTymJ-0003jT-4h for submit@debbugs.gnu.org; Mon, 20 Feb 2023 00:31:55 -0500 Received: from lists.gnu.org ([209.51.188.17]:45442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTymH-0003jJ-Mn for submit@debbugs.gnu.org; Mon, 20 Feb 2023 00:31:54 -0500 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 1pTymG-0004sO-Jp for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2023 00:31:52 -0500 Received: from mail-yw1-x1134.google.com ([2607:f8b0:4864:20::1134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pTymE-0003Bg-PC for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2023 00:31:52 -0500 Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-5369b3204daso26312257b3.7 for ; Sun, 19 Feb 2023 21:31:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=XxWsv/pntkIkK1hZUsdQyUzfOjFvBLl48wV42DxmRXo=; b=WxEyta0JJb/B4mNHI1aA7UZwMWLje0m0/TFOJWPYNdutX2/aOVfdqhaQEXRZdHgLZ0 WcYicyQqR+71Ydtn8GGZT0xTLocpO3AGh62ENsgK7y53AriuYr7N/AX/WIyiPrRZbTJH TjHSrbvzU3lJE56bQsKv33XlNrEAZ/YSF8PjgYpk3t3bXcOAUl5H39eFaxNpfUENoDc2 Ijz3+m/3/kmBUQhY1HwrtzldkX//X81A8oOwmf++bXtfl3YvGv4F3Oc6qPyPp8yuBVGD ZidDTKdVQeX8JYy7k+ytjqHd/F5WJj2aYV6aPF9ykbLuTqx9aycQua1MqJ+j6SFvxvB/ ua2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=XxWsv/pntkIkK1hZUsdQyUzfOjFvBLl48wV42DxmRXo=; b=wQFaBsPBtFDdLng+lQvKfUpotHo9s8f6SFfDqOs/CdDrK2LYSI/MjEJc2xzpDgDz7k Q1DUtUkIYjfWh+KeomsP01NK5CbjESeoytRVuLYQiBH+z3TWZ6FIqzcVWONqkQhhvAfq vb7gmtpDpFIWoa62g3VP3xLS74ndZFkbkbnSzHW67RZ6QBeR/UyG/hpIiShpESQOQpZO Y+Ke/OLkE7J1D0dz0SLjefxpy6X7tu8GHJ+FMlA390/nJeDjxL2a3NEdRAJzpI/Bpmiu gr4ZeKWaxLeufNt4q7Kr2cAOxfh+qjSGyvrYmNj0snkddfLOYXBsbfChIUZD+ixTh9in 5rUA== X-Gm-Message-State: AO0yUKUjTks6lEB3JWQqgcoy9SySz6SssnCr7QBvT8eYs5tsQ1/fQxr0 U5+ASLHzNvNDJu1My2fPIitHY5X5utElB1BSsdtqRQYO1ebzLg== X-Google-Smtp-Source: AK7set+6AnANont3ktNDb2XuN5e3YKqr5Sh5OVvoDyfWyzJjkb1PZjEnfZHMBVKdAIr+IBnAbZIK3eUgoaHm2Q1FwWM= X-Received: by 2002:a81:5307:0:b0:52a:8eb5:bcfb with SMTP id h7-20020a815307000000b0052a8eb5bcfbmr2085201ywb.518.1676871097035; Sun, 19 Feb 2023 21:31:37 -0800 (PST) MIME-Version: 1.0 From: Eduardo Ochs Date: Mon, 20 Feb 2023 02:31:25 -0300 Message-ID: Subject: edit-kbd-macro: Wrong type argument: characterp, 134217785 To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="00000000000012affd05f51afa75" Received-SPF: pass client-ip=2607:f8b0:4864:20::1134; envelope-from=eduardoochs@gmail.com; helo=mail-yw1-x1134.google.com 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.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: -2.3 (--) --00000000000012affd05f51afa75 Content-Type: text/plain; charset="UTF-8" Hi all, I found a keyboard macro on which edit-kbd-macro fails with this error: edit-kbd-macro: Wrong type argument: characterp, 134217785 To reproduce the error run any of these two setqs - they should be equivalent - (setq last-kbd-macro [134217847 134217785 134217785 134217834 5 32 25 1 67108896 down 134217847 134217777 134217834 return 25 134217803 134217803]) (setq last-kbd-macro (kbd "M-w M-99 M-j C-e SPC C-y C-a C-SPC M-w M-1 M-j RET C-y 2*M-K")) and then run `M-x edit-kbd-macro C-x e'. The error happens in this version of Emacs, GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2023-02-20 but not in an Emacs28. Here's the output of uname -a: Linux scylla 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux Cheers, Eduardo Ochs http://anggtwu.net/#eev --00000000000012affd05f51afa75 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all, I found a keyboard macro on which edit-kbd-macro f= ails with
this error:

=C2=A0 edit-kbd-macro: Wrong type argument:= characterp, 134217785

To reproduce the error run any of these two s= etqs - they should be
equivalent -

=C2=A0 (setq last-kbd-macro [1= 34217847 134217785 134217785 134217834 5 32
=C2=A0 =C2=A0 25 1 67108896 = down 134217847 134217777 134217834 return 25
=C2=A0 =C2=A0 134217803 134= 217803])

=C2=A0 (setq last-kbd-macro (kbd "M-w M-99 M-j C-e SPC= C-y C-a C-SPC <down>
=C2=A0 =C2=A0 M-w M-1 M-j RET C-y 2*M-K"= ;))

and then run `M-x edit-kbd-macro C-x e'.

The error ha= ppens in this version of Emacs,

=C2=A0 GNU Emacs 30.0.50 (build 1, x= 86_64-pc-linux-gnu, GTK+ Version
=C2=A0 3.24.24, cairo version 1.16.0) o= f 2023-02-20

but not in an Emacs28. Here's the output of uname -= a:

=C2=A0 Linux scylla 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (202= 3-01-21)
=C2=A0 x86_64 GNU/Linux

Cheers,
=C2=A0 Eduardo Ochs


--00000000000012affd05f51afa75-- ------------=_1676895542-26448-1-- From unknown Sun Jun 22 04:29:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61647: edit-kbd-macro: Wrong type argument: characterp, 134217785 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Feb 2023 13:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61647 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Cc: 61647@debbugs.gnu.org, eduardoochs@gmail.com Received: via spool by 61647-submit@debbugs.gnu.org id=B61647.16768983008059 (code B ref 61647); Mon, 20 Feb 2023 13:05:02 +0000 Received: (at 61647) by debbugs.gnu.org; 20 Feb 2023 13:05:00 +0000 Received: from localhost ([127.0.0.1]:50911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pU5qm-00025u-EA for submit@debbugs.gnu.org; Mon, 20 Feb 2023 08:05:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58190) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pU5qk-00025i-JX for 61647@debbugs.gnu.org; Mon, 20 Feb 2023 08:04:59 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pU5qf-0003jZ-5c; Mon, 20 Feb 2023 08:04:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=WQVgud6wKXCcFwPQiK57lz0jWRGQVcwZstDSPCCgafI=; b=kYVzkQdUuRbTMNRrSKHL /emZdssu6ESBzIX1U7vgtVEdq5tuNOu8ILnD1jQEq1OZTZ9+El9Mn9wBrZ6oUBDDkRLFqFQJR3Hgu SXvFT++3ksS5FOGV+HAsebry2EbnmS45nOUPs0GU2eoOkuLxXqDUzujHe310DBvnfcU9H/LqBbv+L OmXhRNQXWzwvQliFgysA3sfihXPUDEoHr+XhXTP3h0hURD7TWOh1jXBd1ZVcAjrHYgDEt38fr0T/D I2wuih+VaNyrUx2+Z2/UEAkpwzfNpUZ86YtE/bMLwJojM/Q5SP8OEvEXYfFJ7B93BxNGiCDi8y2vS WifNmg5+0Gh56g==; Received: from [87.69.77.57] (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 1pU5qe-0004SQ-Ik; Mon, 20 Feb 2023 08:04:52 -0500 Date: Mon, 20 Feb 2023 15:05:01 +0200 Message-Id: <83k00cv66a.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= on Mon, 20 Feb 2023 13:18:33 +0100) References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) 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 (---) > Resent-To: bug-gnu-emacs@gnu.org > Cc: Eduardo Ochs , 61647-done@debbugs.gnu.org > From: Mattias Engdegård > Date: Mon, 20 Feb 2023 13:18:33 +0100 > > 20 feb. 2023 kl. 12.39 skrev Daniel Martín : > > > This is the commit that introduced this regression: > > Sorry about that mistake, and thank you very much for finding it! > Now fixed on master. Thanks, but the bug exists also on the emacs-29 branch, so I think it should be fixed there. From unknown Sun Jun 22 04:29:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61647: edit-kbd-macro: Wrong type argument: characterp, 134217785 Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Feb 2023 09:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61647 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 61647@debbugs.gnu.org, eduardoochs@gmail.com Received: via spool by 61647-submit@debbugs.gnu.org id=B61647.16769720015719 (code B ref 61647); Tue, 21 Feb 2023 09:34:02 +0000 Received: (at 61647) by debbugs.gnu.org; 21 Feb 2023 09:33:21 +0000 Received: from localhost ([127.0.0.1]:54528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUP1U-0001UA-SA for submit@debbugs.gnu.org; Tue, 21 Feb 2023 04:33:21 -0500 Received: from mail200c50.megamailservers.eu ([91.136.10.210]:52904 helo=mail193c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUP1R-0001Tu-6f for 61647@debbugs.gnu.org; Tue, 21 Feb 2023 04:33:19 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1676971995; bh=OujBfuC3uN0FcONXeZL7MAaluZZrKy3FmscJGCB6lTw=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=N6gMEtIx4zinZTFwj6CIJmgLGx9RMrCd1XwgJxP/SMNK/509v+hMN1UvK1eiOas9N 1cEIiUolfEswLesYYjiqqGvo+UbmdiiiCPYEv0dWb+j13QL2zjUVDdNZDsedvV6+Ll xNtsWWrzWSBe2dpqL8L6E9Ptb8fltk8pJtwJWD30= Feedback-ID: mattiase@acm.or Received: from smtpclient.apple (c188-150-171-209.bredband.tele2.se [188.150.171.209]) (authenticated bits=0) by mail193c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 31L9XBAS115738; Tue, 21 Feb 2023 09:33:14 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.14\)) From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= In-Reply-To: <83k00cv66a.fsf@gnu.org> Date: Tue, 21 Feb 2023 10:33:10 +0100 Content-Transfer-Encoding: 7bit Message-Id: References: <83k00cv66a.fsf@gnu.org> X-Mailer: Apple Mail (2.3654.120.0.1.14) X-VADE-SPAMSTATE: clean X-VADE-SPAMSCORE: -100 X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrudejjedgtdegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffquffvqffrkfetpdfqfgfvpdfgpfggqdevhedtnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpegtggfuhfgjffevgffkfhfvofesthejmhdthhdtvdenucfhrhhomhepofgrthhtihgrshcugfhnghguvghgnohrugcuoehmrghtthhirghsvgesrggtmhdrohhrgheqnecuggftrfgrthhtvghrnhepgfeufeelteduvedvkeevvdfhgeehjedvjeeigedvudefheegffejudefjefhjeffnecukfhppedukeekrdduhedtrddujedurddvtdelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudekkedrudehtddrudejuddrvddtledphhgvlhhopehsmhhtphgtlhhivghnthdrrghpphhlvgdpmhgrihhlfhhrohhmpehmrghtthhirghsvgesrggtmhdrohhrghdpnhgspghrtghpthhtohepfedprhgtphhtthhopegvlhhiiiesghhnuhdrohhrghdprhgtphhtthhopeeiudeigeejseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvgguuhgrrhguohhotghhshesghhmrghilhdrtghomh X-Origin-Country: SE X-Spam-Score: 0.3 (/) 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: -0.7 (/) 20 feb. 2023 kl. 14.05 skrev Eli Zaretskii : > Thanks, but the bug exists also on the emacs-29 branch, so I think it > should be fixed there. Certainly, now backported.