From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Bonow Newsgroups: gmane.emacs.help Subject: Re: xdvi's inverse-search always open new fram . Date: Thu, 18 Jun 2009 19:48:17 +0200 Message-ID: <87my85v3fi.fsf@withouthat.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1245350443 15839 80.91.229.12 (18 Jun 2009 18:40:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Jun 2009 18:40:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 18 20:40:41 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MHMXQ-0002YG-4R for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Jun 2009 20:40:40 +0200 Original-Received: from localhost ([127.0.0.1]:41340 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHMXP-00006K-Jx for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Jun 2009 14:40:39 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 50 Original-X-Trace: news.dfncis.de M8Cn1EHvmPP/U8EiYiGXfwgKzkopFRWONRxvuPvdh1CFw/+9g85ECk0nCg Cancel-Lock: sha1:QKvjCCiZZcf75hFuJNFhWZiLmX4= sha1:fPm4aoo57UXKV9XTNiRuw1GrhX4= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:170148 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65373 Archived-At: >>>>> "waterloo" == waterloo writes: waterloo> I use emacs 23 in gentoo with auctex and xdvik. when I use waterloo> inverse-search in xdvik, it always open new frame of emacs. How waterloo> to reuse the original frame ? thanks waterloo> waterloo2005@gmail.com Hi, this is a FAQ. Emacs *23* from CVS (or packaged although not yet released for gentoo as it is for Debian?) should do this by default; there is a special command-line option "-c" to make emacsclient create a new frame. But the behaviour can be customised via the server-window variable (documentation below, look in the manual for "Emacs Server" and "Invoking `emacsclient'"). So my guess is that either you have configured xdvi to call emacsclient with the "-c" option or that somewhere you have changed the default setting of `server-window'. Hope this helps. Toto Documentation of `server-window': server-window is a variable defined in `server.el'. Its value is nil Documentation: Specification of the window to use for selecting Emacs server buffers. If nil, use the selected window. If it is a function, it should take one argument (a buffer) and display and select it. A common value is `pop-to-buffer'. If it is a window, use that. If it is a frame, use the frame's selected window. It is not meaningful to set this to a specific frame or window with Custom. Only programs can do so. You can customize this variable. This variable was introduced, or its default value was changed, in version 22.1 of Emacs. -- "The Prius is so slow, the child could run on the street, retrieve the ball and grow to puberty before you actually hit it." Jeremy Clarkson, Topgear