From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.help Subject: Re: How to prevent window splitting when opening multiple files on command line Date: Wed, 08 Apr 2009 10:09:16 +0300 Organization: SunSITE.dk - Supporting Open source Message-ID: <87vdpfk4f7.fsf@kobe.laptop> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1239176484 10472 80.91.229.12 (8 Apr 2009 07:41:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Apr 2009 07:41:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 08 09:42:42 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 1LrSQh-0007Ow-Kp for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Apr 2009 09:42:39 +0200 Original-Received: from localhost ([127.0.0.1]:53239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrSPJ-0002BF-ER for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Apr 2009 03:41:13 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (berkeley-unix) Cancel-Lock: sha1:mJi2dnDrSyabqXSaPIoZOqvJplw= Original-Lines: 16 Original-NNTP-Posting-Host: 77.49.143.193 Original-X-Trace: news.sunsite.dk DXC=II\C>RDAo^iMMDg2]64EMfYSB=nbEKnkk9KI=c`M<`]kL^MjgbH?lJH1Tkjld@NBcOI5jbl]3C^d\22@>d Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu gnu.emacs.help:168268 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:63550 Archived-At: On Tue, 7 Apr 2009 12:14:02 -0700, Kristi Tsukida wrote: > Hi, I was wondering how to prevent emacs from splitting the window > when opening multiple files on the command line. For example, running > "emacs file1 file2" opens emacs with a split window showing file1 and > file2. I want to just see file1. Thanks in advance. If I am reading the code of the `command-line-1' function correctly, then this is not currently possible. This function runs: (if (= file-count 1) (setq first-file-buffer (find-file file)) (find-file-other-window file))) so if there are multiple filename arguments it will unconditionally call `find-file-other-window'.