From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#51390: 29.0.50; repeat-mode: Fails to repeat keys in global-map(?) Date: Mon, 25 Oct 2021 18:32:33 +0200 (CEST) Message-ID: Reply-To: Visuwesh Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9545"; mail-complaints-to="usenet@ciao.gmane.io" To: 51390@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 25 18:33:35 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mf2uk-0002Ht-Hr for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Oct 2021 18:33:34 +0200 Original-Received: from localhost ([::1]:32966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mf2uh-0004zy-TY for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Oct 2021 12:33:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34168) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mf2uE-0004zT-Cw for bug-gnu-emacs@gnu.org; Mon, 25 Oct 2021 12:33:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60810) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mf2uE-0005jk-4H for bug-gnu-emacs@gnu.org; Mon, 25 Oct 2021 12:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mf2uD-0001vi-Uf for bug-gnu-emacs@gnu.org; Mon, 25 Oct 2021 12:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Oct 2021 16:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51390 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Bug Gnu Emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.16351795627390 (code B ref -1); Mon, 25 Oct 2021 16:33:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Oct 2021 16:32:42 +0000 Original-Received: from localhost ([127.0.0.1]:44123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mf2tu-0001v7-68 for submit@debbugs.gnu.org; Mon, 25 Oct 2021 12:32:42 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:36342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mf2ts-0001v0-Lt for submit@debbugs.gnu.org; Mon, 25 Oct 2021 12:32:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mf2ts-0004x9-Fi for bug-gnu-emacs@gnu.org; Mon, 25 Oct 2021 12:32:40 -0400 Original-Received: from w1.tutanota.de ([81.3.6.162]:41934) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mf2tq-0005ME-2K for bug-gnu-emacs@gnu.org; Mon, 25 Oct 2021 12:32:40 -0400 Original-Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id 89342FBF58B for ; Mon, 25 Oct 2021 16:32:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1635179553; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=4scKphGstagWi8GbN5f6wJsSWOl2Tv4uj7TuMn9vlaA=; b=wrDkGeR0+vCM8CE0/WX2tkH+wBuXJCL/Mra1v+EEUfKTUkJC6lgXkkL9IrZCi+GR QrS7Z4NByhUjxKIq/tLPMRGeQCRiVJ2Yw8HoHQnUmi4TCTFN5WmEylQJSRGd+X3R+KX oiJg/4sCsMJPUmb/7aiY3Q1eXG+0Qm25FA+tIB00QSyoB+ZgwrT9QheLIJuLNscxkQm saTm7HYkeC6FTXri/ILFBCzGZXdhldbkkk8PB79MexzJ2iYulWCtgkW9EXNghdRu0wV pON2/6aPrPehmKzXDUKlCIsaNvzOlZs4/99BRCNreRixo5GGfKdszzS47MdgClfmUS1 oVkBTSI4JQ== Received-SPF: pass client-ip=81.3.6.162; envelope-from=visuwesh@tutanota.com; helo=w1.tutanota.de 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:218316 Archived-At: Hello, I'm trying to make next/previous-line repeatable by using the follow code snippet, =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (defvar teest =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (let ((map (make-spa= rse-keymap))) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (define-= key map "n" #'next-line) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (define-= key map "p" #'previous-line) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 map)) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (put 'next-line 'repeat-map 'tee= st) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (put 'previous-line 'repeat-map = 'teest) However, next-line triggers the repeat map only when it is run in the last line of the buffer, and similarly previous-line triggers the repeat map only when it is run in the first line of the buffer. A similar behaviour is observed when replacing next-line and previous-line with forward-char at BOB and backward-char at EOB respectively.=C2=A0 If I make move-end/beginning-of-line repeatable instead= , the repeat map does not get triggered at all (regardless of where the=20 point is). To reproduce the issue, 1. emacs -Q 2. Evaluate the expressions in this message.=C2=A0 Turn on repeat-mode. 3. Switch to the *scratch* buffer and press M-<. 4. Type C-n.=C2=A0 Notice that it does not trigger the repeat map. 5. Type C-p twice.=C2=A0 The repeat map gets triggered in the second keypre= ss i.e., when the point is at the first line. I can reproduce this issue in the master branch and in an Emacs 28 build with emacs-repository-version fc8df2561b8e37089463d0d4d008d73e23cb2dc5. Regards. In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27, c= airo version 1.16.0) Repository revision: 709e1e59f0f4db24580566f5ca661e730afbf9a2 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12012000 System Description: NixOS 21.11 (Porcupine) Configured using: 'configure --prefix=3D/nix/store/w1fmhydqpvjl9lz9frqsc8203d0nqd76-emacs-git-20211025.0 --disable-build-details --with-modules --with-x-toolkit=3Dgtk3 --with-xft --with-cairo' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings: =C2=A0 value of $EMACSLOADPATH: =C2=A0 value of $EMACSNATIVELOADPATH: /nix/store/llq9dy2f8zmf697jwrnly37g66= pwwq1y-emacs-packages-deps/share/emacs/native-lisp:: =C2=A0 value of $LANG: en_GB.UTF-8 =C2=A0 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: =C2=A0 repeat-mode: t =C2=A0 tooltip-mode: t =C2=A0 global-eldoc-mode: t =C2=A0 eldoc-mode: t =C2=A0 show-paren-mode: t =C2=A0 electric-indent-mode: t =C2=A0 mouse-wheel-mode: t =C2=A0 tool-bar-mode: t =C2=A0 menu-bar-mode: t =C2=A0 file-name-shadow-mode: t =C2=A0 global-font-lock-mode: t =C2=A0 font-lock-mode: t =C2=A0 blink-cursor-mode: t =C2=A0 auto-composition-mode: t =C2=A0 auto-encryption-mode: t =C2=A0 auto-compression-mode: t =C2=A0 line-number-mode: t =C2=A0 indent-tabs-mode: t =C2=A0 transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map 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 edebug backtrace pulse color thingatpt xref project ring jka-compr find-func cl-print dabbrev kmacro facemenu two-column time-date cl-extra seq gv subr-x byte-opt bytecomp byte-compile cconv help-fns radix-tree cus-start cus-load repeat misearch multi-isearch help-mode cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd 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 cl-generic 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 simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 106524 8571) (symbols 48 9251 1) (strings 32 25944 1615) (string-bytes 1 863874) (vectors 16 20434) (vector-slots 8 465587 10211) (floats 8 124 87) (intervals 56 716 1127) (buffers 992 14))