Re: [O] problem with find-file in --eval from command line

2011-08-26 Thread Eric S Fraga
Achim Gratz writes: > Eric S Fraga 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 Debia

Re: [O] problem with find-file in --eval from command line

2011-08-26 Thread Achim Gratz
Eric S Fraga 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 need

Re: [O] problem with find-file in --eval from command line

2011-08-26 Thread Eric S Fraga
Viktor Rosenfeld writes: > Hi, > > This works on Bash (tested on 4.2.10) and should be easy to remember: > > emacs --eval "(find-file \"/home/somefile.org\" )" The even simpler solution worked for me: emacs --eval '(find-file "/home/somefile.org")' with bash (4.1-3) on Debian Linux (testin

Re: [O] problem with find-file in --eval from command line

2011-08-24 Thread Herbert Sitz
Viktor Rosenfeld googlemail.com> writes: > > This works on Bash (tested on 4.2.10) and should be easy to remember: > > emacs --eval "(find-file \"/home/somefile.org\" )" > > Cheers, > Viktor I thought I had tried already that but I hadn't. Thanks Viktor. -- Herb

Re: [O] problem with find-file in --eval from command line

2011-08-24 Thread Viktor Rosenfeld
Hi, This works on Bash (tested on 4.2.10) and should be easy to remember: emacs --eval "(find-file \"/home/somefile.org\" )" Cheers, Viktor Achim Gratz wrote: > Bash needs this instead > > emacs --eval "( find-file "'"'"/home/somefile.org"'"'" ) " > > THere may be other solutions for bash,

Re: [O] problem with find-file in --eval from command line

2011-08-24 Thread Herbert Sitz
Achim Gratz nexgo.de> writes: > > Bash needs this instead > > emacs --eval "( find-file "'"'"/home/somefile.org"'"'" ) " > > THere may be other solutions for bash, but I never really got the hang > of their quoting rules. > > Regards, > Achim. Achim -- Thanks a lot, that Bash version work

Re: [O] problem with find-file in --eval from command line

2011-08-24 Thread Achim Gratz
Herbert Sitz writes: > In Linux I'm not sure how to do the quoting. I tried this: > > ---> emacs --eval "( find-file "/home/somefile.org" )" Provided you don't use any completely exotic shell, that is what Emacs gets to see: ( find-file /home/somefile.org ) > And I get the error: > >Symbo

[O] problem with find-file in --eval from command line

2011-08-24 Thread Herbert Sitz
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\^