From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: basic question: reusing frame when opening Emacs file Date: Thu, 02 Mar 2006 00:14:08 GMT Organization: EarthLink Inc. -- http://www.EarthLink.net Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1141351153 3392 80.91.229.2 (3 Mar 2006 01:59:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Mar 2006 01:59:13 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 03 02:59:13 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FEzZU-0006L6-MX for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Mar 2006 02:59:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FEzZT-00043O-Uv for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Mar 2006 20:59:08 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!207.69.154.102.MISMATCH!elnk-atl-nf2!newsfeed.earthlink.net!stamper.news.atl.earthlink.net!newsread2.news.atl.earthlink.net.POSTED!0847253b!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 49 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-NNTP-Posting-Host: 4.159.17.192 Original-X-Complaints-To: abuse@earthlink.net Original-X-Trace: newsread2.news.atl.earthlink.net 1141258448 4.159.17.192 (Wed, 01 Mar 2006 16:14:08 PST) Original-NNTP-Posting-Date: Wed, 01 Mar 2006 16:14:08 PST Original-Xref: shelby.stanford.edu gnu.emacs.help:137854 Original-To: help-gnu-emacs@gnu.org 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:33470 Archived-At: "Peter Tury" wrote in message news:jbdkui9mi4lz$.1lmnhcqbred0b.dlg@40tude.net... > Hi, > > Emacs opens the files always in a new frame. How to avoid this? I mean: I > would like to have just one frame unless I directly create a new one via > e.g. File > New frame. But now, if I press Enter on a file what is > associated with Emacs, a new frame is created for that file. > > I use EmacsW32 (P060106) on MS Windows XP. > > My Emacs files are opened by D:\Program > Files\Emacs_P060106\EmacsW32\bin\gnuclientw.exe -sqf "%1" if I press Enter > (I guess). > > I have (setq gnuserv-frame (selected-frame)) in my .emacs, its value is > # > after a fresh start. (It doesn't help if I modify it to e.g. > #, neither if I comment this out in my > .emacs.) > > special-display-buffer-names is nil > special-display-regexps is nil > same-window-buffer-names is ("*shell*" "*mail*" "*inferior-lisp*" "*ielm*" > "*scheme*") > same-window-regexps is ("\\*rsh-[^-]*\\*\\(\\|<[0-9]*>\\)" > "\\*telnet-.*\\*\\(\\|<[0-9]+>\\)" "^\\*rlogin-.*\\*\\(\\|<[0-9]+>\\)" > "\\*info\\*\\(\\|<[0-9]+>\\)" "\\*gud-.*\\*\\(\\|<[0-9]+>\\)" > "\\`\\*Customiz.*\\*\\'") > > gnuserv-reuseframe is gnuserv-find-files-frame > > What to check/modify? > > Thanks, > P Are you sure that you are not opening another instance of emacs? This is even more resource exhausting that a new frame for every file. That's what happened here when I associated a file extension with emacs. (Using 22.0.50.1 on msw 98.) Why not have emacs look for the file instead of versa vice? Ed