From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bernardo Newsgroups: gmane.emacs.help Subject: Re: Determine if emacs or emacsclient was run with filename(s) as commandline argument. Date: Sun, 12 May 2013 17:26:32 +1000 Message-ID: <518F4428.3000505@pobox.com> References: Reply-To: bernardo.bacic@pobox.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1368343615 10977 80.91.229.3 (12 May 2013 07:26:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 May 2013 07:26:55 +0000 (UTC) Cc: help-gnu-emacs To: Constantin Kulikov Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 12 09:26:53 2013 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 1UbQgD-0007NF-MI for geh-help-gnu-emacs@m.gmane.org; Sun, 12 May 2013 09:26:49 +0200 Original-Received: from localhost ([::1]:37451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbQgD-0008OB-7D for geh-help-gnu-emacs@m.gmane.org; Sun, 12 May 2013 03:26:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbQg3-0008O6-0u for help-gnu-emacs@gnu.org; Sun, 12 May 2013 03:26:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UbQg2-0001xY-8O for help-gnu-emacs@gnu.org; Sun, 12 May 2013 03:26:38 -0400 Original-Received: from pecan2.exetel.com.au ([220.233.0.70]:38715) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbQg1-0001xD-U4 for help-gnu-emacs@gnu.org; Sun, 12 May 2013 03:26:38 -0400 Original-Received: from 33.111.70.115.static.exetel.com.au ([115.70.111.33] helo=[192.168.1.10]) by pecan2.exetel.com.au with esmtp (Exim 4.71) (envelope-from ) id 1UbQfx-0002ga-8x; Sun, 12 May 2013 17:26:33 +1000 User-Agent: Thunderbird 2.0.0.24 (X11/20100228) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 220.233.0.70 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:90655 Archived-At: > Is there a way to know if emacs was run with filename argument? command-line-args? ,---- | command-line-args is a variable defined in `C source code'. | Its value is ("~/EmacsTrunk/src/emacs") | | Documentation: | Args passed by shell to Emacs, as a list of strings. | Many arguments are deleted from the list as they are processed. `----