diff options
| author | Tassilo Horn | 2013-12-20 15:18:21 +0100 |
|---|---|---|
| committer | Tassilo Horn | 2013-12-20 15:18:21 +0100 |
| commit | dfff928448aab7e56fec6c1476383b5b104b4c6d (patch) | |
| tree | 2f52444e4ba0e45a934ef1474c16b200bc01d7cf | |
| parent | bb8b90a69da4b7fad2377dcba0cdd236568b8f3f (diff) | |
| download | emacs-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/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/emacs/entering.texi | 13 | ||||
| -rw-r--r-- | doc/emacs/misc.texi | 6 | ||||
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/os.texi | 10 | ||||
| -rw-r--r-- | etc/NEWS | 1 |
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 @@ | |||
| 1 | 2013-12-20 Tassilo Horn <tsdh@gnu.org> | 1 | 2013-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 | |||
| 74 | information about @file{site-start.el}.} | 74 | information 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 |
| 77 | by setting the variable @code{initial-buffer-choice} to a | 77 | by setting the variable @code{initial-buffer-choice} to a a string |
| 78 | non-@code{nil} value. (In that case, even if you specify one or more | 78 | naming that file or directory. The value of |
| 79 | files on the command line, Emacs opens but does not display them.) | 79 | @code{initial-buffer-choice} may also be a function which should |
| 80 | The value of @code{initial-buffer-choice} should be the name of | 80 | return a buffer which is then displayed. @code{initial-buffer-choice} |
| 81 | the desired file or directory. | 81 | may also be @code{t} in which case the @file{*scratch*} buffer will be |
| 82 | shown. In any case, even if you specify one or more files on the | ||
| 83 | command 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 | |||
| 1542 | current text terminal. @xref{Windows Startup}. | 1542 | current text terminal. @xref{Windows Startup}. |
| 1543 | 1543 | ||
| 1544 | If you omit a filename argument while supplying the @samp{-c} option, | 1544 | If you omit a filename argument while supplying the @samp{-c} option, |
| 1545 | the new frame displays the @file{*scratch*} buffer by default. If | 1545 | the new frame displays the @file{*scratch*} buffer by default. This |
| 1546 | @code{initial-buffer-choice} is a string (@pxref{Entering Emacs}), the | 1546 | behavior can be customized using the variable |
| 1547 | new 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 @@ | |||
| 1 | 2013-12-20 Tassilo Horn <tsdh@gnu.org> | ||
| 2 | |||
| 3 | * os.texi: Document `initial-buffer-choice' changes. | ||
| 4 | |||
| 1 | 2013-12-20 Chong Yidong <cyd@gnu.org> | 5 | 2013-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 |
| 197 | If @code{initial-buffer-choice} is a string, it visits the file with | 197 | If @code{initial-buffer-choice} is a string, it visits the file with |
| 198 | that name. If the @file{*scratch*} buffer exists and is | 198 | that name. If it is a function, it calls the function and selects the |
| 199 | buffer returned by the function. It it is @code{t}, it selects the | ||
| 200 | @file{*scratch*} buffer. If the @file{*scratch*} buffer exists and is | ||
| 199 | empty, it inserts @code{initial-scratch-message} into that buffer. | 201 | empty, 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. | |||
| 271 | If non-@code{nil}, this variable is a string that specifies a file or | 273 | If non-@code{nil}, this variable is a string that specifies a file or |
| 272 | directory for Emacs to display after starting up, instead of the | 274 | directory for Emacs to display after starting up, instead of the |
| 273 | startup screen. | 275 | startup screen. |
| 274 | @ignore | 276 | If 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 | 277 | return a buffer which is then displayed. |
| 276 | @c around inhibit-startup-screen not being settable on a site-wide basis. | ||
| 277 | If its value is @code{t}, Emacs displays the @file{*scratch*} buffer. | 278 | If 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 |
| @@ -135,6 +135,7 @@ that want to ignore directory-locals while still respecting file-locals. | |||
| 135 | This unfinished feature was introduced by accident in Emacs 23.1; | 135 | This unfinished feature was introduced by accident in Emacs 23.1; |
| 136 | simply disabling Transient Mark mode does the same thing. | 136 | simply 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 |
| 139 | initial buffer. | 140 | initial buffer. |
| 140 | 141 | ||