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: Mon, 29 Jun 2015 21:50:12 +0200 Message-ID: References: <87y4j517j4.fsf@web.de> <83ioa64fh6.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1435607430 4298 80.91.229.3 (29 Jun 2015 19:50:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Jun 2015 19:50:30 +0000 (UTC) Cc: michael_heerdegen@web.de, rudalics@gmx.at, Stefan Monnier To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 29 21:50:29 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 1Z9f4W-0004ej-1M for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Jun 2015 21:50:28 +0200 Original-Received: from localhost ([::1]:43770 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9f4V-0004C4-A9 for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Jun 2015 15:50:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9f4K-0004Bx-HD for help-gnu-emacs@gnu.org; Mon, 29 Jun 2015 15:50:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9f4J-0008Cx-9v for help-gnu-emacs@gnu.org; Mon, 29 Jun 2015 15:50:16 -0400 Original-Received: from mail-la0-x230.google.com ([2a00:1450:4010:c03::230]:35235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9f4H-000870-Q4; Mon, 29 Jun 2015 15:50:13 -0400 Original-Received: by lagh6 with SMTP id h6so66609030lag.2; Mon, 29 Jun 2015 12:50:12 -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=0w3LaLIFQVhA54yNTq2Pug5q2MOSBefYBhkho4LAhq0=; b=Yk2VYjktS8kKe4F+lsoR4C0J+mwWYlAH/gbmhV+mHBr3ySXH6CqF+v7FEPaqtVwnLL bMzKINhi8cKSRnGYEZihKzk515W1Bxkib77e1Ufb7nVqkTjamRmBxpc3Hh15uAYQ6oGN q+1veFHuLX9qUgEEc+urGU1x8p0MG8CoCXPWu+8jVwT212kU+2hYYECBodJnlAd082c7 +l4BAIxA1yId3U104+kjGLVtxZkvDCL1J16gGF+TewA7f9MhGJhaahzoDCH1R2IEjw9m OwnXa17GOH+zDJ9UtO+0aPViCkWrV5G1uch0ciWAXbCfJce+SWk4xJ5bfU8R6zhnU8tS f9zw== X-Received: by 10.112.171.68 with SMTP id as4mr15880633lbc.64.1435607412823; Mon, 29 Jun 2015 12:50:12 -0700 (PDT) Original-Received: by 10.112.36.103 with HTTP; Mon, 29 Jun 2015 12:50:12 -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::230 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:105296 Archived-At: After some trial I've found out that the comprehensive solution which takes into account both window and buffer switching is a combination of two hooks: (add-hook 'buffer-list-update-hook #'minibuffer-line--update) (add-hook 'window-configuration-change-hook #'minibuffer-line--update) Hope this helps somebody in future. Thanks a lot to everybody who participated. Kind regards, Alexander