GNU bug report logs - #19684
25.0.50; `this-command` is set to `nil` before `window-scroll-functions` hook runs.

Previous Next

Package: emacs;

Reported by: Keith David Bershatsky <esq <at> lawlist.com>

Date: Sun, 25 Jan 2015 07:21:02 UTC

Severity: normal

Tags: notabug

Found in version 25.0.50

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #24 received at 19684-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Keith David Bershatsky <esq <at> lawlist.com>, 19684-done <at> debbugs.gnu.org
Subject: Re: bug#19684: 25.0.50; `this-command` is set to `nil` before
 `window-scroll-functions` hook runs.
Date: Tue, 1 Oct 2019 22:16:57 +0200
Stefan Monnier <monnier <at> IRO.UMontreal.CA> writes:

> tags 19684 notabug
> thanks
>
>> 1.  Expressly call `redisplay` at the tail end of the series of
>>     functions attached to the `post-command-hook`.
>>     Calling `redisplay` somehow prevents `this-command` from being
>>     reset to `nil` and the `window-scroll-functions` hook can then
>>     take advantage of the existing value of `this-command`.
>
> It's not that calling `redisplay' prevents it.  It's that the normal
> redisplay is run later (potentially much later if there are other things
> pending), at a point which is not directly connected with the command,
> hence this-command is not set any more because we're really not in the
> process of running that command any more.

This was already tagged notabug; I'm now also closing it.

Best regards,
Stefan Kangas




This bug report was last modified 5 years and 294 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.