From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#75120: 31.0.50; which-key crashes on xt if the scroll bar is activated. Date: Wed, 08 Jan 2025 14:11:57 +0100 Message-ID: <87frltih5u.fsf@gmail.com> References: <86ttaorosk.fsf@gnu.org> 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="11357"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Madhu , 75120@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 08 14:13:33 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 1tVVsL-0002kr-14 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Jan 2025 14:13:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tVVrw-0007x9-6b; Wed, 08 Jan 2025 08:13: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 1tVVrr-0007vN-1R for bug-gnu-emacs@gnu.org; Wed, 08 Jan 2025 08:13:03 -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 1tVVrq-0005iE-O4 for bug-gnu-emacs@gnu.org; Wed, 08 Jan 2025 08:13:02 -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:Date:References:In-Reply-To:From:To:Subject; bh=iwUuKkp2mi+aBA8gtYCyB7c6iTQkupVqNlYgzhEhDg0=; b=OZ9cyvV6ueSbkJlPK3EzianSv/xR3cxSJ+a2/gnoJlmSGtA2cey1R9OhmLRPOP5X6O/Yeth+tsTj2lBeLay35alE9Wxi264N0FeZ8arhOt2CrjY9de8CZnZnXrZjOgDyGsEFssZkVZvU/aRDR4eQgabrO8o1BMQBQvAJzvFL/b6aZfJY0Uf3h308iie57/5q2aEv8sus04Qf3qT3sOyc62UKOgq68Z4RGTamcHxyVTFopySJfljBFWNKA1mtWb7v/1vAJOAjmetLC7qrBBGcm1jqOBp0B790l4b4DsxsG2gNx9AOOMKSLdFPgWB6wM+TTI3XUCWEVGAeEVVGi/Xrzw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tVVrq-0002AZ-FI for bug-gnu-emacs@gnu.org; Wed, 08 Jan 2025 08:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Jan 2025 13:13: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.17363419278251 (code B ref 75120); Wed, 08 Jan 2025 13:13:02 +0000 Original-Received: (at 75120) by debbugs.gnu.org; 8 Jan 2025 13:12:07 +0000 Original-Received: from localhost ([127.0.0.1]:46422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tVVqx-000291-DC for submit@debbugs.gnu.org; Wed, 08 Jan 2025 08:12:07 -0500 Original-Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:44046) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tVVqv-00028U-7C for 75120@debbugs.gnu.org; Wed, 08 Jan 2025 08:12:06 -0500 Original-Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-436345cc17bso121274175e9.0 for <75120@debbugs.gnu.org>; Wed, 08 Jan 2025 05:12:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736341919; x=1736946719; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=iwUuKkp2mi+aBA8gtYCyB7c6iTQkupVqNlYgzhEhDg0=; b=CY2OMK+wyKb/3Fh+gnnnVJANdTyLCHqSt7ffcfqtw2SuzK3//yW8GNAx81Y0lHtalF 1FS8Ey2YkY8KWffyw/2G5EYOncGARcqVPTfzv9yZPNKrqXeXmisfMJ7LLinY/3TPTFIk CSwteJTx9xUjQBNYKoVlqHfCl1Dxkyw7VAWKOEaS4WWMZg2fvK6kT9RGh7BQiu8SP0RN YVVxSN90un05Lf8iEWQjAnLIzi4wVyw5msBPsvDzalLxUiMtCp0iS9BdksuYCAWGGTAd 1btoPr6R9CSthCAMGyRQJyYit67gpvfDXtMJCldLETncPe6YIhrqr4soEghEQCCBRUM6 ZIGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736341919; x=1736946719; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iwUuKkp2mi+aBA8gtYCyB7c6iTQkupVqNlYgzhEhDg0=; b=CgFvovE50ellfTfg0LezXkVM7XyLWsGcjP1OZ99xoNVWH5bqfmrZ6r3a0GEjN7+9eE cUvOwCAGROqwi+dQsFGQqsOhmTe4H+qDE8dih4RXhTs0w4frJUoL+Hb/5djkIFXt0fsH /pQWCjeDthfgUCnqHQ0GZ1u5JyzvMBMD8kWAhyuz0k/Goro12J6TK8oeR0N2Rqp0pSHS kIySCN2IWyey7JE8Re2u9UCWA4zoqRW5EJnBSLEohAQ3gjFMZXzXl9A6aUumI5PojA6c X6QFGxwv/y6iH/2fLtvt5RChteL9wF8sXnF03IJ5dPYYXXXTNxG5iA+tIFJqtlY82RLE atog== X-Forwarded-Encrypted: i=1; AJvYcCWhXr+S9pzX+r2qT6rjTArfYfVBzA3JUZ06DAxwTjR1o/ETK34qE4M0M6Rmn+m/TBqqroynlA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxOQbpdcTJonN+1mtFBxKqp4GL4UCWwZ4+wD/7fhW3PZcquKNEr E9KDD5/9AewUAEgT9ZftLeCU4as1d3mujK6iOBxYibyOeCKoWjeglj/RWw== X-Gm-Gg: ASbGncv6DLCnf4kDZ6RHC+eE8TYSs35KBaF9Xv2CHFcF8mwXfjo91cPQpnWmZwMAZdw ERAOk1iYtXrgwZPdJ8/5uxJTvCbOCDjgauHR8nJ+s333hcCdkbFcYiQ77+s14fbA5qplF5jEdM3 YjdQuzaw8+jf3zOgNKVFgNVovj5Mvk19/Iu2K+azO27qw6fDVKf8ZwedPu5awoTYZ/cScKTbHxz uxcp9W+JWhxULEKsIGQcu4HHWUnD7eCgzn1EiEWzm8c X-Google-Smtp-Source: AGHT+IGRRP580W8Itb2dy7dEH/4k1/qBXqPT+CeEZ/HWNHnjSRC9UVsMjni6sgaxWa5Bw+bqhMSG9Q== X-Received: by 2002:a05:600c:8706:b0:434:f0df:9f6 with SMTP id 5b1f17b1804b1-436e2677356mr21237495e9.3.1736341918588; Wed, 08 Jan 2025 05:11:58 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb51:6c29:f07d:d51e:cd38]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a1c89e140sm54051985f8f.79.2025.01.08.05.11.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2025 05:11:57 -0800 (PST) In-Reply-To: <86ttaorosk.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 28 Dec 2024 14:10:35 +0200") 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:298776 Archived-At: >>>>> On Sat, 28 Dec 2024 14:10:35 +0200, Eli Zaretskii said: >> From: Madhu >> Date: Thu, 26 Dec 2024 20:56:01 +0530 >>=20 >> Hello, Having heard about which-key mode I decided to try it. >>=20 >> gdb --args ../build-xt-native/src/emacs -Q -eval '(which-key-mode = 1)' -eval '(setq window-min-height 8)' >>=20 >> 1. type C-x, wait 5 seconds, type C-g. >> 2. type C-x, wait 2 seconds for the 8 line frame with scrollbar, cli= ck 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. B= ut 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 =3D XWINDOW (window_being_scrolled); bar =3D XSCROLL_BAR (w->vertical_scroll_bar); <- w->vertical_scroll_bar =3D=3D 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=CA=BCt find where that is. Robert --=20