* How to prevent window splitting when opening multiple files on command line
@ 2009-04-07 19:14 Kristi Tsukida
2009-04-08 8:33 ` Peter Dyballa
2009-04-08 11:40 ` Nikolaj Schumacher
0 siblings, 2 replies; 4+ messages in thread
From: Kristi Tsukida @ 2009-04-07 19:14 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 262 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 277 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.4853.1239167381.31690.help-gnu-emacs@gnu.org>]
* Re: How to prevent window splitting when opening multiple files on command line
[not found] <mailman.4853.1239167381.31690.help-gnu-emacs@gnu.org>
@ 2009-04-08 7:09 ` Giorgos Keramidas
0 siblings, 0 replies; 4+ messages in thread
From: Giorgos Keramidas @ 2009-04-08 7:09 UTC (permalink / raw)
To: help-gnu-emacs
On Tue, 7 Apr 2009 12:14:02 -0700, Kristi Tsukida <kristi.tsukida@gmail.com> 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'.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-04-08 11:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-07 19:14 How to prevent window splitting when opening multiple files on command line Kristi Tsukida
2009-04-08 8:33 ` Peter Dyballa
2009-04-08 11:40 ` Nikolaj Schumacher
[not found] <mailman.4853.1239167381.31690.help-gnu-emacs@gnu.org>
2009-04-08 7:09 ` Giorgos Keramidas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).