[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnu/emacs client --create-frame somehow?
From: |
Stefan Monnier |
Subject: |
Re: gnu/emacs client --create-frame somehow? |
Date: |
Thu, 27 Nov 2003 22:23:43 GMT |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
> I would like to use gnuclient or the new emacsclient out of CVS so that the
> decision if a new frame is created is up to me when calling the client
> command.
> I know about "gnuserv-frame" to decide about frame creation with gnuclient
> or adding a hook which calls "make-frame" to "server-visit-hook" for
> emacsclient, but than the behavior is fixed for all calls to the client.
(setq server-window 'pop-to-buffer)
> What I'm looking for is some way of simulating a --create-frame option and
> then calling
> emacsclient/gnuclient --create-frame FILE
Since server.el and emacsclient.c do not offer any way to add new
options like --create-frame, your best bet is probably something like
emacsclient --eval '(find-file-other-frame "FILE")'
But maybe you have a point that it should be possible to add new
options, kind of like what is done with `command-switch-alist'.
Stefan