all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Herbert Sitz <hsitz@nwlink.com>
To: emacs-orgmode@gnu.org
Subject: problem with find-file in --eval from command line
Date: Wed, 24 Aug 2011 17:31:22 +0000 (UTC)	[thread overview]
Message-ID: <loom.20110824T191832-915@post.gmane.org> (raw)

I'm trying to start emacs from the command line and using an --eval section to
open a file and do some operations.  I'm having a problem with the Linux version.

Here's how I do it without error using the strange quoting in Windows:


--->  emacs --eval ^"( find-file c:/users/myname/somefile.org\^" )^"

In Linux I'm not sure how to do the quoting.  I tried this:

--->  emacs --eval "( 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.)

Thanks,

Herb

             reply	other threads:[~2011-08-24 17:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-24 17:31 Herbert Sitz [this message]
2011-08-24 17:54 ` problem with find-file in --eval from command line 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

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20110824T191832-915@post.gmane.org \
    --to=hsitz@nwlink.com \
    --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 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.