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#70041: 30.0.50; mouse-autoselect-window causes unexpected scroll Date: Thu, 28 Mar 2024 08:53:45 +0200 Message-ID: <86r0fuhmo6.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30138"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70041@debbugs.gnu.org To: Deric Bytes Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 28 07:54:24 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 1rpjeZ-0007f6-8i for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Mar 2024 07:54:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpjeH-0002Un-4E; Thu, 28 Mar 2024 02:54:05 -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 1rpjeD-0002UL-Qc for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2024 02:54:01 -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 1rpjeD-0006jw-64 for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2024 02:54:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rpjeD-0007IP-K1 for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2024 02:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Mar 2024 06:54:01 +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.171160884028038 (code B ref 70041); Thu, 28 Mar 2024 06:54:01 +0000 Original-Received: (at 70041) by debbugs.gnu.org; 28 Mar 2024 06:54:00 +0000 Original-Received: from localhost ([127.0.0.1]:38872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpjeA-0007I9-OA for submit@debbugs.gnu.org; Thu, 28 Mar 2024 02:54:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpje6-0007Gg-A4 for 70041@debbugs.gnu.org; Thu, 28 Mar 2024 02:53:56 -0400 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 1rpje0-0006i7-E9; Thu, 28 Mar 2024 02:53:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=DrR3Z04Jt8WqicjjLJ5EcbH/u+phXpb4qCTiZ58Fu/M=; b=q2+aqCIxLMaI 51L3WQyY4XRzudJS6Uyz9PskCdLxvP0062UrILvmqGuGA28w+Y6Dsdax+Cr0vWQUSO67teJwtOvEs oPEGhImMQhn+KwNIRoptny5j5auCOr/3E5ihBGiceaIOKFei7bo+zGXT3K9hG0QqiKeRNi5jLgPte ODuteqd6upIm7zniu8vj0dCzE0Gncb806uXYq91hfLuwSVXHOAIByPiSr5EZMteDoSHkv3QTiuXmC 2a8Lg4AOHPv5w6uKOtlq95sbkHor0PiiR0aeTcjGPnkncj6Jn+YPaM1mSm/+vrwEhKL4/c95W1sCJ /6BXveTo62o5V0Q0BpWCIw==; In-Reply-To: (message from Deric Bytes on Wed, 27 Mar 2024 23:16:26 +0000) 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:282178 Archived-At: > From: Deric Bytes > Date: Wed, 27 Mar 2024 23:16:26 +0000 > > Expected behavour: > > Run the code below in emacs -Q. The 'my-buf' buffer should be showing > the start of the buffer with contents of directory listing. > > Actual behaviour: > > The buffer appears empty, until buffer interaction. Page has scrolled to end and > content dissappeared from sight even though the whole content can fit into the buffer. > > The expected behaviour happens when `mouse-autoselect-window' has it's > default setting. I cannot reproduce this here, FWIW. I get the expected behavior without any "buffer interaction". But I'm not using the GTK+ build of Emacs, and I did need to modify the recipe to use a remote directory I can actually access (instead of "/scpx:bangmyhead@192.168.0.46:"), and used start-file-process-shell-command to avoid the need to specify the shell's file name explicitly. Here's the recipe I tested: (let ((shell-cmd "ls -la") (output-buffer "my-buf") (default-directory ) (process-name "my-proc")) (start-file-process-shell-command process-name (get-buffer-create output-buffer) shell-cmd) (switch-to-buffer output-buffer) (with-current-buffer output-buffer (goto-char (point-min)) (find-file-other-window "ooo"))) With the above recipe, I see the end of the listing (which is longer than the window in my case). This is what I'd expect. Can someone who uses the GTK build of the master branch reproduce the problematic behavior?