From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: How to get command line arguments? Date: Sat, 6 Jul 2019 20:39:38 +0200 Organization: START YOUR OWN GOLD MINE Message-ID: <20190706183938.GF17273@protected.rcdrun.com> References: <20190704175316.GU8543@protected.rcdrun.com> <878stdd410.fsf@telefonica.net> <20190704202558.GJ8543@protected.rcdrun.com> <87ef35h2kt.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> <878stbgm77.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="65591"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: =?utf-8?B?w5NzY2Fy?= Fuentes , GNU Emacs Help To: Tomas Nordin Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 06 20:40:34 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hjpbr-000Gqr-Ho for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Jul 2019 20:40:31 +0200 Original-Received: from localhost ([::1]:60912 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hjpbq-0006r8-CF for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Jul 2019 14:40:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36823) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hjpbg-0006pz-Dp for help-gnu-emacs@gnu.org; Sat, 06 Jul 2019 14:40:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hjpbe-0001St-IG for help-gnu-emacs@gnu.org; Sat, 06 Jul 2019 14:40:20 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:46723) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hjpbe-0000t1-4a for help-gnu-emacs@gnu.org; Sat, 06 Jul 2019 14:40:18 -0400 Original-Received: from protected.rcdrun.com (localhost [::1]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA; Sat, 06 Jul 2019 11:39:39 -0700 id 0000000000020355.000000005D20EAEB.00001E0A Original-Received: from localhost (protected.rcdrun.com [local]) by protected.rcdrun.com (OpenSMTPD) with ESMTPA id 21c6e4cd; Sat, 6 Jul 2019 18:39:38 +0000 (UTC) Content-Disposition: inline In-Reply-To: <878stbgm77.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.170.207.13 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.org gmane.emacs.help:121106 Archived-At: * Tomas Nordin [2019-07-06 18:30]: > Jean Louis writes: > > > Tell me how do you mean? > > I got curious about the variable command-line-args and checked it up, > and the doc says > > Args passed by shell to Emacs, as a list of strings. > Many arguments are deleted from the list as they are processed. > > so I thought there is a risk some argument might not be there the moment > some custom code want to read it. Now I understand. I think it is meant that command-line-args is also having those other arguments like -nw for example. So -nw must be processed by Emacs itself and thus it will be removed in that process. That is just thinking. Jean