does anyone know how to run something like the following on a Windows machine with the DOS command line?
emacs -batch -l functions.el --eval '(run-function "argument")'
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This mostly works with official binaries for 23.1, but there are some quirks with command-line argument parsing. Unlike
shor friends,CMD.EXEdoesn’t do much in the way of command-line parsing, so this is left to the application on windows.Emacs.exe doesn’t like single quotes:
Unsurprisingly, it doesn’t like quotes embedded in the command either:
Fortunately escaping with ‘\’ seems to work OK:
Hope this helps!