help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question on frame title


From: Marcin Borkowski
Subject: Re: Question on frame title
Date: Thu, 15 Oct 2015 18:26:06 +0200

On 2015-10-15, at 17:26, Benny Sum <benny.sum@gmail.com> wrote:

> 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?

Do I get it correctly that "ls" gets a literal "%b" and has no idea what
to do with it?

What do you want to achieve that (setq frame-title-format "%f") doesn't do?

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



reply via email to

[Prev in Thread] Current Thread [Next in Thread]