From: martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Deric Bytes <dericbytes@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, 70041@debbugs.gnu.org
Subject: bug#70041: 30.0.50; mouse-autoselect-window causes unexpected scroll
Date: Sat, 30 Mar 2024 10:37:40 +0100 [thread overview]
Message-ID: <050c880c-a85f-4650-9b4b-140fb72b7067@gmx.at> (raw)
In-Reply-To: <CAN1Bi_FuugQd-JiYJ1SrGWgo5wD6bT4ZJ7kqpE2_KnN_yj5EaQ@mail.gmail.com>
> 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
next prev parent reply other threads:[~2024-03-30 9:37 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
[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 [this message]
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=050c880c-a85f-4650-9b4b-140fb72b7067@gmx.at \
--to=bug-gnu-emacs@gnu.org \
--cc=70041@debbugs.gnu.org \
--cc=dericbytes@gmail.com \
--cc=eliz@gnu.org \
--cc=rudalics@gmx.at \
/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.