From: Achim Gratz <Stromeko@nexgo.de>
To: emacs-orgmode@gnu.org
Subject: Re: problem with find-file in --eval from command line
Date: Fri, 26 Aug 2011 17:16:16 +0200 [thread overview]
Message-ID: <8739godwzj.fsf@Rainer.invalid> (raw)
In-Reply-To: 87aaaw8hoh.fsf@ucl.ac.uk
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> The even simpler solution worked for me:
>
> emacs --eval '(find-file "/home/somefile.org")'
...as I had already said (this also has the charm of working in other
shells, like tcsh).
> with bash (4.1-3) on Debian Linux (testing+unstable). Not sure why
> others have needed so many escapes on quotes... note that I'm enclosing
> the sexp in single quotes. Has something changed in bash from 4.1 to
> 4.2?
For this simple example it's a wash, but sometimes you can't use single
quotes (for instance if you want to have variable expansion) and then
you will still need to know how to escape stuff.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
DIY Stuff:
http://Synth.Stromeko.net/DIY.html
next prev parent reply other threads:[~2011-08-26 15:16 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
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 [this message]
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=8739godwzj.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).