[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#40731: Followup
From: |
Ilya Ostapyshyn |
Subject: |
bug#40731: Followup |
Date: |
Wed, 22 Apr 2020 10:23:43 +0300 |
I have found a commit ~6fe661342a24edcaea255c3ba9a37613031554da~ which
addressed the same issue but in a different way.
However, the commit was reverted
(hash ~f198a5c5144fdded1400df6e8454e4b1b912c7de~) with the following message:
> The alternate editor may be Emacs, which is useful when you want to
> eval something in an existing Emacs (if it exists), or in a new Emacs
> if there's no server running.
I beg to differ. In fact, the --eval is not an optarg parameter, instead
it tells emacsclient to treat the whole FILE argument as lisp
expressions for evaluation.
Therefore, invoking
emacsclient -a emacs -e '(emacs-version)'
just opens a file named "(emacs-version)" in a new instance of Emacs if
server is not running.