I want to use emacs as
VISUAL with server-mode. As a test, I write the following in a terminal:
emacsclient -F "((left . 0) (top . 0))" -c -n file
This behaves exactly as expected; it opens my file
file in GUI window with the right geometry, exactly the behaviour I want from
$VISUAL filename. So I add the following line to the end of my
export VISUAL='emacsclient -F "((left . 0) (top . 0))" -c -n file'
Now I test this from a terminal:
$ source .bashrc $ $VISUAL file *ERROR*: End of file during parsing
I recognize that as an error thrown by emacs when it evaluates elisp with mismatched delimiters. I thought at first that I might be doing something wrong with single and double quotes, but this doesn't explain the error; emacs is starting, but somewhere it's running into some problem with a mismatched delimiter.
Question: (1) Why is emacs throwing an error when called from
$VISUAL like this, despite the fact that the command itself works correctly? (2) How do I fix it?
P.S. I'm on
GNU Emacs 26.3 and
GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu); thanks in advance for your help.