From: Bernardo <bernardo.bacic@pobox.com>
To: Constantin Kulikov <zxnotdead@gmail.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Determine if emacs or emacsclient was run with filename(s) as commandline argument.
Date: Sun, 12 May 2013 17:26:32 +1000 [thread overview]
Message-ID: <518F4428.3000505@pobox.com> (raw)
In-Reply-To: <CAFkz2yoUaF3BrQYxU=HwK2ZKo0t16mOgq-4qkm5FU6OxBW475Q@mail.gmail.com>
> 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.
`----
next prev parent reply other threads:[~2013-05-12 7:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-10 20:40 Determine if emacs or emacsclient was run with filename(s) as commandline argument Constantin Kulikov
2013-05-12 7:26 ` Bernardo [this message]
[not found] ` <CAFkz2yoey4G0pTbu2f_9kcZTVxNYbnyBr1w=9K77CQA_NcoMkg@mail.gmail.com>
2013-05-12 7:41 ` Fwd: " Constantin Kulikov
2013-05-12 10:56 ` Constantin Kulikov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=518F4428.3000505@pobox.com \
--to=bernardo.bacic@pobox.com \
--cc=help-gnu-emacs@gnu.org \
--cc=zxnotdead@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).