[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#70041: 30.0.50; mouse-autoselect-window causes unexpected scroll
From: |
martin rudalics |
Subject: |
bug#70041: 30.0.50; mouse-autoselect-window causes unexpected scroll |
Date: |
Sat, 30 Mar 2024 10:37:40 +0100 |
User-agent: |
Mozilla Thunderbird |
> 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
- bug#70041: 30.0.50; mouse-autoselect-window causes unexpected scroll, (continued)
- bug#70041: 30.0.50; mouse-autoselect-window causes unexpected scroll, Eli Zaretskii, 2024/03/28
- Message not available
- bug#70041: 30.0.50; mouse-autoselect-window causes unexpected scroll, Eli Zaretskii, 2024/03/28
- bug#70041: 30.0.50; mouse-autoselect-window causes unexpected scroll, Deric Bytes, 2024/03/28
- bug#70041: 30.0.50; mouse-autoselect-window causes unexpected scroll, Deric Bytes, 2024/03/28
- bug#70041: 30.0.50; mouse-autoselect-window causes unexpected scroll, Deric Bytes, 2024/03/28
- bug#70041: 30.0.50; mouse-autoselect-window causes unexpected scroll, Deric Bytes, 2024/03/28
- bug#70041: 30.0.50; mouse-autoselect-window causes unexpected scroll, Deric Bytes, 2024/03/28
- bug#70041: 30.0.50; mouse-autoselect-window causes unexpected scroll, martin rudalics, 2024/03/29
- bug#70041: 30.0.50; mouse-autoselect-window causes unexpected scroll, Deric Bytes, 2024/03/29
- bug#70041: 30.0.50; mouse-autoselect-window causes unexpected scroll, Deric Bytes, 2024/03/29
- bug#70041: 30.0.50; mouse-autoselect-window causes unexpected scroll,
martin rudalics <=