From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Call CMD w/ keybinding VS execute-extended-command: redisplay behaviour Date: Sun, 25 Mar 2018 18:35:10 +0300 Message-ID: <837eq0gocx.fsf@gnu.org> References: <877eq05wll.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1521992005 16919 195.159.176.226 (25 Mar 2018 15:33:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Mar 2018 15:33:25 +0000 (UTC) Cc: charles@aurox.ch, emacs-devel@gnu.org To: Tino Calancha Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 25 17:33:20 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f07e1-0004Fu-O9 for ged-emacs-devel@m.gmane.org; Sun, 25 Mar 2018 17:33:18 +0200 Original-Received: from localhost ([::1]:51628 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f07g4-0007H0-W7 for ged-emacs-devel@m.gmane.org; Sun, 25 Mar 2018 11:35:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f07fr-0007Dz-MZ for emacs-devel@gnu.org; Sun, 25 Mar 2018 11:35:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f07fl-0006My-8B for emacs-devel@gnu.org; Sun, 25 Mar 2018 11:35:10 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39728) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f07fl-0006Mo-4Q; Sun, 25 Mar 2018 11:35:05 -0400 Original-Received: from [176.228.60.248] (port=1777 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1f07fk-00024D-LP; Sun, 25 Mar 2018 11:35:04 -0400 In-reply-to: (message from Tino Calancha on Sun, 25 Mar 2018 19:00:47 +0900) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:224004 Archived-At: > From: Tino Calancha > Date: Sun, 25 Mar 2018 19:00:47 +0900 > Cc: emacs-devel@gnu.org > > 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.