From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#75120: 31.0.50; which-key crashes on xt if the scroll bar is activated. Date: Thu, 09 Jan 2025 09:16:01 +0200 Message-ID: <86bjwg31am.fsf@gnu.org> References: <86ttaorosk.fsf@gnu.org> <87frltih5u.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35879"; mail-complaints-to="usenet@ciao.gmane.io" Cc: enometh@meer.net, 75120@debbugs.gnu.org To: Robert Pluim , martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 09 08:17:20 2025 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 1tVmnA-0009D4-Ga for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Jan 2025 08:17:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tVmmw-0005Ej-5x; Thu, 09 Jan 2025 02:17:06 -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 1tVmmt-0005Dq-Ve for bug-gnu-emacs@gnu.org; Thu, 09 Jan 2025 02:17:04 -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 1tVmms-0004iT-Ll for bug-gnu-emacs@gnu.org; Thu, 09 Jan 2025 02:17:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=L71TIuzt8mCeO3rkC0yg5W9r6u/11fMxzOFHRIYE5Gw=; b=R0czktZ/sHCa96FoUeeAK2C1kd8IInw8u6C/0JL7QDkxEmCl9L65wubnPwjxjK3gkYU+u9TVrIPtAuUrmZ731GFYo1n9VdBoKXN8btBlgv9DzD5gsGUGTsH75jtvfuRBdZ6LXNil7bT8BBas2AFZDQVKCAdbKGgGLoPywlBW/N+3uGpfSxzVe6GS++nKfCfbJvFmzDTQqVrDxwIasN/t9jq12diSgRIBt2zaG0ESAw5kt5/mMuKU1gSjRsk7bblBJ4suL81aXSvfTKEiwnbYqzzfhWGozPnPiJwb3sWy6koFdYd4sBhpYFEesamA+Scni0FEB3+w30vvciOvFPy3Bw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tVmms-0006S3-G4 for bug-gnu-emacs@gnu.org; Thu, 09 Jan 2025 02:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Jan 2025 07:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75120 X-GNU-PR-Package: emacs Original-Received: via spool by 75120-submit@debbugs.gnu.org id=B75120.173640697424678 (code B ref 75120); Thu, 09 Jan 2025 07:17:02 +0000 Original-Received: (at 75120) by debbugs.gnu.org; 9 Jan 2025 07:16:14 +0000 Original-Received: from localhost ([127.0.0.1]:50193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tVmm6-0006Px-9I for submit@debbugs.gnu.org; Thu, 09 Jan 2025 02:16:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46646) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tVmm4-0006Pl-SK for 75120@debbugs.gnu.org; Thu, 09 Jan 2025 02:16:13 -0500 Original-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 1tVmlx-0004er-OJ; Thu, 09 Jan 2025 02:16:06 -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=L71TIuzt8mCeO3rkC0yg5W9r6u/11fMxzOFHRIYE5Gw=; b=sQiAIe58nA6Ln+9eD9G0 i8JNG6K49qk6vksxuFqqicyCREH2gBc7XErFAzCs8duG+ifBxqYIVTR22HEZX0hr5PAz9lPFdq7Jg VYF0keLkQq+yLeUHPim4fQ2IGfna6RYwl/fnfBbgI795Xtd43qITNazZncVhZFgyXvhS2aOnHM5/N Pp1fnnKKOL8INh+5fofRzMYmwxW4CAYyiD/52wKA3m62WUtfRBwvNSM7UndmGzV59dKRhPQYTNAgY VH7htFlxkyc9x7sl+6JpiQZiLof5DmtC3pFko78bVSbJjMzB9Egws8Ap8YpJWPd9macg9xPFx9dSU xd22eJhUCms5ng==; In-Reply-To: <87frltih5u.fsf@gmail.com> (message from Robert Pluim on Wed, 08 Jan 2025 14:11:57 +0100) 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:298807 Archived-At: > From: Robert Pluim > Cc: Madhu , 75120@debbugs.gnu.org > Date: Wed, 08 Jan 2025 14:11:57 +0100 > > >>>>> On Sat, 28 Dec 2024 14:10:35 +0200, Eli Zaretskii said: > > >> From: Madhu > >> Date: Thu, 26 Dec 2024 20:56:01 +0530 > >> > >> Hello, Having heard about which-key mode I decided to try it. > >> > >> gdb --args ../build-xt-native/src/emacs -Q -eval '(which-key-mode 1)' -eval '(setq window-min-height 8)' > >> > >> 1. type C-x, wait 5 seconds, type C-g. > >> 2. type C-x, wait 2 seconds for the 8 line frame with scrollbar, click the "up > >> arrow" on the top of the scrollbar. > > Eli> When I try this, Emacs signals an error, displaying "C-x > Eli> is undefined" in the echo area. But > Eli> I'm not on X. > > Eli> Can someone else reproduce the crash? > > Yes. In xt_action_hook: > > x_send_scroll_bar_event (window_being_scrolled, > scroll_bar_end_scroll, 0, 0, false); > w = XWINDOW (window_being_scrolled); > bar = XSCROLL_BAR (w->vertical_scroll_bar); <- > w->vertical_scroll_bar == Qnil here > > Although I have no clue what to do about it: I suspect the scrollbars > have been condemned by condemn_scroll_bars_hook, but then not > redeemed. Or maybe whatever is undoing or preventing the global > setting of " " is responsible, but I > canʼt find where that is. Maybe we should simply do what xt_horizontal_action_hook does for the horizontal scroll bar, i.e. do nothing if w->vertical_scroll_bar is nil? Martin, WDYT?