diff options
| author | Chong Yidong | 2011-12-06 16:50:46 +0800 |
|---|---|---|
| committer | Chong Yidong | 2011-12-06 16:50:46 +0800 |
| commit | f6fc4d8702a7f87b5a663690c734c1b4ff42715d (patch) | |
| tree | fafda894c38c7569ef4bb4b468b446e3d9cd1799 /src | |
| parent | 5580f89da876cdc9cd47f036834172073ee00b95 (diff) | |
| download | emacs-f6fc4d8702a7f87b5a663690c734c1b4ff42715d.tar.gz emacs-f6fc4d8702a7f87b5a663690c734c1b4ff42715d.zip | |
* src/minibuf.c (Fread_from_minibuffer): Doc fix.
Fixes: debbugs:10228
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/minibuf.c | 34 |
2 files changed, 26 insertions, 12 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 30a504c4bda..fec0a0e41d7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-12-06 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * minibuf.c (Fread_from_minibuffer): Doc fix (Bug#10228). | ||
| 4 | |||
| 1 | 2011-12-06 Glenn Morris <rgm@gnu.org> | 5 | 2011-12-06 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * process.c (start_process_unwind): Treat any pid <= 0, except -2, | 7 | * process.c (start_process_unwind): Treat any pid <= 0, except -2, |
diff --git a/src/minibuf.c b/src/minibuf.c index 7ece5764203..ad5625e9ee9 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -905,26 +905,36 @@ DEFUN ("read-from-minibuffer", Fread_from_minibuffer, | |||
| 905 | The optional second arg INITIAL-CONTENTS is an obsolete alternative to | 905 | The optional second arg INITIAL-CONTENTS is an obsolete alternative to |
| 906 | DEFAULT-VALUE. It normally should be nil in new code, except when | 906 | DEFAULT-VALUE. It normally should be nil in new code, except when |
| 907 | HIST is a cons. It is discussed in more detail below. | 907 | HIST is a cons. It is discussed in more detail below. |
| 908 | |||
| 908 | Third arg KEYMAP is a keymap to use whilst reading; | 909 | Third arg KEYMAP is a keymap to use whilst reading; |
| 909 | if omitted or nil, the default is `minibuffer-local-map'. | 910 | if omitted or nil, the default is `minibuffer-local-map'. |
| 910 | If fourth arg READ is non-nil, then interpret the result as a Lisp object | 911 | |
| 912 | If fourth arg READ is non-nil, interpret the result as a Lisp object | ||
| 911 | and return that object: | 913 | and return that object: |
| 912 | in other words, do `(car (read-from-string INPUT-STRING))' | 914 | in other words, do `(car (read-from-string INPUT-STRING))' |
| 915 | |||
| 913 | Fifth arg HIST, if non-nil, specifies a history list and optionally | 916 | Fifth arg HIST, if non-nil, specifies a history list and optionally |
| 914 | the initial position in the list. It can be a symbol, which is the | 917 | the initial position in the list. It can be a symbol, which is the |
| 915 | history list variable to use, or it can be a cons cell | 918 | history list variable to use, or a cons cell (HISTVAR . HISTPOS). |
| 916 | (HISTVAR . HISTPOS). In that case, HISTVAR is the history list variable | 919 | In that case, HISTVAR is the history list variable to use, and |
| 917 | to use, and HISTPOS is the initial position for use by the minibuffer | 920 | HISTPOS is the initial position for use by the minibuffer history |
| 918 | history commands. For consistency, you should also specify that | 921 | commands. For consistency, you should also specify that element of |
| 919 | element of the history as the value of INITIAL-CONTENTS. Positions | 922 | the history as the value of INITIAL-CONTENTS. Positions are counted |
| 920 | are counted starting from 1 at the beginning of the list. | 923 | starting from 1 at the beginning of the list. |
| 921 | Sixth arg DEFAULT-VALUE is a default value or list of default values. | 924 | |
| 922 | If non-nil, it is available via history commands. If READ is | 925 | Sixth arg DEFAULT-VALUE, if non-nil, should be a string, which is used |
| 923 | non-nil, it is also the default to `read' if the user enters empty | 926 | as the default to `read' if READ is non-nil and the user enters |
| 924 | input. If READ is non-nil, `read-from-minibuffer' does NOT return | 927 | empty input. But if READ is nil, this function does _not_ return |
| 925 | DEFAULT-VALUE for empty input! It returns the empty string. | 928 | DEFAULT-VALUE for empty input! Instead, it returns the empty string. |
| 929 | |||
| 930 | Whatever the value of READ, DEFAULT-VALUE is made available via the | ||
| 931 | minibuffer history commands. DEFAULT-VALUE can also be a list of | ||
| 932 | strings, in which case all the strings are available in the history, | ||
| 933 | and the first string is the default to `read' if READ is non-nil. | ||
| 934 | |||
| 926 | Seventh arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer inherits | 935 | Seventh arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer inherits |
| 927 | the current input method and the setting of `enable-multibyte-characters'. | 936 | the current input method and the setting of `enable-multibyte-characters'. |
| 937 | |||
| 928 | If the variable `minibuffer-allow-text-properties' is non-nil, | 938 | If the variable `minibuffer-allow-text-properties' is non-nil, |
| 929 | then the string which is returned includes whatever text properties | 939 | then the string which is returned includes whatever text properties |
| 930 | were present in the minibuffer. Otherwise the value has no text properties. | 940 | were present in the minibuffer. Otherwise the value has no text properties. |