From: Achim Gratz <Stromeko@nexgo.de>
To: emacs-orgmode@gnu.org
Subject: Re: problem with find-file in --eval from command line
Date: Wed, 24 Aug 2011 19:54:21 +0200 [thread overview]
Message-ID: <877h62wv8y.fsf@Rainer.invalid> (raw)
In-Reply-To: loom.20110824T191832-915@post.gmane.org
Herbert Sitz <hsitz@nwlink.com> writes:
> In Linux I'm not sure how to do the quoting. I tried this:
>
> ---> emacs --eval "( find-file "/home/somefile.org" )"
Provided you don't use any completely exotic shell, that is what Emacs
gets to see:
( find-file /home/somefile.org )
> And I get the error:
>
> Symbols' value as variable is void: /home/somefile\.org
>
> It seems there's some problem with the period in the filename, but maybe it's
> more than that. Can anyone explain how to properly quote the Linux commandline
> version? (File comes up fine if I just do find-file in a running emacs.)
A safe way to quote this particular invocation:
emacs --eval '( find-file "/home/somefile.org" )'
This only works in tcsh
emacs --eval "( find-file \\"/home/somefile.org\\" ) "
Bash needs this instead
emacs --eval "( find-file "'"'"/home/somefile.org"'"'" ) "
THere may be other solutions for bash, but I never really got the hang
of their quoting rules.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
next prev parent reply other threads:[~2011-08-24 17:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-24 17:31 problem with find-file in --eval from command line Herbert Sitz
2011-08-24 17:54 ` Achim Gratz [this message]
2011-08-24 18:11 ` Herbert Sitz
2011-08-24 18:48 ` Viktor Rosenfeld
2011-08-25 1:45 ` Herbert Sitz
2011-08-26 12:45 ` Eric S Fraga
2011-08-26 15:16 ` Achim Gratz
2011-08-26 16:03 ` Eric S Fraga
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877h62wv8y.fsf@Rainer.invalid \
--to=stromeko@nexgo.de \
--cc=emacs-orgmode@gnu.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).