From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Benny Sum Newsgroups: gmane.emacs.help Subject: Question on frame title Date: Thu, 15 Oct 2015 08:26:01 -0700 (PDT) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1444925067 466 80.91.229.3 (15 Oct 2015 16:04:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Oct 2015 16:04:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 15 18:04:22 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 1Zml0u-00047P-SA for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Oct 2015 18:04:21 +0200 Original-Received: from localhost ([::1]:48399 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zml0u-0006uS-6s for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Oct 2015 12:04:20 -0400 X-Received: by 10.50.43.233 with SMTP id z9mr8469053igl.9.1444922761831; Thu, 15 Oct 2015 08:26:01 -0700 (PDT) X-Received: by 10.50.43.195 with SMTP id y3mr513183igl.1.1444922761772; Thu, 15 Oct 2015 08:26:01 -0700 (PDT) Original-Path: usenet.stanford.edu!kq10no21694480igb.0!news-out.google.com!z4ni21842ign.0!nntp.google.com!kq10no21694473igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=137.254.4.4; posting-account=F4v_QgkAAABvIIcQiQPSwLKFL-kD1tbH Original-NNTP-Posting-Host: 137.254.4.4 User-Agent: G2/1.0 Injection-Date: Thu, 15 Oct 2015 15:26:01 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:215370 X-Mailman-Approved-At: Thu, 15 Oct 2015 12:02:45 -0400 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:107655 Archived-At: 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?