[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnu/emacs client --create-frame somehow?
From: |
Thorsten Bonow |
Subject: |
Re: gnu/emacs client --create-frame somehow? |
Date: |
Tue, 02 Dec 2003 23:10:19 +0100 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Rational FORTRAN, linux) |
>>>>> "Stefan" == Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> After some testing I think gnuclient's option to set
>> "gnuserv-frame" to "gnuserv-visible-frame-function", which is
>> opening a new frame only if there isn't one already opened on
>> your (virtual) screen and is using the visible frame otherwise,
>> is my preferred solution. Alas, this is not working even with
>> emacsclient from CVS.
Stefan> Huh ? Setting server-window to `pop-to-buffer' does
Stefan> exactly that (provided you configure pop-to-buffer
Stefan> properly of course: by default it does not create new
Stefan> frames).
Sorry, now I'm utterly confused. The way I understood the manual
is, that pop-to-buffer is buffer oriented, meaning that even if I
set pop-up-frames to non-nil, a new frame is only opened if the
buffer is not displayed in another frame. This solves my
LaTeX-Xdvi problem, but doesn't work if I want to force
frame-creation.
gnuserv-visible-frame-function on the other hand is frame
oriented. If there is no frame on my virtual screen, one pops up,
even if the file is already displayed in another buffer.
So with gnuclient, I can solve my LaTeX-Xdvi problem *and* if I
define
(defun my-xemacs-info-other-frame ()
"my-xemacs-info-other-frame"
(interactive)
(let (gnuserv-frame)
(info)))
I can call gnuclient -eval "(my-xemacs-info-other-frame)" and a
frame pops up even if *INFO* is displayed in another frame.
(defun my-info-other-frame ()
"my-info-other-frame"
(interactive)
(let ((pop-up-frames t))
(info-other-window)))
only works with emacsclient if *INFO* isn't displayed somewhere
else.
Sorry about pestering you with this. But I hope to get this right
for my emacsclient/gnuclient wrapper script.
Stefan> Stefan
Toto
--
Contact information and PGP key at
http://www-users.rwth-aachen.de/thorsten.bonow
Now I have a cat. Well, that's not quite accurate. A cat and I have
each other.
Friedman, Kinky (1993), When the cat's away. New York (Wings Books),
421
Re: gnu/emacs client --create-frame somehow?, Kevin Rodgers, 2003/12/01