diff options
| author | Glenn Morris | 2014-06-08 10:46:51 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-06-08 10:46:51 -0700 |
| commit | 6d069b1b3ab171c86deed9c19ef9736d32d8fc43 (patch) | |
| tree | 1693284bbc7abde24ce692e123c5e5802fbb63a2 | |
| parent | 99d8aedf0d6ab3fff025f72daf1f9bd28b07a8d2 (diff) | |
| download | emacs-6d069b1b3ab171c86deed9c19ef9736d32d8fc43.tar.gz emacs-6d069b1b3ab171c86deed9c19ef9736d32d8fc43.zip | |
Small doc updates re initial-buffer-choice
* doc/emacs/entering.texi (Entering Emacs): Small fix re initial-buffer-choice.
* doc/emacs/misc.texi (emacsclient Options): Copyedit.
* doc/lispref/os.texi (Startup Summary): Small fix for initial-buffer-choice.
* lisp/startup.el (initial-buffer-choice): Doc fix.
Reset :version (adding an option does not merit a :version bump).
| -rw-r--r-- | doc/emacs/ChangeLog | 3 | ||||
| -rw-r--r-- | doc/emacs/entering.texi | 17 | ||||
| -rw-r--r-- | doc/emacs/misc.texi | 6 | ||||
| -rw-r--r-- | doc/lispref/ChangeLog | 2 | ||||
| -rw-r--r-- | doc/lispref/os.texi | 15 | ||||
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/startup.el | 15 |
7 files changed, 40 insertions, 21 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 8f10c90dc07..7c85d3a617e 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2014-06-08 Glenn Morris <rgm@gnu.org> | 1 | 2014-06-08 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * entering.texi (Entering Emacs): Small fix re initial-buffer-choice. | ||
| 4 | * misc.texi (emacsclient Options): Copyedit. | ||
| 5 | |||
| 3 | * buffers.texi (Uniquify): Copyedits. | 6 | * buffers.texi (Uniquify): Copyedits. |
| 4 | * files.texi (Visiting): Update for uniquify changes. | 7 | * files.texi (Visiting): Update for uniquify changes. |
| 5 | 8 | ||
diff --git a/doc/emacs/entering.texi b/doc/emacs/entering.texi index 71b1fc839ac..f8ab4eb971a 100644 --- a/doc/emacs/entering.texi +++ b/doc/emacs/entering.texi | |||
| @@ -76,12 +76,17 @@ information about @file{site-start.el}.} | |||
| 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 string | 77 | by setting the variable @code{initial-buffer-choice} to a string |
| 78 | naming that file or directory. The value of | 78 | naming that file or directory. The value of |
| 79 | @code{initial-buffer-choice} may also be a function which should | 79 | @code{initial-buffer-choice} may also be a function (of no arguments) |
| 80 | return a buffer which is then displayed. @code{initial-buffer-choice} | 80 | that should return a buffer which is then displayed. |
| 81 | may also be @code{t} in which case the @file{*scratch*} buffer will be | 81 | @ignore |
| 82 | shown. In any case, even if you specify one or more files on the | 82 | @c I do not think this should be mentioned. AFAICS it is just a dodge |
| 83 | command line, Emacs opens but does not display them if | 83 | @c around inhibit-startup-screen not being settable on a site-wide basis. |
| 84 | @code{initial-buffer-choice} is non-nil. | 84 | @code{initial-buffer-choice} may also be @code{t} in which case the |
| 85 | @file{*scratch*} buffer will be shown. | ||
| 86 | @end ignore | ||
| 87 | If @code{initial-buffer-choice} is non-@code{nil}, then if you specify | ||
| 88 | any files on the command line, Emacs still visits them, but does not | ||
| 89 | display them initially. | ||
| 85 | 90 | ||
| 86 | @node Exiting | 91 | @node Exiting |
| 87 | @section Exiting Emacs | 92 | @section Exiting Emacs |
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi index 99bae873c2b..f09f23e6a4b 100644 --- a/doc/emacs/misc.texi +++ b/doc/emacs/misc.texi | |||
| @@ -1560,9 +1560,9 @@ option, like the @samp{-t} option, creates a new frame in the server's | |||
| 1560 | current text terminal. @xref{Windows Startup}. | 1560 | current text terminal. @xref{Windows Startup}. |
| 1561 | 1561 | ||
| 1562 | If you omit a filename argument while supplying the @samp{-c} option, | 1562 | If you omit a filename argument while supplying the @samp{-c} option, |
| 1563 | the new frame displays the @file{*scratch*} buffer by default. This | 1563 | the new frame displays the @file{*scratch*} buffer by default. You |
| 1564 | behavior can be customized using the variable | 1564 | can customize this behavior with the variable @code{initial-buffer-choice} |
| 1565 | @code{initial-buffer-choice} (@pxref{Entering Emacs}). | 1565 | (@pxref{Entering Emacs}). |
| 1566 | 1566 | ||
| 1567 | @item -F @var{alist} | 1567 | @item -F @var{alist} |
| 1568 | @itemx --frame-parameters=@var{alist} | 1568 | @itemx --frame-parameters=@var{alist} |
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index aa5589e1c16..2b00d9743b7 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2014-06-08 Glenn Morris <rgm@gnu.org> | 1 | 2014-06-08 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * os.texi (Startup Summary): Small fix for initial-buffer-choice. | ||
| 4 | |||
| 3 | * files.texi (Subroutines of Visiting): Mention uniquify. | 5 | * files.texi (Subroutines of Visiting): Mention uniquify. |
| 4 | 6 | ||
| 5 | * numbers.texi (Comparison of Numbers): Copyedits. | 7 | * numbers.texi (Comparison of Numbers): Copyedits. |
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi index 272a356c7fe..59ad376436a 100644 --- a/doc/lispref/os.texi +++ b/doc/lispref/os.texi | |||
| @@ -194,11 +194,16 @@ It processes any command-line options that were not handled earlier. | |||
| 194 | It now exits if the option @code{--batch} was specified. | 194 | 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 (or |
| 198 | that name. If it is a function, it calls the function and selects the | 198 | directory) with that name. If it is a function, it calls the function |
| 199 | buffer returned by the function. It it is @code{t}, it selects the | 199 | with no arguments and selects the buffer that it returns. |
| 200 | @file{*scratch*} buffer. If the @file{*scratch*} buffer exists and is | 200 | @ignore |
| 201 | empty, it inserts @code{initial-scratch-message} into that buffer. | 201 | @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. | ||
| 203 | If it is @code{t}, it selects the @file{*scratch*} buffer. | ||
| 204 | @end ignore | ||
| 205 | If the @file{*scratch*} buffer exists and is empty, it inserts | ||
| 206 | @code{initial-scratch-message} into that buffer. | ||
| 202 | 207 | ||
| 203 | @c To make things nice and confusing, the next three items can be | 208 | @c To make things nice and confusing, the next three items can be |
| 204 | @c called from two places. If displaying a startup screen, they are | 209 | @c called from two places. If displaying a startup screen, they are |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 66afe67a614..ca2781b40f2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2014-06-08 Glenn Morris <rgm@gnu.org> | 1 | 2014-06-08 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * startup.el (initial-buffer-choice): Doc fix. | ||
| 4 | Reset :version (adding an option does not merit a :version bump). | ||
| 5 | |||
| 3 | * bookmark.el (bookmark-load): | 6 | * bookmark.el (bookmark-load): |
| 4 | * uniquify.el (uniquify-buffer-name-style): Doc fixes. | 7 | * uniquify.el (uniquify-buffer-name-style): Doc fixes. |
| 5 | 8 | ||
diff --git a/lisp/startup.el b/lisp/startup.el index 5f1bdeadbd3..2f1d9af1cf1 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -42,20 +42,21 @@ | |||
| 42 | "Buffer to show after starting Emacs. | 42 | "Buffer to show after starting Emacs. |
| 43 | If the value is nil and `inhibit-startup-screen' is nil, show the | 43 | If the value is nil and `inhibit-startup-screen' is nil, show the |
| 44 | startup screen. If the value is a string, switch to a buffer | 44 | startup screen. If the value is a string, switch to a buffer |
| 45 | visiting the file or directory specified by that string. If the | 45 | visiting the file or directory that the string specifies. If the |
| 46 | value is a function, switch to the buffer returned by that | 46 | value is a function, call it with no arguments and switch to the buffer |
| 47 | function. If t, open the `*scratch*' buffer. | 47 | that it returns. If t, open the `*scratch*' buffer. |
| 48 | 48 | ||
| 49 | A string value also causes emacsclient to open the specified file | 49 | If you use `emacsclient' with no target file, then it obeys any |
| 50 | or directory when no target file is specified." | 50 | string or function value that this variable has." |
| 51 | :type '(choice | 51 | :type '(choice |
| 52 | (const :tag "Startup screen" nil) | 52 | (const :tag "Startup screen" nil) |
| 53 | (directory :tag "Directory" :value "~/") | 53 | (directory :tag "Directory" :value "~/") |
| 54 | (file :tag "File" :value "~/.emacs") | 54 | (file :tag "File" :value "~/.emacs") |
| 55 | (const :tag "Notes buffer" remember-notes) | 55 | ;; Note sure about hard-coding this as an option... |
| 56 | (const :tag "Remember Mode notes buffer" remember-notes) | ||
| 56 | (function :tag "Function") | 57 | (function :tag "Function") |
| 57 | (const :tag "Lisp scratch buffer" t)) | 58 | (const :tag "Lisp scratch buffer" t)) |
| 58 | :version "24.4" | 59 | :version "23.1" |
| 59 | :group 'initialization) | 60 | :group 'initialization) |
| 60 | 61 | ||
| 61 | (defcustom inhibit-startup-screen nil | 62 | (defcustom inhibit-startup-screen nil |