From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joel Reicher Newsgroups: gmane.emacs.help Subject: Re: Question about initial-buffer-choice Date: Sat, 13 Jul 2024 16:31:10 +1000 Message-ID: <86le25x0pd.fsf@gmail.com> References: <2829dbca-971f-4da5-885a-29afce1dbbb1.ref@yahoo.com.tw> <2829dbca-971f-4da5-885a-29afce1dbbb1@yahoo.com.tw> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39338"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: help-gnu-emacs@gnu.org To: CToID Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 13 08:32:05 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sSWIe-000A2d-NB for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 13 Jul 2024 08:32:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sSWI3-0003ug-JQ; Sat, 13 Jul 2024 02:31:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sSWHv-0003uV-W7 for help-gnu-emacs@gnu.org; Sat, 13 Jul 2024 02:31:20 -0400 Original-Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sSWHt-0002Wb-4m for help-gnu-emacs@gnu.org; Sat, 13 Jul 2024 02:31:19 -0400 Original-Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-2c9a1ea8cc3so1996038a91.0 for ; Fri, 12 Jul 2024 23:31:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720852274; x=1721457074; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=pEOMSBSn4nFjfzl8ItRRTSLaGK7r6RLrDEIhLVTW8Yc=; b=YLLO0jofZ6UHri3KS1OcVC6drGpb3hqzWIFeBlsuG6VHWDniNi3uKshwea0a1oe+ib myJJcXKoWdZweVLUHTs+vK476Em5uWy8PW3qnQBrA8b7muXJ9FzCkpxLtr2gRfVBaq7B QVal4BC1PxEXN7GVHMjLBbX2u8KAI46ZGFdl4A/J50gOpH1I6j0oAZeEJuJdGjd8xL/X 9cPEA2obGyWfHLRuJyn+RvAhWxa2T7KuSQ+XOwJzNEys2CLmMfPC2eC5xri2OrkX8ws5 MtkrTa5pi5gOKHnJm/62JGXeMQ+CtyEy21QLM30+m24Tr3IGfXczkUJdQDKw1Z8/RB6n llBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720852274; x=1721457074; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=pEOMSBSn4nFjfzl8ItRRTSLaGK7r6RLrDEIhLVTW8Yc=; b=dXL9r2wl3UIib5zPHdOpe+VA6K+QOt8I0LVk7Tz2LwNZ7RRwqy4IG7aZrgfRHniETO 46fo0gTv2kQ+ENuKWY7RWdFQtpiogOk6DzTMTVhMad4YeFEBgGRxMnJz26U1lUa4vsBl HWK0WMVnx4ahcppxLPmaCKkK0WzhixBnslHPDQn0xzoAY9/RCCNalEaXB4QLpowaejwA 9rbv5XX2IZOe/vtQug0rZvYBcaCOsiLAs4GojNsmtD6sVBdfaUqUJOtbGWTCQ5uKhz+k axm1EOwedtf9bJzkjU98JBqIGnH5AVn8U18KXXBEWSnMhzKqlYzzi76pB77LfLVVew4W 5/vg== X-Gm-Message-State: AOJu0Yytrh4Ifkvd0/rS8XYskYPqUO84a+Hf1LuxWsYJlV9FQfCV5Bpo RnqrgHxU4+2AV4Hame279LB3cERuJPm+mWbqO5RR1x9B7z71m/7TbgNwJCeh X-Google-Smtp-Source: AGHT+IF/Ocmpxn/YkZylB1Sbxlz1P8GU4tBJrvTthvgY5EqqAzGnrXSVE5YPzG+AmWWQoDJ0Z5Cwtw== X-Received: by 2002:a17:90a:d917:b0:2c8:946b:eea2 with SMTP id 98e67ed59e1d1-2caeea566a3mr1134226a91.7.1720852274365; Fri, 12 Jul 2024 23:31:14 -0700 (PDT) Original-Received: from LAPTOP-ACR66VVN (139-218-25-158.sta.wbroadband.net.au. [139.218.25.158]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2ca42e5afc8sm3139219a91.1.2024.07.12.23.31.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jul 2024 23:31:14 -0700 (PDT) In-Reply-To: <2829dbca-971f-4da5-885a-29afce1dbbb1@yahoo.com.tw> (CToID's message of "Fri, 12 Jul 2024 21:24:56 +0800") Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=joel.reicher@gmail.com; helo=mail-pj1-x1030.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147188 Archived-At: CToID writes: > So for example, if `initial-buffer-choice` is set to t, and I > try to open a file in Emacs using command-line, i. e. enter > `emacs foobar.js` in my terminal. Then Emacs will start up, but > in addition to one window displaying the content of `foobar.js`, > there is also another window containing scratch buffer. > > I'm not sure if this is intended behaviour or not, but if Emacs > is started through command-line, with file arguments given, > shouldn't it only display the content of file(s), but not the > initial buffer? I get behaviour similar to what I think you want by always using emacsclient to open files, and including --no-splash in the command for alternate editor. You might be able to do a different customisation the same way so that it applies only when directly opening files when an emacs server is not already running. Regards, - Joel