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: Wed, 27 Mar 2024 23:16:26 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003ad0530614ac9918" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38473"; mail-complaints-to="usenet@ciao.gmane.io" To: 70041@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 28 00:17: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 1rpcWL-0009oD-3p for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Mar 2024 00:17:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpcVz-00079i-1h; Wed, 27 Mar 2024 19:17:03 -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 1rpcVx-00079C-Rk for bug-gnu-emacs@gnu.org; Wed, 27 Mar 2024 19:17: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 1rpcVx-0003fD-JF for bug-gnu-emacs@gnu.org; Wed, 27 Mar 2024 19:17:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rpcVx-0001CO-Qa for bug-gnu-emacs@gnu.org; Wed, 27 Mar 2024 19:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Deric Bytes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Mar 2024 23:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70041 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.17115814194595 (code B ref -1); Wed, 27 Mar 2024 23:17:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Mar 2024 23:16:59 +0000 Original-Received: from localhost ([127.0.0.1]:38522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpcVu-0001C3-On for submit@debbugs.gnu.org; Wed, 27 Mar 2024 19:16:59 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:56190) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpcVr-0001BO-AE for submit@debbugs.gnu.org; Wed, 27 Mar 2024 19:16:57 -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 1rpcVf-00078R-6k for bug-gnu-emacs@gnu.org; Wed, 27 Mar 2024 19:16:43 -0400 Original-Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rpcVc-0003cL-UV for bug-gnu-emacs@gnu.org; Wed, 27 Mar 2024 19:16:42 -0400 Original-Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-515a81928faso354405e87.1 for ; Wed, 27 Mar 2024 16:16:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711581398; x=1712186198; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=QJyqeBiMiVaKcv7+mUCjcJGEja9ih628muCY6reiwKM=; b=h+OkZthyfMkYgOp73YWIXHwqflvIH1XYcEEXQf4q8TEaYNDHLHIvVaoIi80f4Nj+gP +pQBxu7XtBTYywL/5J1khl0Cf5wMWXSIDd3fBxjqtku5YV5T1ZqtzJtbsJKn2Di3gekK cSlJuse+i4WBTNue685kVXCdme45USNMKkW+eD1FiAcU/lF1X4Ntufy8D/YiHJIWORZD 5Tw5JedDxCKcWsfQkBM+gnCeIAuCacm0tVcaP6gFXAvxzeE4nYMi8p/+Jf9YJ3kGG+Mp 2Wd+8al8yFsJ1tHj/lLTSUrdg1hLWTE0keo2p43O/Ma9bxP8KbqPidGjSdkHkelf/AOG QLew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711581398; x=1712186198; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=QJyqeBiMiVaKcv7+mUCjcJGEja9ih628muCY6reiwKM=; b=R9JAizI93gbvU1qAMwJGpUXfIjt0aUxM07tCg3uR/OUoOue+dLEaFRnqg/vjURMwIY yzdlKBm/0sLiPi3vwHcjzt4/g+ZgumgDG7cDOc3sZa8N7lN1UQ2+uz5k38vU7ka1U5Gr qJ0nwXGWgzOQLOFd6cz9abRZB3gAdZ6n4N2KI0PxQ3KSYpy+8Nj3R4g9QOztfEe7jWWk M/TEOrJqqoM5rU0CuFyHk/x7UnREGC2LPkayDxiIkkgajEGzOiPXaADZTMbkd0Bgp9pQ OXm0Ns57KOKjL/QeNU2qILfkbHfjxPM2QFW00zR56Tlh0J9QwELdN0BeiC+SFM5LC91T EHjg== X-Gm-Message-State: AOJu0Yy+yIY28uiPqJOHE/JUUjWSKj+iK6/iUAYO6nD+l2gQHdiKNjzL f52ZIkjQIaAuSJ1a0JCIXnNSBPhz+Gb/wAdGj0sxzlbB+6RcBWJ6JAlMyaWMittKlXYCw+2W76y lzdlw2DJvAbKY7R0VZAvGfYIEfKCbsZBt1mw= X-Google-Smtp-Source: AGHT+IHKdPBTPJDuoXPY46zdSMw3uzaIwqDrZtEDlHq6+Z4ypvzYr1iYFQ2dSBttQFgz6biwFxt/cDJUDo5O5+BUqBA= X-Received: by 2002:a19:ca4f:0:b0:513:e17d:cf3c with SMTP id h15-20020a19ca4f000000b00513e17dcf3cmr559422lfj.1.1711581397959; Wed, 27 Mar 2024 16:16:37 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::130; envelope-from=dericbytes@gmail.com; helo=mail-lf1-x130.google.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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:282165 Archived-At: --0000000000003ad0530614ac9918 Content-Type: text/plain; charset="UTF-8" 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. (setq mouse-autoselect-window 0.1) (let ((shell-cmd "ls -la") (output-buffer "my-buf") (default-directory "/scpx:bangmyhead@192.168.0.46:") (shell-program "/usr/bin/bash") (process-name "my-proc")) (start-file-process process-name (get-buffer-create output-buffer) shell-program "-c" shell-cmd) (switch-to-buffer output-buffer) (with-current-buffer output-buffer (goto-char (point-min)) (find-file-other-window "ooo"))) In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.16.0) of 2023-05-13 built on no-control-x1c Repository revision: 7791907c3852e6ec197352e1c3d3dd8487cc04f5 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101007 System Description: Ubuntu 23.10 Configured using: 'configure --with-tree-sitter --with-mailutils --with-json --with-xwidgets --with-modules --with-imagemagick --prefix=/home/no-control/installs --bindir=/home/no-control/bin --with-native-compilation=no --with-xft' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ IMAGEMAGICK JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM XWIDGETS GTK3 ZLIB Important settings: value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t 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 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 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 thai-util thai-word mule-util lao-util enriched disp-table facemenu view thingatpt vc-hg vc-git diff-mode easy-mmode vc-bzr vc-dispatcher tramp-cmds tramp-cache time-stamp tramp-sh tramp rx tramp-loaddefs trampver tramp-integration files-x tramp-compat xdg shell pcomplete comint ansi-osc ansi-color ring parse-time iso8601 ls-lisp format-spec auth-source cl-seq eieio eieio-core cl-macs password-cache json map time-date subr-x help-fns radix-tree cl-print byte-opt debug backtrace help-mode find-func use-package-core cl-loaddefs cl-lib bytecomp byte-compile chemacs gv rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-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 lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 175970 15742) (symbols 48 10757 0) (strings 32 35076 2527) (string-bytes 1 1130443) (vectors 16 22552) (vector-slots 8 345228 14831) (floats 8 64 75) (intervals 56 866 6) (buffers 984 18)) --0000000000003ad0530614ac9918 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Expected behavour:

Run the code bel= ow in emacs -Q.=C2=A0 The 'my-buf' buffer should be showing=C2=A0
the start of the buffer with contents of directory listing.
<= br>
Actual behaviour:

The buffer appears empty, until buffer= interaction. Page has scrolled to end and=C2=A0
content dissappe= ared 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.



(setq mouse-autoselect-window 0= .1)

(let ((shell-cmd "ls -la")
=C2=A0 =C2=A0 =C2=A0 (ou= tput-buffer "my-buf")
=C2=A0 =C2=A0 =C2=A0 (default-directory = "/scpx:bangmyhead@19= 2.168.0.46:")
=C2=A0 =C2=A0 =C2=A0 (shell-program "/usr/bi= n/bash")
=C2=A0 =C2=A0 =C2=A0 (process-name "my-proc"))=C2=A0 (start-file-process process-name (get-buffer-create output-buffer)=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0shell-program =C2=A0"-c" = shell-cmd) =C2=A0
=C2=A0 (switch-to-buffer output-buffer)
=C2=A0 (wi= th-current-buffer output-buffer
=C2=A0 =C2=A0 (goto-char (point-min))=C2=A0 =C2=A0 (find-file-other-window "ooo")))



In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
=C2= =A03.24.37, cairo version 1.16.0) of 2023-05-13 built on no-control-x1c
= Repository revision: 7791907c3852e6ec197352e1c3d3dd8487cc04f5
Repository= branch: master
Windowing system distributor 'The X.Org Foundation&#= 39;, version 11.0.12101007
System Description: Ubuntu 23.10

Confi= gured using:
=C2=A0'configure --with-tree-sitter --with-mailutils --= with-json
=C2=A0--with-xwidgets --with-modules --with-imagemagick
=C2= =A0--prefix=3D/home/no-control/installs --bindir=3D/home/no-control/bin
= =C2=A0--with-native-compilation=3Dno --with-xft'

Configured feat= ures:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ IMAGEMA= GICK
JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODUL= ES
NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFFTOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM XWIDGETS
= GTK3 ZLIB

Important settings:
=C2=A0 value of $LANG: en_GB.UTF-8<= br>=C2=A0 value of $XMODIFIERS: @im=3Dibus
=C2=A0 locale-coding-system: = utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect= :
=C2=A0 shell-dirtrack-mode: t
=C2=A0 tooltip-mode: t
=C2=A0 glob= al-eldoc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 show-paren-mode: t
= =C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool= -bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t<= br>=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 bl= ink-cursor-mode: t
=C2=A0 line-number-mode: t
=C2=A0 indent-tabs-mode= : t
=C2=A0 transient-mark-mode: t
=C2=A0 auto-composition-mode: t
= =C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t

Lo= ad-path shadows:
None found.

Features:
(shadow sort mail-extr = emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml= mml-sec epa derived epg rfc6068 epg-config
gnus-util text-property-sear= ch mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils= mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-= utils thai-util thai-word mule-util
lao-util enriched disp-table facemen= u view thingatpt vc-hg vc-git
diff-mode easy-mmode vc-bzr vc-dispatcher = tramp-cmds tramp-cache
time-stamp tramp-sh tramp rx tramp-loaddefs tramp= ver tramp-integration
files-x tramp-compat xdg shell pcomplete comint an= si-osc ansi-color ring
parse-time iso8601 ls-lisp format-spec auth-sourc= e cl-seq eieio
eieio-core cl-macs password-cache json map time-date subr= -x help-fns
radix-tree cl-print byte-opt debug backtrace help-mode find-= func
use-package-core cl-loaddefs cl-lib bytecomp byte-compile chemacs g= v rmc
iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook<= br>vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win
term/comm= on-win x-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 mi= sc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp= 51932 hebrew greek romanian slovak czech
european ethiopic indian cyrill= ic chinese composite emoji-zwj charscript
charprop case-table epa-hook j= ka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs t= heme-loaddefs faces cus-face macroexp
files window text-properties overl= ay sha1 md5 base64 format env
code-pages mule custom widget keymap hasht= able-print-readable backquote
threads xwidget-internal dbusbind inotify = lcms2 dynamic-setting
system-font-setting font-render-setting cairo move= -toolbar gtk x-toolkit
xinput2 x multi-tty make-network-process emacs)
Memory information:
((conses 16 175970 15742)
=C2=A0(symbols 48= 10757 0)
=C2=A0(strings 32 35076 2527)
=C2=A0(string-bytes 1 1130443= )
=C2=A0(vectors 16 22552)
=C2=A0(vector-slots 8 345228 14831)
=C2= =A0(floats 8 64 75)
=C2=A0(intervals 56 866 6)
=C2=A0(buffers 984 18)= )
--0000000000003ad0530614ac9918--