aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorSamer Masterson2015-05-28 14:30:31 -0700
committerSamer Masterson2015-05-28 14:31:47 -0700
commitd3605ed7d173aa1c23ad8944cf92e7b810330cb8 (patch)
tree2c4eae7863ce33907b27f5d6f5376a22e694099a /doc
parent5d75612ffa0c8de74100c4c13e041ec31512383d (diff)
downloademacs-d3605ed7d173aa1c23ad8944cf92e7b810330cb8.tar.gz
emacs-d3605ed7d173aa1c23ad8944cf92e7b810330cb8.zip
Show files when `initial-buffer-choice' is non-nil
* startup.el (command-line-1): When Emacs is given a file as an argument and `initial-buffer-choice' is non-nil, display both the file and `initial-buffer-choice'. For more than one file, show `initial-buffer-choice' and *Buffer List*. Refactor display-changing commands out of the command line arg parser. (initial-buffer-choice): Clarify docstring.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/os.texi12
1 files changed, 9 insertions, 3 deletions
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi
index 97fa083e07d..d18dee39429 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.
194It now exits if the option @code{--batch} was specified. 194It now exits if the option @code{--batch} was specified.
195 195
196@item 196@item
197If the @file{*scratch*} buffer exists and is empty, it inserts
198@code{initial-scratch-message} into that buffer.
199
200@item
197If @code{initial-buffer-choice} is a string, it visits the file (or 201If @code{initial-buffer-choice} is a string, it visits the file (or
198directory) with that name. If it is a function, it calls the function 202directory) with that name. If it is a function, it calls the function
199with no arguments and selects the buffer that it returns. 203with no arguments and selects the buffer that it returns. If one file
204is given as a command line argument, the file is opened alongside
205@code{initial-buffer-choice}. If more than one file is given, the
206@file{*Buffer List*} buffer is shown alongside
207@code{initial-buffer-choice}.
200@ignore 208@ignore
201@c I do not think this should be mentioned. AFAICS it is just a dodge 209@c I do not think this should be mentioned. AFAICS it is just a dodge
202@c around inhibit-startup-screen not being settable on a site-wide basis. 210@c around inhibit-startup-screen not being settable on a site-wide basis.
203If it is @code{t}, it selects the @file{*scratch*} buffer. 211If it is @code{t}, it selects the @file{*scratch*} buffer.
204@end ignore 212@end ignore
205If the @file{*scratch*} buffer exists and is empty, it inserts
206@code{initial-scratch-message} into that buffer.
207 213
208@c To make things nice and confusing, the next three items can be 214@c To make things nice and confusing, the next three items can be
209@c called from two places. If displaying a startup screen, they are 215@c called from two places. If displaying a startup screen, they are