bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#56008: 29.0.50; image-mode buffer scrolled down automatically


From: Visuwesh
Subject: bug#56008: 29.0.50; image-mode buffer scrolled down automatically
Date: Thu, 16 Jun 2022 22:25:05 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

[வியாழன் ஜூன் 16, 2022 18:49] Eli Zaretskii wrote:

>> From: Visuwesh <visuweshm@gmail.com>
>> Cc: Eli Zaretskii <eliz@gnu.org>,  56008@debbugs.gnu.org
>> Date: Thu, 16 Jun 2022 19:44:13 +0530
>> 
>> When I tried to dig around in ement.el's source code, I thought it was
>> `save-window-excursion' but that turned out not to be the case AFAIU.
>
> What do you mean by "it was `save-window-excursion'"? what is "it" in
> this case?

I thought the source of the random, unwarranted scrolling could be
`save-window-excursion' since it did come with the following warning,

    BEWARE: Most uses of this macro introduce bugs.
    E.g. it should not be used to try and prevent some code from opening
    a new window, since that window may sometimes appear in another frame,
    in which case ‘save-window-excursion’ cannot help.

>  And how did you see that this is not the case?

Sorry, but it is close to a year since I looked at the source code.  All
I remember is being annoyed by the bug despite removing the
`save-window-excursion' bit willy-nilly.

[ This was all in ement.el's source code if I wasn't clear, BTW.  ]





reply via email to

[Prev in Thread] Current Thread [Next in Thread]