From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Samer Masterson Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] switch to file buffer from command line args regardless of `initial-buffer-choice' Date: Thu, 28 May 2015 14:34:30 -0700 Message-ID: <87wpzso07t.fsf@f-box.i-did-not-set--mail-host-address--so-tickle-me> References: <1425283676.2563.0@mail.samertm.com> <87fv7ge61j.fsf@f-box.i-did-not-set--mail-host-address--so-tickle-me> <87oall2p4o.fsf@f-box.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1432848906 9159 80.91.229.3 (28 May 2015 21:35:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 May 2015 21:35:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 28 23:34:57 2015 Return-path: Envelope-to: ged-emacs-devel@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 1Yy5S4-0000Qg-Hz for ged-emacs-devel@m.gmane.org; Thu, 28 May 2015 23:34:56 +0200 Original-Received: from localhost ([::1]:60844 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yy5S3-0005Fg-Uz for ged-emacs-devel@m.gmane.org; Thu, 28 May 2015 17:34:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yy5Rq-0005FP-1U for emacs-devel@gnu.org; Thu, 28 May 2015 17:34:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yy5Rm-0004HM-Rz for emacs-devel@gnu.org; Thu, 28 May 2015 17:34:41 -0400 Original-Received: from mx2.mailbox.org ([80.241.60.215]:47731) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yy5Rm-0004Gf-M0 for emacs-devel@gnu.org; Thu, 28 May 2015 17:34:38 -0400 Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 7CDBF4007E; Thu, 28 May 2015 23:34:36 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id mwcLvFns3x4q; Thu, 28 May 2015 23:34:35 +0200 (CEST) In-Reply-To: User-Agent: Notmuch/0.19 (http://notmuchmail.org) Emacs/25.0.50.1 (x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.241.60.215 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:186931 Archived-At: Thank you! Installed as d3605ed7d173aa1c23ad8944cf92e7b810330cb8. I added the following patch to the info. -s Patch below. diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi index 97fa083..d18dee3 100644 --- a/doc/lispref/os.texi +++ b/doc/lispref/os.texi @@ -194,16 +194,22 @@ It processes any command-line options that were not handled earlier. It now exits if the option @code{--batch} was specified. @item +If the @file{*scratch*} buffer exists and is empty, it inserts +@code{initial-scratch-message} into that buffer. + +@item If @code{initial-buffer-choice} is a string, it visits the file (or directory) with that name. If it is a function, it calls the function -with no arguments and selects the buffer that it returns. +with no arguments and selects the buffer that it returns. If one file +is given as a command line argument, the file is opened alongside +@code{initial-buffer-choice}. If more than one file is given, the +@file{*Buffer List*} buffer is shown alongside +@code{initial-buffer-choice}. @ignore @c I do not think this should be mentioned. AFAICS it is just a dodge @c around inhibit-startup-screen not being settable on a site-wide basis. If it is @code{t}, it selects the @file{*scratch*} buffer. @end ignore -If the @file{*scratch*} buffer exists and is empty, it inserts -@code{initial-scratch-message} into that buffer. @c To make things nice and confusing, the next three items can be @c called from two places. If displaying a startup screen, they are