No, that is not what I want. If I request a new frame, a new frame is
opened even when another was already opened. I just want the existing X
frame to be used, if it exists.
Just to be clear, this is what I have in ALTERNATE_EDITOR:
ALTERNATE_EDITOR=""
According to the documentation this should start an emacs --daemon if
the emacs server is not running, which is exactly what I want. The
problem is, when it does the frame is opened in the text terminal, not
in X, even when DISPLAY is set and emacs-x is available. This is, in my
opinion wrong. If it is the desired effect, the documentation should be
cleared up and a new option enabled to do what I want (which I think is
pretty reasonable). If not, it should be fixed.
Please, let me know if there is another way to do it. In any case, if
there is, it's not clear in the documentation.
P.S. Sorry for the long delay. I read your email last year and
moved it to pending state, but completely forgot about it (has been an
hectic year for me this one).