From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Deric Bytes Newsgroups: gmane.emacs.bugs Subject: bug#70041: 30.0.50; mouse-autoselect-window causes unexpected scroll Date: Tue, 2 Apr 2024 20:30:26 +0100 Message-ID: References: <86r0fuhmo6.fsf@gnu.org> <861q7uh8xk.fsf@gnu.org> <9b4d0588-3db1-4573-89a6-7397dcd4598f@gmx.at> <050c880c-a85f-4650-9b4b-140fb72b7067@gmx.at> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000000489910615222474" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28359"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 70041@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 02 21:31:09 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 1rrjqf-00077f-6Y for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Apr 2024 21:31:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rrjqX-0002Xx-6H; Tue, 02 Apr 2024 15:31:01 -0400 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 1rrjqV-0002Xh-Nw for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2024 15:30:59 -0400 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 1rrjqV-0004lT-FX for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2024 15:30:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rrjqZ-0004gW-BM for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2024 15:31:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Deric Bytes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Apr 2024 19:31:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70041 X-GNU-PR-Package: emacs Original-Received: via spool by 70041-submit@debbugs.gnu.org id=B70041.171208625117916 (code B ref 70041); Tue, 02 Apr 2024 19:31:03 +0000 Original-Received: (at 70041) by debbugs.gnu.org; 2 Apr 2024 19:30:51 +0000 Original-Received: from localhost ([127.0.0.1]:56387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrjqM-0004eu-Mh for submit@debbugs.gnu.org; Tue, 02 Apr 2024 15:30:51 -0400 Original-Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]:45419) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrjqK-0004e6-A7 for 70041@debbugs.gnu.org; Tue, 02 Apr 2024 15:30:49 -0400 Original-Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2d23114b19dso77529201fa.3 for <70041@debbugs.gnu.org>; Tue, 02 Apr 2024 12:30:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712086238; x=1712691038; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=G45g/zmCWhZ/tAeVcPt4AouES8PlAXtoSIrmgb8DLzY=; b=eVa4CEGxvLd00I5Kfhadm2x49UZ04kCSHYTzBBxQZYZqtNyN1unBo69qHl+D0dfDv8 HmbyDbUS9YJA5Z6OlV0cGn1PH59RUbu2+ggfvQFZUB9/HkSuS0VtguYe+wQJGuJuvgW9 Ppv82dc5JKpccqMEgVMf1kqxaJvlO6Cs+aaOPZMIz1QleCwnptaAgN13NCG0ZoyApPJM 9P9kdGc6wBF/xnTcAFIlGTLgghCO+JBjY71Eb8yWmU5DZnLb0hJ0hepqi/0pRYa6yN01 mRWO1cn/P8IFvMAueL3yKKZt95ZL3TlyPRuYaESnjXrFIDcq2HC2qCzdCbm7HlzhcaKj SkRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712086238; x=1712691038; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=G45g/zmCWhZ/tAeVcPt4AouES8PlAXtoSIrmgb8DLzY=; b=qZPhU5L5VZ20htokABZmq6Tvj9fJd5YmDr0hw47lPsQ/6FegIuQw6nuJeFRCMgrU7J HIWn+Ta7TDdT++QLJczma5exRqyWDVMBWjmRI4lPEEYWmDxq4qAEUcohb8zc+am7QGUk /bGAGqlyEdTUhAr7/wSBJrEEtf+QthqtMObb9MmhGuvF33C76m22Dum4ekcbH+t5Nrqy TRH/LIXntUWQHx6JLssyc7/z0nCNE3yqSzSs+5qFfNdjJdEieZM9FBXA26+S50UTfCI5 al2H+3TgMYqBDD4riPvJbEZsso33aXHenSnfZ5BQOqzoYi7qsTVs4zS8gS308GWFKgmF 9X8A== X-Forwarded-Encrypted: i=1; AJvYcCWjtlErPgtCT1xOOmL2TTrqDEkEM+0gNfGJFsw8uIBboKhTE9DsfhcagS/KbMyRmpVxm03HKH7KFFTIaHqEU+7uePj16RQ= X-Gm-Message-State: AOJu0YyqPosDmnLgzyAdIK4rHRaG/tA4YbPrmEgZgx5qq4zqy3Th5yG4 TBTfxlvoJg0E+UclFT86Us54Jkz1hVxCrzqLb+WkYRY+ilVRUfHoLv8hXnilo60OrWpQqcYeiWG 0OExHn9vln8hQSJsjl7ZssFTogG4= X-Google-Smtp-Source: AGHT+IFSIHO64LKXjfIzF9Moc/6b8juryHXNlFCAW7SOwtqgLCodNqdQJgIxzbdgJ6sVJrQGVfHhtQ4dYlTy4iGU49A= X-Received: by 2002:a2e:a281:0:b0:2d7:21f:90ef with SMTP id k1-20020a2ea281000000b002d7021f90efmr8733027lja.1.1712086237609; Tue, 02 Apr 2024 12:30:37 -0700 (PDT) In-Reply-To: <050c880c-a85f-4650-9b4b-140fb72b7067@gmx.at> 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:282547 Archived-At: --0000000000000489910615222474 Content-Type: text/plain; charset="UTF-8" I can no longer reproduce this error. I suddenly started getting a stack smash (emacs 30.0.50) when opening tsx-ts-mode. I installed apt-get emacs 29.1 and had the same problem. I deleted all traces of emacs and tree-sitter from my machine. I installed from the latest source. Everything works great, both with GTK and Lucid toolkits. Thanks for your help. On Sat, 30 Mar 2024 at 09:37, martin rudalics wrote: > > What would you like me to test for on the window-scroll-hooks? > > Let's start with > > (defun foo (window start) > "..." > (with-current-buffer (get-buffer-create "*foo*") > (let* ((buffer (window-buffer window)) > (max (with-current-buffer buffer (point-max)))) > (insert (format "window %s start %s point %s point-max %s\n" > window start (window-point window) max))))) > > (add-hook 'window-scroll-functions 'foo) > > I suppose the problem you see is with windows where the value of 'point' > is not that of 'point-max'. Let's find such a window in the buffer > *foo* first. > > Thanks, martin > --0000000000000489910615222474 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I can no longer reproduce this error.
<= br>
I suddenly started getting a stack smash (emacs 30.0.50) when= opening tsx-ts-mode. I installed apt-get emacs 29.1 and had the same probl= em.

I deleted all traces of emacs and tree-sitter = from my machine. I installed from the latest source.

Everything works great, both with GTK and Lucid toolkits.

=
Thanks for your help.

On Sat, 30 Mar 2024 at 09:37, mar= tin rudalics <rudalics@gmx.at>= wrote:
=C2=A0&g= t; What would you like me to test for on the window-scroll-hooks?

Let's start with

(defun foo (window start)
=C2=A0 =C2=A0"..."
=C2=A0 =C2=A0(with-current-buffer (get-buffer-create "*foo*")
=C2=A0 =C2=A0 =C2=A0(let* ((buffer (window-buffer window))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(max (with-current-buffer buffer (= point-max))))
=C2=A0 =C2=A0 =C2=A0 =C2=A0(insert (format "window %s start %s point %= s point-max %s\n"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 window start (window-point window) max)))))

(add-hook 'window-scroll-functions 'foo)

I suppose the problem you see is with windows where the value of 'point= '
is not that of 'point-max'.=C2=A0 Let's find such a window in t= he buffer
*foo* first.

Thanks, martin
--0000000000000489910615222474--