emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* problem with find-file in --eval from command line
@ 2011-08-24 17:31 Herbert Sitz
  2011-08-24 17:54 ` Achim Gratz
  0 siblings, 1 reply; 8+ messages in thread
From: Herbert Sitz @ 2011-08-24 17:31 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-08-26 16:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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