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

2011-08-26 Thread Eric S Fraga
Viktor Rosenfeld listuse...@googlemail.com 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

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

2011-08-26 Thread Achim Gratz
Eric S Fraga e.fr...@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). with bash (4.1-3) on Debian Linux (testing+unstable). Not sure why

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

2011-08-26 Thread Eric S Fraga
Achim Gratz strom...@nexgo.de writes: Eric S Fraga e.fr...@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

[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\^

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

2011-08-24 Thread Achim Gratz
Herbert Sitz hs...@nwlink.com 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:

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

2011-08-24 Thread Herbert Sitz
Achim Gratz Stromeko at 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 works

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, but I never

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

2011-08-24 Thread Herbert Sitz
Viktor Rosenfeld listuser36 at 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