From unknown Fri Jun 20 07:13:07 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#78797 <78797@debbugs.gnu.org> To: bug#78797 <78797@debbugs.gnu.org> Subject: Status: 31.0.50; hints in a repeat map cause an error Reply-To: bug#78797 <78797@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:13:07 +0000 retitle 78797 31.0.50; hints in a repeat map cause an error reassign 78797 emacs submitter 78797 Jacek =C5=9Awierk severity 78797 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 15 05:57:09 2025 Received: (at submit) by debbugs.gnu.org; 15 Jun 2025 09:57:09 +0000 Received: from localhost ([127.0.0.1]:54883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uQk6s-0004xS-Se for submit@debbugs.gnu.org; Sun, 15 Jun 2025 05:57:09 -0400 Received: from lists.gnu.org ([2001:470:142::17]:54602) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uQjnw-0003Az-2N for submit@debbugs.gnu.org; Sun, 15 Jun 2025 05:37:32 -0400 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 1uQjng-0000mr-2I for bug-gnu-emacs@gnu.org; Sun, 15 Jun 2025 05:37:20 -0400 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uQjnb-0003Jq-Vu for bug-gnu-emacs@gnu.org; Sun, 15 Jun 2025 05:37:14 -0400 Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-32b5931037eso1960941fa.2 for ; Sun, 15 Jun 2025 02:37:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749980228; x=1750585028; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=ugbzgySom0zVFfZFIauJQVpC8OrQVptSfl+a1WZaHu0=; b=RQx/0D81OymhH+6i2rLsDbEvuCgdMDLA4pSoCdbJCkYEe7PHy+jquXTDTNT2iDsSmP grCXnfwpnyRbpWYuq+6Hioh7XETFhPRYx30AKuo3yYAomRCz97NpV1szPNfhggULi+so namIj7pifWjOnDmvfM+i16gQQ+Havg+v7jPRA+kg88u77MFwyAKteLzgHPRu+CxPQdAB jZ8ZtEeo/d0s1C47QO3UPLqnzPh4QL99Oa3jdSRc1BFUQD6WmC2kxcSMFS92CoXGY5Zr 91LK0gvI7ioKFvtsm4EZnNaoufnujAKHBvseW+RCvQSyCC4hG6hMgUL4qqG1p71WavNP GOdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749980228; x=1750585028; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ugbzgySom0zVFfZFIauJQVpC8OrQVptSfl+a1WZaHu0=; b=FKhLTRDWhSp0nPXa7y7Q1e1shzSfffPZ+CTxbXADfRFBso0ZfzOVayE/aArOHoC8HV hFoAII0lXG/FrpgCE+yuffsy/8EZAuZXaKGbP+KzXZmSeQD0bhe6/y3hVQsaaG6ayymG g5S24M+c19ayrP1zTV6yT+mb9q/Gg+qPsGCU0z81WAYO/8LvL92KpDSO6BLfNmP57l8u E1YY7EsfucgAgLUOrx26AhHG8XJwedSqCFkyM/hA+9zLw8KvFlpgzn2SMTHl1QHn9ZJ6 09w7qRrUzdwmyF6v8W/olNP7nvMNhxoT0BVGWR1UU81wS6XpO7EW5VpHN8WuFAeP5u4W G+kw== X-Gm-Message-State: AOJu0Yw6vrmx4bk/r5nJEUkKVQL1qH2oajXjZvmeagGjTpiYMuUwTdp2 /FUTJq8XW2YoPZefvcqkqgzqOyTn+1YnY+Z7gfa7Kgg/bUP/9jGQZJO2jV2GdFhVVI0vkNJEJmy CCj6x3BH+PGRkitQJOQ7D+xxeXu+f/XieGTIy X-Gm-Gg: ASbGncvqtx7ppZSvPyfu5WVMz4pn2DYxnSCKcG/RxaTVDyCfUXz242qA4C8rgZxaRkY O4rRyUbnzsF+026iGYS3ORHpzkDZ5DOpBSADD3BkL3j4tJ3p7GGuZSMIaXxTB89I53Mfb0L8eni 53XeV2D9H6Hq2AMSvEeHSfX2uLfQkKHrzWwXjeRsh+Aw== X-Google-Smtp-Source: AGHT+IFan9EtYUFfpgtIGY6JqTMGPKq6JD1VE2F8Zt4KgT3q1IvcrIYWrmYXS2+xGVrQZDlhiuy8enClhWuuHwCNK0M= X-Received: by 2002:a05:651c:221b:b0:329:39cd:8d25 with SMTP id 38308e7fff4ca-32b4a631028mr13546841fa.33.1749980228021; Sun, 15 Jun 2025 02:37:08 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?Q?Jacek_=C5=9Awierk?= Date: Sun, 15 Jun 2025 11:36:57 +0200 X-Gm-Features: AX0GCFu622NiGqeFVd1qeN7lwDY_dbLNMYqZLdkgUaxlq2yb6_wwJUhV257mbPU Message-ID: Subject: 31.0.50; hints in a repeat map cause an error To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000daf1c806379905e2" Received-SPF: pass client-ip=2a00:1450:4864:20::22f; envelope-from=jacekswierk@gmail.com; helo=mail-lj1-x22f.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.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 15 Jun 2025 05:57:06 -0400 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 (/) --000000000000daf1c806379905e2 Content-Type: text/plain; charset="UTF-8" Using the following minimal configuration: (repeat-mode +1) (defvar-keymap navigation-repeat-map :repeat (:hints ((next-line . "next") (previous-line . "previous"))) "n" #'next-line "p" #'previous-line) Attempting to press "n" or "p" results in an error on Emacs master: "Error in post-command-hook (repeat-post-hook): wrong-type-argument characterp [110])" The repetition does not seem to work as well. The same configuration works correctly on Emacs 30.1. The commit that introduced this behavior seems to be 2e937dc2b5ad7a87a099df3f014795e88df5cba9 and it may be reproduced just by calling repeat-echo-message-string function. In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.49, cairo version 1.18.4) of 2025-06-15 built on arch Repository revision: 08a7477d2205f4f4a9c6bcc184fdea060c33474b Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12401006 System Description: Arch Linux Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games --with-modules --without-m17n-flt --without-gconf --with-native-compilation=yes --with-xinput2 --with-x-toolkit=gtk3 --without-xaw3d --with-sound=no --with-tree-sitter --without-gpm --without-compress-install '--program-transform-name=s/\([ec]tags\)/\1.emacs/' 'CFLAGS=-march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' 'LDFLAGS=-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -fuse-ld=mold'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LCMS2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM XRANDR GTK3 ZLIB Important settings: value of $LC_MONETARY: pl_PL.UTF-8 value of $LC_NUMERIC: pl_PL.UTF-8 value of $LC_TIME: pl_PL.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: im=fcit locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (mailalias mailclient browse-url xdg textsec uni-scripts url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util url-parse auth-source cl-seq eieio eieio-core cl-macs icons json map url-vars idna-mapping ucs-normalize uni-confusable textsec-check pp shadow sort mail-extr compile comint ansi-osc ansi-color ring emacsbug lisp-mnt message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date subr-x help-fns radix-tree cl-print byte-opt gv debug backtrace find-func cl-extra help-mode comp-run bytecomp byte-compile comp-common rx repeat cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar make-network-process tty-child-frames native-compile emacs) Memory information: ((conses 16 267428 52311) (symbols 48 8809 3) (strings 32 49106 3904) (string-bytes 1 1192475) (vectors 16 46255) (vector-slots 8 568804 29252) (floats 8 130 136) (intervals 56 1234 0) (buffers 1064 16)) --000000000000daf1c806379905e2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Using the following minimal configuration:

(repeat-= mode +1)
(defvar-keymap navigation-repeat-map
=C2=A0 :repeat (:hints = ((next-line . "next")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(previous-line . "previous")))
= =C2=A0 "n" #'next-line
=C2=A0 "p" #'previous= -line)

Attempting to press "n" or "p" results in= an error on Emacs master:
"Error in post-command-hook (repeat-post= -hook): wrong-type-argument characterp [110])"

The repetition d= oes not seem to work as well. The same configuration
works correctly on = Emacs 30.1. The commit that introduced this behavior
seems to be 2e937dc= 2b5ad7a87a099df3f014795e88df5cba9 and it may be
reproduced just by calli= ng repeat-echo-message-string function.

In GNU Emacs 31.0.50 (build = 1, x86_64-pc-linux-gnu, GTK+ Version
=C2=A03.24.49, cairo version 1.18.4= ) of 2025-06-15 built on arch
Repository revision: 08a7477d2205f4f4a9c6b= cc184fdea060c33474b
Repository branch: master
Windowing system distri= butor 'The X.Org Foundation', version 11.0.12401006
System Descr= iption: Arch Linux

Configured using:
=C2=A0'configure --prefi= x=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib
=C2=A0--localstated= ir=3D/var --mandir=3D/usr/share/man --with-gameuser=3D:games
=C2=A0--wit= h-modules --without-m17n-flt --without-gconf
=C2=A0--with-native-compila= tion=3Dyes --with-xinput2 --with-x-toolkit=3Dgtk3
=C2=A0--without-xaw3d = --with-sound=3Dno --with-tree-sitter --without-gpm
=C2=A0--without-compr= ess-install
=C2=A0'--program-transform-name=3Ds/\([ec]tags\)/\1.emac= s/'
=C2=A0'CFLAGS=3D-march=3Dnative -O2 -pipe -fno-plt -fexcepti= ons
=C2=A0-Wp,-D_FORTIFY_SOURCE=3D3 -Wformat -Werror=3Dformat-security=C2=A0-fstack-clash-protection -fcf-protection -fno-omit-frame-pointer=C2=A0-mno-omit-leaf-frame-pointer' 'LDFLAGS=3D-Wl,-O1 -Wl,--sort-= common
=C2=A0-Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relativ= e-relocs
=C2=A0-fuse-ld=3Dmold''

Configured features:
= ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG
LCMS= 2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY
PDUMPER P= NG RSVG SECCOMP SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS
TREE_SITTER WEB= P X11 XDBE XIM XINERAMA XINPUT2 XPM XRANDR GTK3 ZLIB

Important setti= ngs:
=C2=A0 value of $LC_MONETARY: pl_PL.UTF-8
=C2=A0 value of $LC_NU= MERIC: pl_PL.UTF-8
=C2=A0 value of $LC_TIME: pl_PL.UTF-8
=C2=A0 value= of $LANG: en_US.UTF-8
=C2=A0 value of $XMODIFIERS: im=3Dfcit
=C2=A0 = locale-coding-system: utf-8-unix

Major mode: Lisp Interaction
Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mo= de: t
=C2=A0 eldoc-mode: t
=C2=A0 show-paren-mode: t
=C2=A0 electr= ic-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t<= br>=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 glo= bal-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mo= de: t
=C2=A0 minibuffer-regexp-mode: t
=C2=A0 line-number-mode: t
= =C2=A0 indent-tabs-mode: t
=C2=A0 transient-mark-mode: t
=C2=A0 auto-= composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compre= ssion-mode: t

Load-path shadows:
None found.

Features:
= (mailalias mailclient browse-url xdg textsec uni-scripts url url-proxy
u= rl-privacy url-expand url-methods url-history url-cookie
generate-lisp-f= ile url-domsuf url-util url-parse auth-source cl-seq
eieio eieio-core cl= -macs icons json map url-vars idna-mapping
ucs-normalize uni-confusable = textsec-check pp shadow sort mail-extr
compile comint ansi-osc ansi-colo= r ring emacsbug lisp-mnt message
mailcap yank-media puny dired dired-loa= ddefs rfc822 mml mml-sec
password-cache epa derived epg rfc6068 epg-conf= ig gnus-util
text-property-search mm-decode mm-bodies mm-encode mail-par= se rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf= -drums
mm-util mail-prsvr mail-utils time-date subr-x help-fns radix-tre= e
cl-print byte-opt gv debug backtrace find-func cl-extra help-mode
c= omp-run bytecomp byte-compile comp-common rx repeat cl-loaddefs cl-lib
r= mc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook
vc-= hooks lisp-float-type elisp-mode mwheel term/x-win x-win
term/common-win= x-dnd touch-screen tool-bar dnd fontset image regexp-opt
fringe tabulat= ed-list replace newcomment text-mode lisp-mode prog-mode
register page t= ab-bar menu-bar rfn-eshadow isearch easymenu timer select
scroll-bar mou= se jit-lock font-lock syntax font-core term/tty-colors
frame minibuffer = nadvice seq simple cl-generic indonesian philippine
cham georgian utf-8-= lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucj= p-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian= cyrillic chinese composite emoji-zwj charscript
charprop case-table epa= -hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loa= ddefs theme-loaddefs faces cus-face macroexp
files window text-propertie= s overlay sha1 md5 base64 format env
code-pages mule custom widget keyma= p hashtable-print-readable backquote
threads dbusbind inotify lcms2 dyna= mic-setting system-font-setting
font-render-setting cairo gtk x-toolkit = xinput2 x multi-tty move-toolbar
make-network-process tty-child-frames n= ative-compile emacs)

Memory information:
((conses 16 267428 52311= ) (symbols 48 8809 3) (strings 32 49106 3904)
=C2=A0(string-bytes 1 1192= 475) (vectors 16 46255)
=C2=A0(vector-slots 8 568804 29252) (floats 8 13= 0 136)
=C2=A0(intervals 56 1234 0) (buffers 1064 16))
--000000000000daf1c806379905e2-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 15 13:00:51 2025 Received: (at 78797) by debbugs.gnu.org; 15 Jun 2025 17:00:51 +0000 Received: from localhost ([127.0.0.1]:59661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uQqiw-0007Pc-Vt for submit@debbugs.gnu.org; Sun, 15 Jun 2025 13:00:51 -0400 Received: from relay1-d.mail.gandi.net ([2001:4b98:dc4:8::221]:52179) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uQqiu-0007Os-5A for 78797@debbugs.gnu.org; Sun, 15 Jun 2025 13:00:49 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 40938442F1; Sun, 15 Jun 2025 17:00:39 +0000 (UTC) From: Juri Linkov To: Jacek =?utf-8?Q?=C5=9Awierk?= Subject: Re: bug#78797: 31.0.50; hints in a repeat map cause an error In-Reply-To: Organization: LINKOV.NET References: Date: Sun, 15 Jun 2025 19:49:07 +0300 Message-ID: <87o6up6iw4.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugddvgedvgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefujghofhffkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecuggftrfgrthhtvghrnhepffegteefveelhfeljeefueehieduiedtfffhuddtkeeffffghfevheetgeeukeehnecukfhppeeluddruddvledruddtfedrvdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepledurdduvdelrddutdefrddvjedphhgvlhhopehmrghilhdrghgrnhguihdrnhgvthdpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepjeekjeeljeesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehjrggtvghkshifihgvrhhksehgmhgrihhlrdgtohhm X-GND-Sasl: juri@linkov.net X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78797 Cc: 78797@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: -1.7 (-) > Using the following minimal configuration: > > (repeat-mode +1) Thanks for the bug report. > (defvar-keymap navigation-repeat-map > :repeat (:hints ((next-line . "next") > (previous-line . "previous"))) > "n" #'next-line > "p" #'previous-line) > > Attempting to press "n" or "p" results in an error on Emacs master: > "Error in post-command-hook (repeat-post-hook): wrong-type-argument > characterp [110])" I guess you meant pressing "C-n" or "C-p", then it's reproducible. > The repetition does not seem to work as well. The same configuration > works correctly on Emacs 30.1. The commit that introduced this behavior > seems to be 2e937dc2b5ad7a87a099df3f014795e88df5cba9 and it may be > reproduced just by calling repeat-echo-message-string function. This commit fixed the display of keys with modifiers. For example, for (defvar-keymap navigation-repeat-map :repeat t "M-n" #'next-line "M-p" #'previous-line) it displayed just "Repeat with ESC", but after this commit correctly displays "Repeat with M-n, M-p". So we need to decide how to display hints for keys with modifiers. Without modifiers, it displays "Repeat with *n*ext, *p*revious". Maybe with modifiers it could display "Repeat with M-*n*ext, M-*p*revious". But what if the character is in the middle of the hint? For example, for the hint "foonext" it will display "M-foo*n*ext". This looks strange. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 19 02:42:31 2025 Received: (at 78797) by debbugs.gnu.org; 19 Jun 2025 06:42:32 +0000 Received: from localhost ([127.0.0.1]:59964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uS8yj-0008Dk-Me for submit@debbugs.gnu.org; Thu, 19 Jun 2025 02:42:31 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:38933) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uS8yd-0008Br-BM; Thu, 19 Jun 2025 02:42:25 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 7542444373; Thu, 19 Jun 2025 06:42:14 +0000 (UTC) From: Juri Linkov To: Jacek =?utf-8?Q?=C5=9Awierk?= Subject: Re: bug#78797: 31.0.50; hints in a repeat map cause an error In-Reply-To: <87o6up6iw4.fsf@mail.linkov.net> Organization: LINKOV.NET References: <87o6up6iw4.fsf@mail.linkov.net> Date: Thu, 19 Jun 2025 09:41:06 +0300 Message-ID: <87wm98i67x.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddvgdegkeefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjohhffffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucggtffrrghtthgvrhhnpeffgeetfeevlefhleejfeeuheeiudeitdffhfdutdekfeffgffhveehteegueekheenucfkphepledurdduvdelrddutddtrdejjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeluddruddvledruddttddrjeejpdhhvghlohepmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhgspghrtghpthhtohepfedprhgtphhtthhopegtohhnthhrohhlseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepjeekjeeljeesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehjrggtvghkshifihgvrhhksehgmhgrihhlrdgtohhm X-GND-Sasl: juri@linkov.net X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78797 Cc: 78797@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: -1.7 (-) close 78797 31.0.50 thanks > (defvar-keymap navigation-repeat-map > :repeat t > "M-n" #'next-line > "M-p" #'previous-line) > > it displayed just "Repeat with ESC", but after this commit > correctly displays "Repeat with M-n, M-p". > > So we need to decide how to display hints for keys with modifiers. > > Without modifiers, it displays "Repeat with *n*ext, *p*revious". > Maybe with modifiers it could display "Repeat with M-*n*ext, M-*p*revious". > But what if the character is in the middle of the hint? Ok, now fixed with the following format: 1. for "n" #'next-line "Repeat with [n]ext" 2. for "M-n" #'next-line "Repeat with M-n ([n]ext)"