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: Mon, 01 Dec 2003 12:03:27 +0100 Organization: Aachen University of Technology (RWTH) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87ptf8by0w.fsf@herrrossi.mmweg.rwth-aachen.de> References: <87u14pdbck.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 1070322098 28669 80.91.224.253 (1 Dec 2003 23:41:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Dec 2003 23:41:38 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 02 00:41:36 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 1AQxfb-0000V1-00 for ; Tue, 02 Dec 2003 00:41:35 +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 1AQrBb-0001oD-VA for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Dec 2003 11:46:11 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news.rwth-aachen.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 48 Original-NNTP-Posting-Host: s3m114.dialup.rwth-aachen.de Original-X-Trace: nets3.rz.RWTH-Aachen.DE 1070276608 19893 137.226.7.114 (1 Dec 2003 11:03:28 GMT) Original-X-Complaints-To: abuse@rwth-aachen.de Original-NNTP-Posting-Date: 1 Dec 2003 11:03:28 GMT User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Rational FORTRAN, linux) Cancel-Lock: sha1:9Dp7/PN4AjjELSFPH+p63LSEOxQ= Original-Xref: shelby.stanford.edu gnu.emacs.help:118838 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:14807 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14807 >>>>> "Stefan" == Stefan Monnier writes: >> What I'm looking for is some way of simulating a --create-frame >> option and then calling emacsclient/gnuclient --create-frame >> FILE Stefan> Since server.el and emacsclient.c do not offer any way to Stefan> add new options like --create-frame, your best bet is Stefan> probably something like Stefan> emacsclient --eval '(find-file-other-frame "FILE")' Yes, this opens up a new frame, but then I am loosing the [+line-number] option of gnu/emacsclient. My problem started when writing with LaTeX in Emacs, previewing with xdvi: With the inverse search feature, switching between a line in the document and the preview of this part of your document is possible. So I wouldn't want to loose the line-number information or open up a new frame every time I switch. But in other cases---say when clicking on a "mailto:"-tag in my web-browser, I want a new frame for composing an email. Stefan> But maybe you have a point that it should be possible to Stefan> add new options, kind of like what is done with Stefan> `command-switch-alist'. 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. On the other hand, I think emacsclient's approach of taking either file and line number arguments *or* evaluating lisp expressions is cleaner than gnuclients -f and -e options for executing a function or evaluating lisp together with file arguments---you never now what is done first. So I wouldn't add options to emacsclient, but having convenience lisp functions for the problems above would be nice. Stefan> Stefan Toto -- Contact information and PGP key at http://www-users.rwth-aachen.de/thorsten.bonow