all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Deric Bytes <dericbytes@gmail.com>
Cc: 70041@debbugs.gnu.org
Subject: bug#70041: 30.0.50; mouse-autoselect-window causes unexpected scroll
Date: Thu, 28 Mar 2024 08:53:45 +0200	[thread overview]
Message-ID: <86r0fuhmo6.fsf@gnu.org> (raw)
In-Reply-To: <CAN1Bi_FFj5wrH7gqxwGa2D7JXgOFugSojg_gO7nf27iuvDGf_w@mail.gmail.com> (message from Deric Bytes on Wed, 27 Mar 2024 23:16:26 +0000)

> From: Deric Bytes <dericbytes@gmail.com>
> 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 <REDACTED>)
	(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?





  reply	other threads:[~2024-03-28  6:53 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-27 23:16 bug#70041: 30.0.50; mouse-autoselect-window causes unexpected scroll Deric Bytes
2024-03-28  6:53 ` Eli Zaretskii [this message]
     [not found]   ` <CAN1Bi_Hot8S6oauSyQ8saFSGJ7O1cSKmYopUHwT5iMeqqAQ7SA@mail.gmail.com>
2024-03-28 11:50     ` Eli Zaretskii
2024-03-28 11:58       ` Deric Bytes
2024-03-28 12:20         ` Deric Bytes
2024-03-28 13:15           ` Deric Bytes
2024-03-28 14:40             ` Deric Bytes
2024-03-28 14:44               ` Deric Bytes
2024-03-29  8:43       ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-29 16:52         ` Deric Bytes
2024-03-29 17:47           ` Deric Bytes
2024-03-30  9:37           ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-04-02 19:30             ` Deric Bytes
2024-04-06 10:23               ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86r0fuhmo6.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=70041@debbugs.gnu.org \
    --cc=dericbytes@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.