emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Achim Gratz <Stromeko@nexgo.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: problem with find-file in --eval from command line
Date: Fri, 26 Aug 2011 17:03:48 +0100	[thread overview]
Message-ID: <871uw8jh23.fsf@ucl.ac.uk> (raw)
In-Reply-To: <8739godwzj.fsf@Rainer.invalid> (Achim Gratz's message of "Fri, 26 Aug 2011 17:16:16 +0200")

Achim Gratz <Stromeko@nexgo.de> writes:

> 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).

Ah, sorry, I missed that!

>> 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.

Indeed!
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.7 (release_7.7.205.gce02a)

      reply	other threads:[~2011-08-26 16:03 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
2011-08-26 16:03         ` Eric S Fraga [this message]

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=871uw8jh23.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=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).