From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Tury Newsgroups: gmane.emacs.help Subject: Re: basic question: reusing frame when opening Emacs file Date: Thu, 02 Mar 2006 08:47:35 GMT Organization: Nokia Message-ID: <1mcbb5vggbkj6.h92h93q1wna1$.dlg@40tude.net> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1141404457 7563 80.91.229.2 (3 Mar 2006 16:47:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Mar 2006 16:47:37 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 03 17:47:35 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 1FFDQo-0001AJ-RT for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Mar 2006 17:47:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FFDQm-0005H8-W6 for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Mar 2006 11:47:05 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.bahnhof.se!195.197.54.117.MISMATCH!feeder1.news.jippii.net!nntp.inet.fi!inet.fi!newsfeed1.nokia.com!news1.nokia.com!news2.nokia.com.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: 40tude_Dialog/2.0.15.1 Original-Lines: 27 Original-NNTP-Posting-Host: 172.24.170.74 Original-X-Complaints-To: newsmaster@nokia.com Original-X-Trace: news2.nokia.com 1141289255 172.24.170.74 (Thu, 02 Mar 2006 10:47:35 EET) Original-NNTP-Posting-Date: Thu, 02 Mar 2006 10:47:35 EET Original-Xref: shelby.stanford.edu gnu.emacs.help:137865 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:33484 Archived-At: On Thu, 02 Mar 2006 00:14:08 GMT, B. T. Raven wrote: > Are you sure that you are not opening another instance of emacs? Thanks for the idea, but yes, I am sure: I see all the buffers in both frames, and if I close one frame, I still have the "newly visited" file in a buffer in the other frame. Some more info: it seems that initial-frame-alist is not used for the new frame, but some default values. I tried some other things: if I try to visit a file what is already opened then I get a new frame for it if it wasn't in "the upmost" (the "active"?) buffer in any frames (but the file is not opened again, in a new buffer: just the existing buffer is "activated" in a new frame); but if the buffer is "active" in a frame, then just that frame is "activated". Should I check some hook running at file opening? What? How? > Why not have emacs look for the file instead of versa vice? Sometimes this way is easier: e.g. when I am at the file in TotalCommander already, it is easier to press enter than switching (by hand) to emacs and locate the same file... Thanks, P