From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.help Subject: Re: Update `minibuffer-line' on buffer switches Date: Sun, 28 Jun 2015 19:19:41 +0200 Message-ID: References: <87y4j517j4.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1435511998 23038 80.91.229.3 (28 Jun 2015 17:19:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Jun 2015 17:19:58 +0000 (UTC) Cc: help-gnu-emacs To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 28 19:19:57 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z9GFI-00075l-J0 for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Jun 2015 19:19:56 +0200 Original-Received: from localhost ([::1]:39519 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9GFH-0004KM-Rn for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Jun 2015 13:19:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9GF6-0004KH-PH for help-gnu-emacs@gnu.org; Sun, 28 Jun 2015 13:19:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9GF5-0003aG-TW for help-gnu-emacs@gnu.org; Sun, 28 Jun 2015 13:19:44 -0400 Original-Received: from mail-la0-x22f.google.com ([2a00:1450:4010:c03::22f]:35128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9GF5-0003XS-Kt for help-gnu-emacs@gnu.org; Sun, 28 Jun 2015 13:19:43 -0400 Original-Received: by lagh6 with SMTP id h6so30018136lag.2 for ; Sun, 28 Jun 2015 10:19:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Oa3R424k/3ATTnXqgeEylrKADaCpie3NBzj4WysGYN8=; b=Wy9iqU3XoQWYwcNQekUl2q/V1RwMah4x1L1gPSfpUE2h/QAIdZZhaLFqk+YfGQWCPn UPXMbs91XiDFfPHuzU3addUE8PjnXR5YdkpcAnpJLcEBfCgOZ9qD0LRtLvOjIE4MTF4g yvALL/nmq9thRP6/51a0JzktJsfuUY9DQnRtjR5BameVw0oVHl9D+P9/d6jv71nowh/K P+7S+LkLTNFJejFK7ha2d22he2744taLZRfINLc/ofUtnahHRFOTr3aXUoC17voiZxph GNXTwiRa86n3EjXjwJOdGpotYFvsewEvhiiXIQjg5n+KG3xirRNxFd2d1hOEIi3AkAgm QNyg== X-Received: by 10.112.120.200 with SMTP id le8mr5184318lbb.66.1435511981181; Sun, 28 Jun 2015 10:19:41 -0700 (PDT) Original-Received: by 10.112.36.103 with HTTP; Sun, 28 Jun 2015 10:19:41 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22f X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105261 Archived-At: On Sat, Jun 27, 2015 at 11:59 PM, Stefan Monnier wrote: > > The mode-line etc. are refreshed as part of redisplay. That can't be > > controlled from Lisp. > > Actually, you could do: > > (add-function :after pre-redisplay-function #'minibuffer-line--update) > > which should re-compute the minibuffer-line before every redisplay. > > > Stefan > > > =E2=80=8BThanks, Stefan, but I keep receiving Error during redisplay: (#[128 "\300\302=02\"\300\301=03\"\210\207" [apply minibuffer-line--update #[128 "\300\301=02\"\210\300\302=02\"\207" [apply redisplay--pre-redisplay-functions ignore nil] 4 nil nil] nil] 5 nil nil] nil) signaled (wrong-number-of-arguments (0 . 0) 1) [30 times] =E2=80=8B Any ideas? Regards, Alexander