[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: defadvice bug or something else?
From: |
Stefan Monnier |
Subject: |
Re: defadvice bug or something else? |
Date: |
Wed, 28 Apr 2021 22:07:09 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> `(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