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: Update `minibuffer-line' on buffer switches Date: Sat, 27 Jun 2015 16:22:06 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1435414942 29084 80.91.229.3 (27 Jun 2015 14:22:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Jun 2015 14:22:22 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 27 16:22:22 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 1Z8qzt-0001uJ-K2 for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Jun 2015 16:22:21 +0200 Original-Received: from localhost ([::1]:35814 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8qzs-0007k3-Fz for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Jun 2015 10:22:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8qzi-0007jn-6Z for help-gnu-emacs@gnu.org; Sat, 27 Jun 2015 10:22:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z8qzh-0006un-7M for help-gnu-emacs@gnu.org; Sat, 27 Jun 2015 10:22:10 -0400 Original-Received: from mail-la0-x22d.google.com ([2a00:1450:4010:c03::22d]:34553) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8qzg-0006ti-VV for help-gnu-emacs@gnu.org; Sat, 27 Jun 2015 10:22:09 -0400 Original-Received: by lagx9 with SMTP id x9so83612824lag.1 for ; Sat, 27 Jun 2015 07:22:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=i1S+UlpXwfaFdguj+xj+7fZFICb6Oa/L1vPGZFo1eIo=; b=tIUU0wb/xDxM6w/bTULC/Lkhp7BibEMFfV7y5/3W0sCQFUVIVHHez4wU6nqHT5Y/Xt s0+rw0ormagMCuLgG5mPp/WX67SpHAtsNOOBhnM4H849pxP2APQUi36thqPhOgfzuq5g JstTwLWMR1bw33WRAwj2q0iDovKg86oTwFUuZhX7JshQQgNGkatUxdzI40flaP6StYma VM+te37MBqMf90wppMETKAQbpudo75zUYqf9c/loEse3GBHBjxoBZEbkNddK0SR+Isyk KNNUf6tsFwPFEG4amfuX6Vd8kjNTBfFGK/Bp9zT+UIaK0/YnR4YwiLpT1N874v15oJd2 NmyA== X-Received: by 10.112.142.232 with SMTP id rz8mr6020006lbb.74.1435414927043; Sat, 27 Jun 2015 07:22:07 -0700 (PDT) Original-Received: by 10.112.36.103 with HTTP; Sat, 27 Jun 2015 07:22:06 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22d 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:105223 Archived-At: Hello, Recently Stefan has introduced the `minibuffer-line' package. I find it very handy, especially for displaying the full path to either the `default-directory' or `buffer-file-name'. Previously, I used `frame-title-format' for this like so: (setq-default frame-title-format '((:eval (list (user-login-name) "@" (system-name) ":" (abbreviate-file-name (or (buffer-file-name) (file-name-as-directory default-directory))))))) and it behaved very well since when one switches buffers, the title is automatically updated. The same is true for `mode-line-format'. Both variables come from the C source code. I'm not sure how automatic updating is implemented for those, but obviously, to make this work with `minibuffer-line', I'd have to attach `minibuffer-line--update' to some hook which runs when buffers are switched. Is there such a hook? Are there alternative implementations for this? Thanks. Kind regards, Alexander