From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nick OBrien via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#69246: 30.0.50; persistent key input delay after using vc commands in pgtk Date: Sat, 17 Feb 2024 20:38:06 +0000 Message-ID: Reply-To: Nick OBrien 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="36255"; mail-complaints-to="usenet@ciao.gmane.io" To: 69246@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 18 19:31:25 2024 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 1rblwj-0009EA-Gy for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Feb 2024 19:31:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rblwS-0004SI-Hd; Sun, 18 Feb 2024 13:31:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rblwE-0004PC-BB for bug-gnu-emacs@gnu.org; Sun, 18 Feb 2024 13:31:00 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rblw2-000525-EY for bug-gnu-emacs@gnu.org; Sun, 18 Feb 2024 13:30:49 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rblwN-0003u5-0b for bug-gnu-emacs@gnu.org; Sun, 18 Feb 2024 13:31:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Nick OBrien Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Feb 2024 18:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69246 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.170828103114883 (code B ref -1); Sun, 18 Feb 2024 18:31:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Feb 2024 18:30:31 +0000 Original-Received: from localhost ([127.0.0.1]:37931 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rblvq-0003rr-5F for submit@debbugs.gnu.org; Sun, 18 Feb 2024 13:30:31 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:44974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rblNt-0001bb-G3 for submit@debbugs.gnu.org; Sun, 18 Feb 2024 12:55:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rbRSN-0000gq-L4 for bug-gnu-emacs@gnu.org; Sat, 17 Feb 2024 15:38:43 -0500 Original-Received: from mail-0201.mail-europe.com ([51.77.79.158]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rbRSK-00081h-1y for bug-gnu-emacs@gnu.org; Sat, 17 Feb 2024 15:38:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1708202307; x=1708461507; bh=sDjhHO+5/LzxBCZQOkf867WWG0kypn/EtNWAcGo6uD8=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=c07BRWJOAazmyVbnKHhTqc3jOu3RPCEbcZJGvofXYAfYHBILGovXY6kX6c2l+I6im TdmUem7KxCPFPju0Ru9dxaXeLdHLelnFOIZbIwhzR3ixQEGGPBIxuc/IepSfxz/ART E527Ej78//UMaUpq/OhOp2To9JtglwLpMQzeBibOdv8iWnrlMfsDsW66iFGbl606hW kxGi+V73gawosLhaf40ZebQovoKhcUeqIVfKWuan9fpaAaSYn5BuCFkrpFlX2C80l2 dpmV9AhMQeDa9HHIgM7J3IiZKM8D/EiMNQKuLeJHFlZ5AbTbMnb1kmFdXmPyCPUvTG LQ8tbDu560hgA== Feedback-ID: 53815645:user:proton Received-SPF: pass client-ip=51.77.79.158; envelope-from=nick4f42@proton.me; helo=mail-0201.mail-europe.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 18 Feb 2024 13:30:25 -0500 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:280192 Archived-At: After opening a file in a git repository with emacs -Q, using vc-annotate, = and returning to the file, various key inputs like C-f, C-b, and typing charact= ers have a noticeable delay between key down and screen update. I am using GNOM= E 45.3 and Wayland. Steps to reproduce (starting from an empty directory): $ git init $ seq 10 > foo $ git add -A && git commit -m 'c1' $ seq 10 >> foo $ git add -A && git commit -m 'c2' $ seq 10 >> foo $ git add -A && git commit -m 'c3' $ emacs -Q C-x C-f foo RET C-f C-b ; no noticeable delay C-x v g p p n n C-x k RET C-f C-b ; noticeable delay After following those steps, pressing and holding C-f does not visually upd= ate the cursor until 100s of milliseconds later (although occasionally it would update immediately). However, the cursor would also be updated as soon as C= -f was released. Before running C-x v g, holding C-f would immediately update = the cursor. Setting the following did not have a noticeable effect: (setq pgtk-wait-for-event-timeout 0) After starting a daemon with M-x server-start (from the same emacs as befor= e) and opening a terminal client with emacsclient -nw, holding down C-f in the= foo buffer immediately updated the cursor, just like in the graphical client be= fore running C-x v g. Context: This delay has been happening to me for a while when using emacs 29 pgtk an= d magit. My emacs will start with no key input delay, and then after a while = of editing and doing various magit commands, key inputs would suddenly have th= e delay described above after running a particular magit command. The delay w= ould happen in every buffer. It would persist for the entire life of the emacs process, even after running desktop-clear, disabling most global minor mode= s, closing and re-opening the emacs client window, etc. Like described above, terminal clients would not have the input lag even when graphical clients d= id. I was able to more reliably reproduce this lag when using vc. Although my ste= ps to reproduce this bug use vc-annotate, I experienced the bug when making commi= ts with vc as well. Software information from GNOME settings: - **Firmware Version:** H.F0 - **OS Name:** NixOS 23.11 (Tapir) - **OS Build:** 23.11.20240211.809cca7 - **OS Type:** 64-bit - **GNOME Version:** 45.3 - **Windowing System:** Wayland - **Kernel Version:** Linux 6.1.77 In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.39, cairo version 1.18.0) Repository revision: 77576cd7626e4a99a5c88aa854091d701edd53a8 Repository branch: master System Description: NixOS 23.11 (Tapir) Configured using: 'configure --prefix=3D/nix/store/yv9dl9jplhk8pgjkkp1qrpp5mw99524r-emacs-pgtk-20240217= .0 --disable-build-details --with-modules --with-pgtk --with-native-compilation --with-tree-sitter --with-xwidgets' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM XWIDGETS GTK3 ZLIB Important settings: value of $EMACSLOADPATH:=20 value of $EMACSNATIVELOADPATH:=20 value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dfcitx locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-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: (shadow sort mail-extr emacsbug 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 iso8601 time-date subr-x help-mode vc-annotate vc vc-git diff-mode easy-mmode vc-dispatcher cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-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 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 xwidget-internal dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk multi-tty move-toolbar make-network-process native-compile emacs) Memory information: ((conses 16 60720 9114) (symbols 48 6128 0) (strings 32 17189 2899) (string-bytes 1 599226) (vectors 16 10446) (vector-slots 8 145248 6672) (floats 8 36 525) (intervals 56 268 14) (buffers 984 12))