unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Question on frame title
@ 2015-10-15 15:26 Benny Sum
  2015-10-15 16:26 ` Marcin Borkowski
       [not found] ` <mailman.391.1444926481.7904.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 11+ messages in thread
From: Benny Sum @ 2015-10-15 15:26 UTC (permalink / raw)
  To: help-gnu-emacs

I try to run shell-command to retrieve some information on the file and put it in the title frame.  But I got some strange behavior:

(setq frame-title-format
 (list (format "%s" (shell-command-to-string(concat "ls -1 " " %b ")))))

But it says ls: cannot access filename: No such file or directory on the title frame.  

It seems the filename is correct, but not sure why cannot access it.  Is it due to the white space returned from the %b?  

Anyone has a example code to run a shell-command on %b in frame-title-format?



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-10-16 19:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
     [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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).