From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: charles@aurox.ch (Charles A. Roelli) Newsgroups: gmane.emacs.devel Subject: Re: Call CMD w/ keybinding VS execute-extended-command: redisplay behaviour Date: Sun, 25 Mar 2018 12:19:38 +0200 Message-ID: References: <877eq05wll.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1521972317 32399 195.159.176.226 (25 Mar 2018 10:05:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Mar 2018 10:05:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tino Calancha Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 25 12:05:12 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 1f02WW-0008JK-K1 for ged-emacs-devel@m.gmane.org; Sun, 25 Mar 2018 12:05:12 +0200 Original-Received: from localhost ([::1]:50609 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f02YY-0001bE-66 for ged-emacs-devel@m.gmane.org; Sun, 25 Mar 2018 06:07:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f02Xw-0001ax-9T for emacs-devel@gnu.org; Sun, 25 Mar 2018 06:06:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f02Xt-0007Nf-54 for emacs-devel@gnu.org; Sun, 25 Mar 2018 06:06:40 -0400 Original-Received: from [2a03:2040:2:1b::1] (port=50283 helo=sinyavsky.aurox.ch) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f02Xs-0007Mn-UA for emacs-devel@gnu.org; Sun, 25 Mar 2018 06:06:37 -0400 Original-Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id 453D2226DE for ; Sun, 25 Mar 2018 10:07:30 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= content-transfer-encoding:content-type:content-type:mime-version :references:subject:subject:in-reply-to:to:from:from:message-id :date:date; s=dkim; t=1521972449; x=1522836450; bh=2F0HNFCyDYHJb qULuc63uT2YMa0AzVFLBQv2B6/j9Ps=; b=CJ1FSSiJDC8ZgqTQ7vhkdDn31SDUZ k1v74Lk0bG8+gm08w/e6s3VOF5xFabKej5R+yqxHDFaizsuUQsfX9y0L/HklYmZv GkTcFp8iw0O4XYtpTUq648SbSzv3pDMea1VsUNYyDp1Dn+F5KV2mzJrylpLZCxIP E3hD+bAvpiM8cU= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Original-Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 17hijPtsVIJE for ; Sun, 25 Mar 2018 10:07:29 +0000 (UTC) Original-Received: from gray (202.100.1.85.dynamic.wline.res.cust.swisscom.ch [85.1.100.202]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 7ED73226CD; Sun, 25 Mar 2018 10:07:29 +0000 (UTC) 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: 2a03:2040:2:1b::1 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:223995 Archived-At: > From: Tino Calancha > Date: Sun, 25 Mar 2018 19:00:47 +0900 > > 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 :-( Hm, that's weird. Did you try force-mode-line-update? force-mode-line-update is a built-in function in =E2=80=98src/buffer.c=E2= =80=99. (force-mode-line-update &optional ALL) Force redisplay of the current buffer=E2=80=99s mode line and header line= . With optional non-nil ALL, force redisplay of all mode lines and header lines. This function also forces recomputation of the menu bar menus and the frame title.