From: Random832 <random832@fastmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Question on frame title
Date: Fri, 16 Oct 2015 09:35:27 -0400 [thread overview]
Message-ID: <87io677x7k.fsf@fastmail.com> (raw)
In-Reply-To: 6070a8cb-fb0f-4986-836c-296b9b4fac5b@googlegroups.com
Benny Sum <benny.sum@gmail.com> 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.
next prev parent reply other threads:[~2015-10-16 13:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-15 15:26 Question on frame title Benny Sum
2015-10-15 16:26 ` Marcin Borkowski
[not found] ` <mailman.391.1444926481.7904.help-gnu-emacs@gnu.org>
2015-10-15 16:43 ` Benny Sum
2015-10-15 17:21 ` Marcin Borkowski
2015-10-15 17:30 ` Random832
2015-10-15 17:49 ` Random832
[not found] ` <mailman.405.1444931478.7904.help-gnu-emacs@gnu.org>
2015-10-16 11:05 ` Benny Sum
2015-10-16 13:35 ` Random832 [this message]
[not found] ` <mailman.455.1445002561.7904.help-gnu-emacs@gnu.org>
2015-10-16 18:15 ` Benny Sum
2015-10-16 19:14 ` Benny Sum
[not found] ` <mailman.402.1444930342.7904.help-gnu-emacs@gnu.org>
2015-10-15 23:08 ` Benny Sum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87io677x7k.fsf@fastmail.com \
--to=random832@fastmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.