emacs-devel
[Top][All Lists]
Advanced

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

Re: defadvice bug or something else?


From: T.V Raman
Subject: Re: defadvice bug or something else?
Date: Wed, 28 Apr 2021 20:15:40 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)


Thanks Tim for posting the repro case, and thanks Stefan for the pointer
to the optional 'update arg to window -end -- this fixes the bug in
emacspeak that Tim reported recently.


Stefan Monnier <monnier@iro.umontreal.ca> writes:

>>   `(defadvice ,f (after emacspeak pre act comp)
>>      (message "scroll advice: start = %d end = %d diff = %d"
>>               (window-start)
>>               (window-end)
>>               (- (window-end) (window-start))))))
>
> I think this may return outdated values for `window-end` because it is
> run before the window end position has been recomputed by redisplay.
> If that's not what you want, then you need to pass non-nil value for the
> `update` argument.
>
>
>         Stefan
>
>

-- 

Thanks,

--Raman
?7?4 Id: kg:/m/0285kf1  ?0?8



reply via email to

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