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 18:31:25 +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 1435595500 1756 80.91.229.3 (29 Jun 2015 16:31:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Jun 2015 16:31:40 +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 Mon Jun 29 18:31:39 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 1Z9by7-0001Z2-4u for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Jun 2015 18:31:39 +0200 Original-Received: from localhost ([::1]:43102 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9by6-0000Ub-EA for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Jun 2015 12:31:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9bxx-0000UI-5p for help-gnu-emacs@gnu.org; Mon, 29 Jun 2015 12:31:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9bxv-0003Me-2K for help-gnu-emacs@gnu.org; Mon, 29 Jun 2015 12:31:29 -0400 Original-Received: from mail-la0-x236.google.com ([2a00:1450:4010:c03::236]:34181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9bxu-0003MN-PN for help-gnu-emacs@gnu.org; Mon, 29 Jun 2015 12:31:26 -0400 Original-Received: by lagx9 with SMTP id x9so132302366lag.1 for ; Mon, 29 Jun 2015 09:31:26 -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=vSlNcVqNrHaKieP2JfYtm6kLHabXTBnnEqEuNLGbDQA=; b=edstLMFCyv0EyOUgdqgDlGqXCvfmrMAvN0QvEsJ0NJBR1X9gS4D61WSCPje+ZgN5M6 L4/s+8qabYfx9F3TD+xLQOK+92vRfSB5NiscJSDRr4k00PsmpFEUkSXQ26aCtWpuWbOG zgNjZG2+AXcx4Wr+C3tMG6jVZzGRJjL182Cv9OoHUppjUyt/G9J9xtyiur1fSjbzdSDG DSvPlsQBZdCPLyGmfXapsY2o/e6rTfZNj+Ae3BN/6+l9qSY0UroBWdTJ0KNh/GYAV0nC OYHcab0EIC7bSeKYqqgjOM2IMRYb3f+aGN3gX1Nk50yPVHCiUihJrDDHKix/N8zvsKEb IYrg== X-Received: by 10.112.126.101 with SMTP id mx5mr15269056lbb.35.1435595485962; Mon, 29 Jun 2015 09:31:25 -0700 (PDT) Original-Received: by 10.112.36.103 with HTTP; Mon, 29 Jun 2015 09:31:25 -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::236 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:105284 Archived-At: Would `window-configuration-change-hook' work in case when a buffer is switched in-place (i.e. all windows stay intact and the selected window is not changed but only the displayed buffer inside this window is switched)? Adding a hook to `select-window' could work, but could be a bit tricky > since this function is sometimes used internally at places which don't > correspond to something which the end-user would consider as relevant. This again seems not to take into account the above scenario. In other words, really the buffer switching event is needed (regardless of what's going on with windows). Not sure how often that would be useful. =E2=80=8BTo be honest it's not the first time that I find myself in a situa= tion when I simply need to hook the event of buffer (focus) switching and/or window (focus) switching=E2=80=8B, etc. Regards, Alexander