aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTassilo Horn2013-12-20 15:18:21 +0100
committerTassilo Horn2013-12-20 15:18:21 +0100
commitdfff928448aab7e56fec6c1476383b5b104b4c6d (patch)
tree2f52444e4ba0e45a934ef1474c16b200bc01d7cf
parentbb8b90a69da4b7fad2377dcba0cdd236568b8f3f (diff)
downloademacs-dfff928448aab7e56fec6c1476383b5b104b4c6d.tar.gz
emacs-dfff928448aab7e56fec6c1476383b5b104b4c6d.zip
Document `initial-buffer-choice' changes.
* doc/emacs/entering.texi: Document `initial-buffer-choice' changes. * doc/emacs/misc.texi (arguments): Document `initial-buffer-choice' changes. * doc/lispref/os.texi: Document `initial-buffer-choice' changes.
-rw-r--r--doc/emacs/ChangeLog4
-rw-r--r--doc/emacs/entering.texi13
-rw-r--r--doc/emacs/misc.texi6
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/os.texi10
-rw-r--r--etc/NEWS1
6 files changed, 25 insertions, 13 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 2a7a03d5278..f2be12e2002 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,5 +1,9 @@
12013-12-20 Tassilo Horn <tsdh@gnu.org> 12013-12-20 Tassilo Horn <tsdh@gnu.org>
2 2
3 * entering.texi: Document `initial-buffer-choice' changes.
4
5 * misc.texi (arguments): Document `initial-buffer-choice' changes.
6
3 * help.texi: Document that `?' now also shows subcommands of 7 * help.texi: Document that `?' now also shows subcommands of
4 prefix keys. 8 prefix keys.
5 9
diff --git a/doc/emacs/entering.texi b/doc/emacs/entering.texi
index bb89e6ffd8b..66b90d14476 100644
--- a/doc/emacs/entering.texi
+++ b/doc/emacs/entering.texi
@@ -74,11 +74,14 @@ up before reading @file{site-start.el}. @xref{Init File}, for
74information about @file{site-start.el}.} 74information about @file{site-start.el}.}
75 75
76 You can also force Emacs to display a file or directory at startup 76 You can also force Emacs to display a file or directory at startup
77by setting the variable @code{initial-buffer-choice} to a 77by setting the variable @code{initial-buffer-choice} to a a string
78non-@code{nil} value. (In that case, even if you specify one or more 78naming that file or directory. The value of
79files on the command line, Emacs opens but does not display them.) 79@code{initial-buffer-choice} may also be a function which should
80The value of @code{initial-buffer-choice} should be the name of 80return a buffer which is then displayed. @code{initial-buffer-choice}
81the desired file or directory. 81may also be @code{t} in which case the @file{*scratch*} buffer will be
82shown. In any case, even if you specify one or more files on the
83command line, Emacs opens but does not display them if
84@code{initial-buffer-choice} is non-nil.
82 85
83@node Exiting 86@node Exiting
84@section Exiting Emacs 87@section Exiting Emacs
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi
index 73c1c85e2f8..d2dfe281d7c 100644
--- a/doc/emacs/misc.texi
+++ b/doc/emacs/misc.texi
@@ -1542,9 +1542,9 @@ option, like the @samp{-t} option, creates a new frame in the server's
1542current text terminal. @xref{Windows Startup}. 1542current text terminal. @xref{Windows Startup}.
1543 1543
1544If you omit a filename argument while supplying the @samp{-c} option, 1544If you omit a filename argument while supplying the @samp{-c} option,
1545the new frame displays the @file{*scratch*} buffer by default. If 1545the new frame displays the @file{*scratch*} buffer by default. This
1546@code{initial-buffer-choice} is a string (@pxref{Entering Emacs}), the 1546behavior can be customized using the variable
1547new frame displays that file or directory instead. 1547@code{initial-buffer-choice} (@pxref{Entering Emacs}).
1548 1548
1549@item -F @var{alist} 1549@item -F @var{alist}
1550@itemx --frame-parameters=@var{alist} 1550@itemx --frame-parameters=@var{alist}
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 3ae7e0040cc..64c3ec42ca6 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,7 @@
12013-12-20 Tassilo Horn <tsdh@gnu.org>
2
3 * os.texi: Document `initial-buffer-choice' changes.
4
12013-12-20 Chong Yidong <cyd@gnu.org> 52013-12-20 Chong Yidong <cyd@gnu.org>
2 6
3 * text.texi (Changing Properties): Improve documentation for 7 * text.texi (Changing Properties): Improve documentation for
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi
index 38ebcccb688..bb2a797b637 100644
--- a/doc/lispref/os.texi
+++ b/doc/lispref/os.texi
@@ -195,7 +195,9 @@ It now exits if the option @code{--batch} was specified.
195 195
196@item 196@item
197If @code{initial-buffer-choice} is a string, it visits the file with 197If @code{initial-buffer-choice} is a string, it visits the file with
198that name. If the @file{*scratch*} buffer exists and is 198that name. If it is a function, it calls the function and selects the
199buffer returned by the function. It it is @code{t}, it selects the
200@file{*scratch*} buffer. If the @file{*scratch*} buffer exists and is
199empty, it inserts @code{initial-scratch-message} into that buffer. 201empty, it inserts @code{initial-scratch-message} into that buffer.
200 202
201@c To make things nice and confusing, the next three items can be 203@c To make things nice and confusing, the next three items can be
@@ -271,11 +273,9 @@ aliases for this variable.
271If non-@code{nil}, this variable is a string that specifies a file or 273If non-@code{nil}, this variable is a string that specifies a file or
272directory for Emacs to display after starting up, instead of the 274directory for Emacs to display after starting up, instead of the
273startup screen. 275startup screen.
274@ignore 276If its value is a function, Emacs calls that function which must
275@c I do not think this should be mentioned. AFAICS it is just a dodge 277return a buffer which is then displayed.
276@c around inhibit-startup-screen not being settable on a site-wide basis.
277If its value is @code{t}, Emacs displays the @file{*scratch*} buffer. 278If its value is @code{t}, Emacs displays the @file{*scratch*} buffer.
278@end ignore
279@end defopt 279@end defopt
280 280
281@defopt inhibit-startup-echo-area-message 281@defopt inhibit-startup-echo-area-message
diff --git a/etc/NEWS b/etc/NEWS
index a533b27d61f..dca067640d0 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -135,6 +135,7 @@ that want to ignore directory-locals while still respecting file-locals.
135This unfinished feature was introduced by accident in Emacs 23.1; 135This unfinished feature was introduced by accident in Emacs 23.1;
136simply disabling Transient Mark mode does the same thing. 136simply disabling Transient Mark mode does the same thing.
137 137
138+++
138** `initial-buffer-choice' can now specify a function to set up the 139** `initial-buffer-choice' can now specify a function to set up the
139initial buffer. 140initial buffer.
140 141