[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#70386: 30.0.50; (recenter 0 t) does not put point on top of the wind
From: |
Ihor Radchenko |
Subject: |
bug#70386: 30.0.50; (recenter 0 t) does not put point on top of the window |
Date: |
Sun, 19 May 2024 13:49:02 +0000 |
Eli Zaretskii <eliz@gnu.org> writes:
>> 1. emacs -Q
>> 2. Insert
>> (progn
>> (require 'pixel-scroll)
>> (pixel-scroll-precision-interpolate
>> (* -1 (line-pixel-height)) nil 1)
>> (recenter 0 t))
>> 3. Move point to "progn"
>> 4. M-x eval-buffer
>
> Still unpredictable. Sometimes point ends up on progn with
> window-start being 1 as at the beginning, sometimes I see the
> "recenter" line at the top line with point at EOB (i.e. below that
> line).
Ok. I can see what might be going on here - M-x eval-buffer
moves the point before evaluation, causing this weird behavior.
If I convert my recipe to a defun, there is no problem.
I am still seeing weirdness on my side though with Emacs entering a
state when calling M-: (recenter -1 t) does nothing even when the buffer
should be scrolled (point not near the top of buffer). But I am unable
to get a reliable reproducer. Feel free to close this bug report.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
- bug#70386: 30.0.50; (recenter 0 t) does not put point on top of the window, (continued)
- bug#70386: 30.0.50; (recenter 0 t) does not put point on top of the window, Ihor Radchenko, 2024/05/12
- bug#70386: 30.0.50; (recenter 0 t) does not put point on top of the window, Eli Zaretskii, 2024/05/12
- bug#70386: 30.0.50; (recenter 0 t) does not put point on top of the window, Ihor Radchenko, 2024/05/12
- bug#70386: 30.0.50; (recenter 0 t) does not put point on top of the window, Eli Zaretskii, 2024/05/12
- bug#70386: 30.0.50; (recenter 0 t) does not put point on top of the window, Ihor Radchenko, 2024/05/12
- bug#70386: 30.0.50; (recenter 0 t) does not put point on top of the window, Eli Zaretskii, 2024/05/12
- bug#70386: 30.0.50; (recenter 0 t) does not put point on top of the window, Ihor Radchenko, 2024/05/12
- bug#70386: 30.0.50; (recenter 0 t) does not put point on top of the window, Eli Zaretskii, 2024/05/12
- bug#70386: 30.0.50; (recenter 0 t) does not put point on top of the window, Ihor Radchenko, 2024/05/12
- bug#70386: 30.0.50; (recenter 0 t) does not put point on top of the window, Eli Zaretskii, 2024/05/12
- bug#70386: 30.0.50; (recenter 0 t) does not put point on top of the window,
Ihor Radchenko <=
- bug#70386: 30.0.50; (recenter 0 t) does not put point on top of the window, Eli Zaretskii, 2024/05/19
- bug#70386: 30.0.50; (recenter 0 t) does not put point on top of the window, Eli Zaretskii, 2024/05/23
- bug#70386: 30.0.50; (recenter 0 t) does not put point on top of the window, Po Lu, 2024/05/23