all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joel Reicher <joel.reicher@gmail.com>
To: CToID <funk443@yahoo.com.tw>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Question about initial-buffer-choice
Date: Sat, 13 Jul 2024 16:31:10 +1000	[thread overview]
Message-ID: <86le25x0pd.fsf@gmail.com> (raw)
In-Reply-To: <2829dbca-971f-4da5-885a-29afce1dbbb1@yahoo.com.tw> (CToID's message of "Fri, 12 Jul 2024 21:24:56 +0800")

CToID <funk443@yahoo.com.tw> 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



  parent reply	other threads:[~2024-07-13  6:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2829dbca-971f-4da5-885a-29afce1dbbb1.ref@yahoo.com.tw>
2024-07-12 13:24 ` Question about initial-buffer-choice CToID
2024-07-12 15:02   ` Eli Zaretskii
2024-07-12 15:27     ` CToID
2024-07-12 16:06       ` Eli Zaretskii
2024-07-12 17:02         ` CToID
2024-07-12 17:45           ` Eli Zaretskii
2024-07-13  6:31   ` Joel Reicher [this message]
2024-07-13  7:24     ` CToID
2024-07-13  7:54       ` Joel Reicher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86le25x0pd.fsf@gmail.com \
    --to=joel.reicher@gmail.com \
    --cc=funk443@yahoo.com.tw \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.