From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thorsten Bonow Newsgroups: gmane.emacs.help Subject: Re: gnu/emacs client --create-frame somehow? Date: Tue, 02 Dec 2003 23:10:19 +0100 Organization: Aachen University of Technology (RWTH) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87ekvmzx9w.fsf@herrrossi.mmweg.rwth-aachen.de> References: <87u14pdbck.fsf@herrrossi.mmweg.rwth-aachen.de> <87ptf8by0w.fsf@herrrossi.mmweg.rwth-aachen.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1070409052 13314 80.91.224.253 (2 Dec 2003 23:50:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Dec 2003 23:50:52 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 03 00:50:49 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ARKI4-0001nr-00 for ; Wed, 03 Dec 2003 00:50:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARLEf-0007Gb-MN for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Dec 2003 19:51:21 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-han1.dfn.de!news-koe1.dfn.de!news.rwth-aachen.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 62 Original-NNTP-Posting-Host: s3m069.dialup.rwth-aachen.de Original-X-Trace: nets3.rz.RWTH-Aachen.DE 1070403036 20230 137.226.7.69 (2 Dec 2003 22:10:36 GMT) Original-X-Complaints-To: abuse@rwth-aachen.de Original-NNTP-Posting-Date: 2 Dec 2003 22:10:36 GMT User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Rational FORTRAN, linux) Cancel-Lock: sha1:JyNXV5McSVQqDCPsN7pIZoDBltI= Original-Xref: shelby.stanford.edu gnu.emacs.help:118926 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:14868 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14868 >>>>> "Stefan" == Stefan Monnier 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