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 #8 received at 19684 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Keith David Bershatsky <esq <at> lawlist.com>, 19684 <at> debbugs.gnu.org
Subject: Re: bug#19684: 25.0.50;
 `this-command` is set to `nil` before `window-scroll-functions`
 hook runs.
Date: Sun, 25 Jan 2015 11:38:51 +0100
> To the extent that a user wishes to use the value of `this-command`
> within a function attached to the `window-scroll-functions` hook, a
> workaround is needed because the default value is `nil`.  In other
> words, something at the C source code level is setting the value to
> `nil` before the `window-scroll-functions` hook runs.

Couldn't you use `last-command' here?

martin




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.