I know that emacs can open a file while evaluating an expression:
emacs file --eval "(toggle-frame-maximized)"
However I failed to replicate this with emacsclient:
1.emacsclient can open a file:
emacsclient file
2.And it can also evaluate an expression:
emacsclient --eval "(toggle-frame-maximized)"
3.But a problem happens when the two are put together:
emacsclient file --eval "(toggle-frame-maximized)"
It starts to report error and does not open the file. So is it possible to use emacsclient to open a file while still do eval?