all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to get command line arguments?
@ 2019-07-04 17:53 Jean Louis
  2019-07-04 18:54 ` Óscar Fuentes
  0 siblings, 1 reply; 5+ messages in thread
From: Jean Louis @ 2019-07-04 17:53 UTC (permalink / raw)
  To: GNU Emacs Help

How do I fetch command line arguments from
scripts with --batch mode?

Jean



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

* Re: How to get command line arguments?
  2019-07-04 17:53 How to get command line arguments? Jean Louis
@ 2019-07-04 18:54 ` Óscar Fuentes
  2019-07-04 20:25   ` Jean Louis
  0 siblings, 1 reply; 5+ messages in thread
From: Óscar Fuentes @ 2019-07-04 18:54 UTC (permalink / raw)
  To: help-gnu-emacs

Jean Louis <bugs@gnu.support> writes:

> How do I fetch command line arguments from
> scripts with --batch mode?

Maybe command-line-args




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

* Re: How to get command line arguments?
  2019-07-04 18:54 ` Óscar Fuentes
@ 2019-07-04 20:25   ` Jean Louis
  2019-07-04 22:12     ` Tomas Nordin
  0 siblings, 1 reply; 5+ messages in thread
From: Jean Louis @ 2019-07-04 20:25 UTC (permalink / raw)
  To: Óscar Fuentes; +Cc: help-gnu-emacs

* Óscar Fuentes <ofv@wanadoo.es> [2019-07-04 20:56]:
> Jean Louis <bugs@gnu.support> writes:
> 
> > How do I fetch command line arguments from
> > scripts with --batch mode?
> 
> Maybe command-line-args

Excellent! Thank you.



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

* Re: How to get command line arguments?
  2019-07-04 20:25   ` Jean Louis
@ 2019-07-04 22:12     ` Tomas Nordin
       [not found]       ` <EE1CB262-B4DB-4FA4-A3F6-79659AA4C17F@gnu.support>
  0 siblings, 1 reply; 5+ messages in thread
From: Tomas Nordin @ 2019-07-04 22:12 UTC (permalink / raw)
  To: Jean Louis, Óscar Fuentes; +Cc: help-gnu-emacs

Jean Louis <bugs@gnu.support> writes:

> * Óscar Fuentes <ofv@wanadoo.es> [2019-07-04 20:56]:
>> Jean Louis <bugs@gnu.support> writes:
>> 
>> > How do I fetch command line arguments from
>> > scripts with --batch mode?
>> 
>> Maybe command-line-args
>
> Excellent! Thank you.

But hopefully one is not looking for an argument that is being removed
as it is processed :/

Best regards
--
Tomas



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

* Re: How to get command line arguments?
       [not found]         ` <878stbgm77.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me>
@ 2019-07-06 18:39           ` Jean Louis
  0 siblings, 0 replies; 5+ messages in thread
From: Jean Louis @ 2019-07-06 18:39 UTC (permalink / raw)
  To: Tomas Nordin; +Cc: Óscar Fuentes, GNU Emacs Help

* Tomas Nordin <tomasn@posteo.net> [2019-07-06 18:30]:
> Jean Louis <bugs@gnu.support> 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



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

end of thread, other threads:[~2019-07-06 18:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-04 17:53 How to get command line arguments? Jean Louis
2019-07-04 18:54 ` Óscar Fuentes
2019-07-04 20:25   ` Jean Louis
2019-07-04 22:12     ` Tomas Nordin
     [not found]       ` <EE1CB262-B4DB-4FA4-A3F6-79659AA4C17F@gnu.support>
     [not found]         ` <878stbgm77.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me>
2019-07-06 18:39           ` Jean Louis

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.