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: Thu, 28 Mar 2024 13:15:32 +0000 Message-ID: References: <86r0fuhmo6.fsf@gnu.org> <861q7uh8xk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000001b72510614b852bc" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31500"; mail-complaints-to="usenet@ciao.gmane.io" Cc: martin rudalics , 70041@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 28 14:16:17 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 1rppc9-0007yJ-EN for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Mar 2024 14:16:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rppbv-0005jg-Eq; Thu, 28 Mar 2024 09:16: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 1rppbu-0005jV-1T for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2024 09:16:02 -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 1rppbt-0002PM-D8 for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2024 09:16:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rppbt-0008D2-Of for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2024 09:16: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: Thu, 28 Mar 2024 13:16: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.171163175631525 (code B ref 70041); Thu, 28 Mar 2024 13:16:01 +0000 Original-Received: (at 70041) by debbugs.gnu.org; 28 Mar 2024 13:15:56 +0000 Original-Received: from localhost ([127.0.0.1]:39575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rppbm-0008CK-D9 for submit@debbugs.gnu.org; Thu, 28 Mar 2024 09:15:56 -0400 Original-Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]:61440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rppbj-0008Bi-IY for 70041@debbugs.gnu.org; Thu, 28 Mar 2024 09:15:53 -0400 Original-Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2d6ff0422a2so13487791fa.2 for <70041@debbugs.gnu.org>; Thu, 28 Mar 2024 06:15:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711631745; x=1712236545; 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=J/+Qs1FsNtaxyyq4ku2O3RahmMRsiMJiVyj/zNfkW0I=; b=h4ZcdISXNJzhPOneA5Ar77VCz+9Z9PmFSAG7M5RmXrKQWH46wMG49DE9SqNo4V9jWW fsAYhMzm/O6PoHDq8PBwLcrBSE60LrCqeFfWnOG15V9faRkmn5RLPCyK9cRxWlom+jd1 O2+K7MmDP4fj3ktywl+c/RePyhYSocITK6txEwecEqnovNsJx+/y47pp7i9eHuYaN0MU +uoS6DlDiEoIlDUgqDRJhPPhT0BoBH4U+Iq1cabsxz+GsdAFoXs7+EVUBW5Q92rgt6GP sbfOFDwN2gIKq3LIROIqFn637fb+cGYjLxi/bl/Hu+JIfPWYGEToFWFh6nWBrHu2EpDj FPxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711631745; x=1712236545; 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=J/+Qs1FsNtaxyyq4ku2O3RahmMRsiMJiVyj/zNfkW0I=; b=jEoM/Ulo/x6tNZfDcyj2B6OsHeXZdsaAT1k05dQUmrBgTf1uzN0Y25wiXHrwg13kkz 4IRTZ/14mE2KMXR+RHXUrbczt+2bQyErL1YGa0O2qFptcjL+mCEImMc/4nxvo/bGDWwg S3cYOGU/2MIHUk/ckRZppCHoFfLbq2iMwQIb8uHKITVuLKxKTpbkqrhAq0rKtPafnzgg cTvCaTeLHPmm0kYFhftnUxeaZTQMgbAE3DO2z8kacqWUmUvVlqHsWG6QQKt8yHJwPBDi gLZxyGmpP09+0C0QWyhk1x4QBdqd8WR2zk5WmP86pfwSGFvMIV/74itGpLoE/FrjXUNP E3Kw== X-Forwarded-Encrypted: i=1; AJvYcCXaCZ/vT6S2zwDiKe2lnUxExYcFqFMDsifFwApn6zKxKGBfbnxMZ5+UwDvhktsSomfnMRAiGlqP5c4Io2jdvEeNHPbqRTc= X-Gm-Message-State: AOJu0YzKu/jHDJNqiMxyWsu+RXilpfmswO8B8JOvcKxXNOeFgq+fbshk BACu31z4aFaMlQ/SXjenO3yO+Vv8mw8BmIenhY7N7hVbofBTYV2kPdQVUJlRdr1o3+XdWLKzVVo 2P1BbrVRNYKZB88K4rFdd6sPO7g0= X-Google-Smtp-Source: AGHT+IGZrkKX79Ph/HnYy1faRL9rcl0InST4heUEDcPCVSdk5WqDZe8GjcCppXrSUEGbbLqCcpgyYAVUwop/o7jHkgM= X-Received: by 2002:a2e:a4b6:0:b0:2d2:b840:1c78 with SMTP id g22-20020a2ea4b6000000b002d2b8401c78mr2024378ljm.48.1711631744329; Thu, 28 Mar 2024 06:15:44 -0700 (PDT) In-Reply-To: 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:282226 Archived-At: --0000000000001b72510614b852bc Content-Type: text/plain; charset="UTF-8" Using the code below, I noticed it works the first time. emacs -q -mm -l test.el I do M-x save-buffers-kill-terminal then run emacs -q -mm -l test.el it has the described problem. If I repeat this sequence, it works then does not work in that order every time. (let ((shell-cmd "ls -la") (output-buffer "my-buf") (default-directory "/scpx:bangmyhead@192.168.0.46:~/") (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 "~/readme.org"))) note: the other window opens horizontally. On Thu, 28 Mar 2024 at 12:20, Deric Bytes wrote: > I have the same problem with lucid. > > On Thu, 28 Mar 2024 at 11:58, Deric Bytes wrote: > >> [Sorry if duplicate, just saw message in last email that I should reply >> to All] >> >> I have a reproducable example. >> >> - `mouse-autoselect-window' does not make a difference. >> - need a tilda in the address >> - need to be in full screen >> >> emacs -q -mm -l test.el >> >> >> (let ((shell-cmd "ls -la") >> (output-buffer "my-buf") >> (default-directory "/scpx:bangmyhead@192.168.0.46:~") >> (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"))) >> >> On Thu, 28 Mar 2024 at 11:50, Eli Zaretskii wrote: >> >>> [Please use Reply All to reply, to keep the bug tracker CC'ed.] >>> >>> > From: Deric Bytes >>> > Date: Thu, 28 Mar 2024 10:55:33 +0000 >>> > >>> > Eli, I tried with your code and I could not reproduce it. I tried my >>> code and could not reproduce it. I tried >>> > restarting emacs -q multiple times and I got the problem again whilst >>> tweaking but I can not create a case that >>> > reproduces every time. >>> > >>> > I always get it in my main config but that contains so much code and >>> the code was written when I was totally >>> > clueless and has been causing me problems for ages. I am happy to >>> build with something other than GTK and >>> > see if that fixes my main emacs config. What do you recommend? >>> >>> Sorry, I don't know what to recommend. You could try some other >>> toolkit, like Lucid, or maybe no toolkit at all. >>> >>> Martin, any ideas for how to reproduce this, or maybe what could be >>> the problem? >>> >> --0000000000001b72510614b852bc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Using the code below,=C2=A0

= I noticed it works the first time.

emacs -q -mm -l test.el

I do= M-x save-buffers-kill-terminal

then run

emacs -q -mm -l test.el

it has the described problem.

If I repeat this seque= nce, it works then does not work in that order every time.

(let ((shell-cmd "ls -= la")
=C2=A0 =C2=A0 =C2=A0 (output-buffer "my-buf")
=C2= =A0 =C2=A0 =C2=A0 (default-directory "/scpx:bangmyhead@192.168.0.46:~/= ")
=C2=A0 =C2=A0 =C2=A0 (process-name "my-proc"))
=C2= =A0 (start-file-process-shell-command
=C2=A0 =C2=A0process-name
=C2= =A0 =C2=A0(get-buffer-create output-buffer)
=C2=A0 =C2=A0shell-cmd)
= =C2=A0 (switch-to-buffer output-buffer)
=C2=A0 (with-current-buffer outp= ut-buffer
=C2=A0 =C2=A0 (goto-char (point-min))
=C2=A0 =C2=A0 (find-f= ile-other-window "~/readme.org"= )))


note: the other window opens ho= rizontally.

=
On Thu= , 28 Mar 2024 at 12:20, Deric Bytes <dericbytes@gmail.com> wrote:
I have the same problem with luci= d.

On Thu, 28 Mar 2024 at 11:58, Deric Bytes <dericbytes@gmail.com> wrote:
<= /div>
[Sorry if duplicate, just saw message in last email that I should reply t= o All]

I have a reprod= ucable example.

-=C2=A0 `m= ouse-autoselect-window' does not make a difference.
-=C2=A0 n= eed a tilda in the address
- need to be in full screen
=
emacs -q -mm -l test.el


<= div>=C2=A0 (let ((shell-cmd "ls -la")
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 (output-buffer "my-buf")
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 (default-directory "/scpx:bangmyhead@192.168.0.46:~")<= span>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (process-name "my-proc"))=C2=A0 =C2=A0 (start-file-process-shell-command
=C2=A0 =C2=A0 =C2=A0pro= cess-name
=C2=A0 =C2=A0 =C2=A0(get-buffer-create output-buffer)
=C2= =A0 =C2=A0 =C2=A0shell-cmd)
=C2=A0 =C2=A0 (switch-to-buffer output-buffe= r)
=C2=A0 =C2=A0 (with-current-buffer output-buffer
=C2=A0 =C2=A0 =C2= =A0 (goto-char (point-min))
=C2=A0 =C2=A0 =C2=A0 (find-file-other-window= "ooo")))

On Thu, 28 Mar 2024 at 11:50, Eli Zaretskii= <eliz@gnu.org>= wrote:
[Please = use Reply All to reply, to keep the bug tracker CC'ed.]

> From: Deric Bytes <dericbytes@gmail.com>
> Date: Thu, 28 Mar 2024 10:55:33 +0000
>
> Eli, I tried with your code and I could not reproduce it. I tried my c= ode and could not reproduce it. I tried
> restarting emacs -q multiple times and I got the problem again whilst = tweaking but I can not create a case that
> reproduces every time.
>
> I always get it in my main config but that contains so much code and t= he code was written when I was totally
> clueless and has been causing me problems for ages. I am happy to buil= d with something other than GTK and
> see if that fixes my main emacs config. What do you recommend?=C2=A0 <= br>
Sorry, I don't know what to recommend.=C2=A0 You could try some other toolkit, like Lucid, or maybe no toolkit at all.

Martin, any ideas for how to reproduce this, or maybe what could be
the problem?
--0000000000001b72510614b852bc--