From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Help on not opening buffer-menu Date: Thu, 26 Dec 2013 18:41:17 -0700 Message-ID: References: <52B95EAC.60308@presans.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1388108358 823 80.91.229.3 (27 Dec 2013 01:39:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Dec 2013 01:39:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 27 02:39:24 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VwMOZ-00043W-Mz for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Dec 2013 02:39:23 +0100 Original-Received: from localhost ([::1]:47589 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwMOZ-0007se-C4 for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Dec 2013 20:39:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwMOI-0007ry-C6 for help-gnu-emacs@gnu.org; Thu, 26 Dec 2013 20:39:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VwMOB-0006yP-16 for help-gnu-emacs@gnu.org; Thu, 26 Dec 2013 20:39:06 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:55076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwMOA-0006yJ-Q8 for help-gnu-emacs@gnu.org; Thu, 26 Dec 2013 20:38:58 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VwMO9-0003xv-Rl for help-gnu-emacs@gnu.org; Fri, 27 Dec 2013 02:38:57 +0100 Original-Received: from 70-59-41-30.hlrn.qwest.net ([70.59.41.30]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Dec 2013 02:38:57 +0100 Original-Received: from kevin.d.rodgers by 70-59-41-30.hlrn.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Dec 2013 02:38:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 56 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 70-59-41-30.hlrn.qwest.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 In-Reply-To: <52B95EAC.60308@presans.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95163 Archived-At: On 12/24/13 3:15 AM, Guillaume MULLER wrote: > I've searched for a solution for 2 days now and have not been able to find one, > so you're my last resource :) Did you try the Emacs manual (C-h i)? > When I open multiple files using a command line like: > emacs a b c > > Emacs insists on opening the files in various buffers (that's what I want), but > it insists on showing a window splitted horizontally with one of the buffers AND > a buffer-menu (that lists all the opened buffers). > > The problem is I don't want to see the buffer-menu at all, it just pisses-me off > to have to close it all the time I open a list of files in Emacs... If I want > such a listing, then I can use c-x c-b, I do not need it when not asked. > > Does anyone has a solution to either (i) not open the buffer-menu at all or (ii) > at least, automatically close it? The section of the manual that documents the FILE command line argument ("Emacs Invocation" -> "Action Arguments") has what you're looking for: `FILE' `--file=FILE' `--find-file=FILE' `--visit=FILE' Visit FILE using `find-file'. *Note Visiting::. When Emacs starts up, it displays the startup buffer in one window, and the buffer visiting FILE in another window (*note Windows::). If you supply more than one file argument, the displayed file is the last one specified on the command line; the other files are visited but their buffers are not shown. If the startup buffer is disabled (*note Entering Emacs::), then FILE is visited in a single window if one file argument was supplied; with two file arguments, Emacs displays the files in two different windows; with more than two file argument, Emacs displays the last file specified in one window, plus a Buffer Menu in a different window (*note Several Buffers::). To inhibit using the Buffer Menu for this, change the variable `inhibit-startup-buffer-menu' to `t'. > FYI, most of the time, I do not use emacs directly but a script that launches > emacsclient and that reads: > #!/bin/bash > (emacsclient --alternate-editor="" -c "$@") || (echo emacs "$@") > > So if the solution could work in this context, I would be very grateful! Sorry, I don't know. -- Kevin Rodgers Denver, Colorado, USA