From mboxrd@z Thu Jan 1 00:00:00 1970 From: Herbert Sitz Subject: problem with find-file in --eval from command line Date: Wed, 24 Aug 2011 17:31:22 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwHIh-0005Lx-Ie for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 13:31:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwHIg-0004fi-Eg for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 13:31:39 -0400 Received: from lo.gmane.org ([80.91.229.12]:55373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwHIg-0004fe-3C for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 13:31:38 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QwHIe-0001iD-Og for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 19:31:37 +0200 Received: from c-24-22-131-140.hsd1.wa.comcast.net ([24.22.131.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Aug 2011 19:31:36 +0200 Received: from hsitz by c-24-22-131-140.hsd1.wa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Aug 2011 19:31:36 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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