From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Random832 Newsgroups: gmane.emacs.help Subject: Re: Question on frame title Date: Fri, 16 Oct 2015 09:35:27 -0400 Message-ID: <87io677x7k.fsf@fastmail.com> References: <87y4f4hwer.fsf@fastmail.com> <6070a8cb-fb0f-4986-836c-296b9b4fac5b@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445002596 19359 80.91.229.3 (16 Oct 2015 13:36:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Oct 2015 13:36:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 16 15:36:28 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 1Zn5BF-0002Su-0I for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Oct 2015 15:36:21 +0200 Original-Received: from localhost ([::1]:53679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn5BE-0001TV-4X for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Oct 2015 09:36:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn5At-0001R2-JJ for help-gnu-emacs@gnu.org; Fri, 16 Oct 2015 09:36:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zn5Ap-0005ga-Mk for help-gnu-emacs@gnu.org; Fri, 16 Oct 2015 09:35:59 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:56020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn5Ap-0005c7-Eh for help-gnu-emacs@gnu.org; Fri, 16 Oct 2015 09:35:55 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zn5Am-000220-QS for help-gnu-emacs@gnu.org; Fri, 16 Oct 2015 15:35:52 +0200 Original-Received: from c-68-39-146-59.hsd1.in.comcast.net ([68.39.146.59]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Oct 2015 15:35:52 +0200 Original-Received: from random832 by c-68-39-146-59.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Oct 2015 15:35:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-68-39-146-59.hsd1.in.comcast.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:jXm1gz+k6taspzlWx4YGeFxQK8k= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:107677 Archived-At: Benny Sum writes: > Yes, it is very slow. How do I get the value in a buffer-local > variable? This hasn't been tested at all, but maybe something like this: (defvar buffer-frame-title-suffix "") (make-variable-buffer-local 'buffer-frame-title-suffix) (setq frame-title-format '("%b" buffer-frame-title-suffix)) (defun do-run-info_data () (setq buffer-frame-title-suffix (if (stringp (buffer-file-name)) (concat " " (shell-command-to-string (concat "info_data " (shell-quote-argument (buffer-file-name))))) ""))) (add-hook 'find-file-hook 'do-run-info_data) Not sure if any of this needs to change for xemacs.