GNU bug report logs -
#50042
26.3; Post-command hooks slow with M-x commands
Previous Next
Reported by: sk <at> nomistech.com
Date: Fri, 13 Aug 2021 11:54:01 UTC
Severity: normal
Found in version 26.3
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #17 received at 50042 <at> debbugs.gnu.org (full text, mbox):
>> `execute-extended-command' ends with
>>
>> (when binding
>> (with-temp-message
>> (format-message "You can run the command `%s' with %s"
>> function
>> (if (stringp binding)
>> (concat "M-x " binding " RET")
>> (key-description binding)))
>> (sit-for (if (numberp suggest-key-bindings)
>> suggest-key-bindings
>> 2))))))))
Indeed this `sit-for` is a problem because it delays running the
`post-command-hook`.
[ We have a few other such problems, tho I sadly didn't bother to keep
track of them. ]
> Stefan, I forgot to put you on the CCs here -- I wondered whether you
> had any ideas here. I think lifting this out of
> `execute-extended-command' should be possible -- either by doing
> something a la
>
> (run-at-time 0 nil (lambda ()
> (with-temp-message "The binding is foo"
> (sit-for 1))))
>
> or making `execute-extended-command' set a variable and do the messaging
> from the "command loop" after running post-command-hook.
Using a timer might be a good option, indeed.
Stefan
This bug report was last modified 3 years and 332 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.