emacs-devel
[Top][All Lists]
Advanced

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

Re: Call CMD w/ keybinding VS execute-extended-command: redisplay behavi


From: Eli Zaretskii
Subject: Re: Call CMD w/ keybinding VS execute-extended-command: redisplay behaviour
Date: Sun, 25 Mar 2018 18:35:10 +0300

> From: Tino Calancha <address@hidden>
> Date: Sun, 25 Mar 2018 19:00:47 +0900
> Cc: address@hidden
> 
> On 03/25/2018 07:09 PM, Charles A. Roelli wrote:
> > M-x (`execute-extended-command') calls sit-for, which calls redisplay,
> > which probably updates the header line.
> Thank you that's sounds like a god explanation for the different behaviour.
> 
> What still puzzle me is that I manually call `redisplay' at the end of
> `foo-update-friend', but I still don't get a redisplay when using the
> keybinding :-(

That's because the call to 'redisplay' in sit-for is not the reason
you get a redisplay when you type "M-x SOMETHING RET".  If you do that
slowly, you should see that the screen is redrawn as soon as you type
"M-x".  This happens because execute-extended-command reads from the
minibuffer, which enters recursive-editing, and that performs a
thorough redipslay.



reply via email to

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