From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.devel Subject: Re: Call CMD w/ keybinding VS execute-extended-command: redisplay behaviour Date: Mon, 26 Mar 2018 15:27:28 +0900 (JST) Message-ID: References: <877eq05wll.fsf@gmail.com> <837eq0gocx.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Trace: blaine.gmane.org 1522045550 10088 195.159.176.226 (26 Mar 2018 06:25:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2018 06:25:50 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: emacs-devel@gnu.org, charles@aurox.ch, Tino Calancha To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 26 08:25:46 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 1f0LZe-0002Ry-Ux for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2018 08:25:43 +0200 Original-Received: from localhost ([::1]:54835 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0Lbg-00080J-I6 for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2018 02:27:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0LbW-00080C-EP for emacs-devel@gnu.org; Mon, 26 Mar 2018 02:27:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0LbV-0001kY-KW for emacs-devel@gnu.org; Mon, 26 Mar 2018 02:27:38 -0400 Original-Received: from mail-io0-x231.google.com ([2607:f8b0:4001:c06::231]:40864) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f0LbR-0001jV-QH; Mon, 26 Mar 2018 02:27:33 -0400 Original-Received: by mail-io0-x231.google.com with SMTP id e79so21807310ioi.7; Sun, 25 Mar 2018 23:27:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=Bh79ve/Af2nUDLlZM1os5P/M16t3Gl1DkQrxRvUB1f8=; b=AN6aSAywMi38ldlitXsva32T2aPUOtzqjk/WOyBjmTFlPIZf0ObedzBekEMm3ukuy/ SdgEMpIztPfAwg+VmW44vDlI4lbnkhyI+fN6m/ahVNSmLs4Ceb+pQaYSmlxq50h3YO1h VA2GZd/LJPeC2c9GDhJQmxJ1U1VanKl3o8VQ2MQAie/xhilHwtLTHyuj7dWMdLJxFfF4 GdxijyxOxvIJKWH+/WVYCkNN2F/cA1UuYC5fRn/w1H0eEjrCaToVEA5+QlO/xQjbfA+E eOx2I5beMeGTPleSTcVIseUTj5R+95Fok0BrGUDxAJTbG8NNOC6oeyOCCNZ9dOr9Z9Bi b0uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=Bh79ve/Af2nUDLlZM1os5P/M16t3Gl1DkQrxRvUB1f8=; b=Igp/A9MKvpZd4EL5zxk4x6SvqNOnR5FU941uBttnZDLa9rXOebap67a+7y0KRNkpbR 7uYZvZC3cIwtvt6Fpy5o9Lr8zRZSyIC+9ItrQgmI8QYmyM6EJcn2LF4I8QAdZpJiOa4H VkaHtUx5zXzHHISWdRTfKwTMhtFexVgJVfCrzU+7i2rGk2+7uhoNivdoU8SOaYA9ydqa f5suUUa4FDM3C1R5shZ+skj92zLzE84O2wcCMZeZ4/M6EDSC8bKl9VfX2sVLm7VfL2ai sqFhcD3ks/0z2D/mrBr+LkeE3ne/iHJnf8w2Wk52Xt6HfoHwnkIyOsl0YOOSFbK4ARj8 UIsw== X-Gm-Message-State: AElRT7HC8M29pFFmEgSlxDRpLOsjYE0XoBGoY6NtWx9VkJStkW57iriA 4hqya7aUa1oYzsZ+9MtAUWEhH2Lz X-Google-Smtp-Source: AG47ELvL4ouTvJ3Uu+5plCQBCE5jGZG1x1KbSuoWJH3FzogaMSrYVXMzxtF3oAUM1fHLVfIH/63iGQ== X-Received: by 10.107.178.70 with SMTP id b67mr36884319iof.186.1522045653050; Sun, 25 Mar 2018 23:27:33 -0700 (PDT) Original-Received: from calancha-pc (121.7.236.133.dy.bbexcite.jp. [133.236.7.121]) by smtp.gmail.com with ESMTPSA id v67-v6sm2245363itg.26.2018.03.25.23.27.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Mar 2018 23:27:31 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: <837eq0gocx.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::231 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:224026 Archived-At: On Sun, 25 Mar 2018, Eli Zaretskii wrote: >> From: Tino Calancha >> Date: Sun, 25 Mar 2018 19:00:47 +0900 >> Cc: emacs-devel@gnu.org >> >> 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. I see, totally consistent with the observations. Thank you! On Sun, 25 Mar 2018, Charles A. Roelli wrote: > Did you try force-mode-line-update? Excellent! Using `force-mode-line-update' I get updated the header line also when I use the `r' keybinding :-) I will use this in my implementation. Thank you very much!