[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question on frame title
From: |
Random832 |
Subject: |
Re: Question on frame title |
Date: |
Fri, 16 Oct 2015 09:35:27 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
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.
- Question on frame title, Benny Sum, 2015/10/15
- Re: Question on frame title, Marcin Borkowski, 2015/10/15
- Message not available
- Re: Question on frame title, Benny Sum, 2015/10/15
- Re: Question on frame title, Marcin Borkowski, 2015/10/15
- Re: Question on frame title, Random832, 2015/10/15
- Re: Question on frame title, Random832, 2015/10/15
- Message not available
- Re: Question on frame title, Benny Sum, 2015/10/16
- Re: Question on frame title,
Random832 <=
- Message not available
- Re: Question on frame title, Benny Sum, 2015/10/16
- Re: Question on frame title, Benny Sum, 2015/10/16
- Message not available
- Re: Question on frame title, Benny Sum, 2015/10/15