aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/minibuf.c31
2 files changed, 25 insertions, 12 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 7d1501eca9b..1a5f100877c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12008-05-02 Juri Linkov <juri@jurta.org>
2
3 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
4 (Fread_variable, Fread_buffer, Fcompleting_read): Document
5 the DEFAULT argument as a list of default values in docstrings.
6
12008-05-01 Chong Yidong <cyd@stupidchicken.com> 72008-05-01 Chong Yidong <cyd@stupidchicken.com>
2 8
3 * puresize.h (BASE_PURESIZE): Increase to 1210000. 9 * puresize.h (BASE_PURESIZE): Increase to 1210000.
diff --git a/src/minibuf.c b/src/minibuf.c
index 34f16c2dc95..71edfbd5281 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -974,10 +974,12 @@ Fifth arg HIST, if non-nil, specifies a history list and optionally
974 history commands. For consistency, you should also specify that 974 history commands. For consistency, you should also specify that
975 element of the history as the value of INITIAL-CONTENTS. Positions 975 element of the history as the value of INITIAL-CONTENTS. Positions
976 are counted starting from 1 at the beginning of the list. 976 are counted starting from 1 at the beginning of the list.
977Sixth arg DEFAULT-VALUE is the default value. If non-nil, it is available 977Sixth arg DEFAULT-VALUE is the default value or the list of default values.
978 for history commands; but, unless READ is non-nil, `read-from-minibuffer' 978 If non-nil, it is available for history commands, and as the value
979 does NOT return DEFAULT-VALUE if the user enters empty input! It returns 979 (or the first element of the list of default values) to return
980 the empty string. 980 if the user enters the empty string. But, unless READ is non-nil,
981 `read-from-minibuffer' does NOT return DEFAULT-VALUE if the user enters
982 empty input! It returns the empty string.
981Seventh arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer inherits 983Seventh arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer inherits
982 the current input method and the setting of `enable-multibyte-characters'. 984 the current input method and the setting of `enable-multibyte-characters'.
983If the variable `minibuffer-allow-text-properties' is non-nil, 985If the variable `minibuffer-allow-text-properties' is non-nil,
@@ -1073,9 +1075,10 @@ If non-nil, second arg INITIAL-INPUT is a string to insert before reading.
1073The third arg HISTORY, if non-nil, specifies a history list 1075The third arg HISTORY, if non-nil, specifies a history list
1074 and optionally the initial position in the list. 1076 and optionally the initial position in the list.
1075See `read-from-minibuffer' for details of HISTORY argument. 1077See `read-from-minibuffer' for details of HISTORY argument.
1076Fourth arg DEFAULT-VALUE is the default value. If non-nil, it is used 1078Fourth arg DEFAULT-VALUE is the default value or the list of default values.
1077 for history commands, and as the value to return if the user enters 1079 If non-nil, it is used for history commands, and as the value (or the first
1078 the empty string. 1080 element of the list of default values) to return if the user enters the
1081 empty string.
1079Fifth arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer inherits 1082Fifth arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer inherits
1080 the current input method and the setting of `enable-multibyte-characters'. */) 1083 the current input method and the setting of `enable-multibyte-characters'. */)
1081 (prompt, initial_input, history, default_value, inherit_input_method) 1084 (prompt, initial_input, history, default_value, inherit_input_method)
@@ -1112,7 +1115,8 @@ the current input method and the setting of`enable-multibyte-characters'. */)
1112 1115
1113DEFUN ("read-command", Fread_command, Sread_command, 1, 2, 0, 1116DEFUN ("read-command", Fread_command, Sread_command, 1, 2, 0,
1114 doc: /* Read the name of a command and return as a symbol. 1117 doc: /* Read the name of a command and return as a symbol.
1115Prompt with PROMPT. By default, return DEFAULT-VALUE. */) 1118Prompt with PROMPT. By default, return DEFAULT-VALUE or its first element
1119if it is a list. */)
1116 (prompt, default_value) 1120 (prompt, default_value)
1117 Lisp_Object prompt, default_value; 1121 Lisp_Object prompt, default_value;
1118{ 1122{
@@ -1146,7 +1150,8 @@ Prompt with PROMPT. */)
1146 1150
1147DEFUN ("read-variable", Fread_variable, Sread_variable, 1, 2, 0, 1151DEFUN ("read-variable", Fread_variable, Sread_variable, 1, 2, 0,
1148 doc: /* Read the name of a user variable and return it as a symbol. 1152 doc: /* Read the name of a user variable and return it as a symbol.
1149Prompt with PROMPT. By default, return DEFAULT-VALUE. 1153Prompt with PROMPT. By default, return DEFAULT-VALUE or its first element
1154if it is a list.
1150A user variable is one for which `user-variable-p' returns non-nil. */) 1155A user variable is one for which `user-variable-p' returns non-nil. */)
1151 (prompt, default_value) 1156 (prompt, default_value)
1152 Lisp_Object prompt, default_value; 1157 Lisp_Object prompt, default_value;
@@ -1172,6 +1177,7 @@ DEFUN ("read-buffer", Fread_buffer, Sread_buffer, 1, 3, 0,
1172 doc: /* Read the name of a buffer and return as a string. 1177 doc: /* Read the name of a buffer and return as a string.
1173Prompt with PROMPT. 1178Prompt with PROMPT.
1174Optional second arg DEF is value to return if user enters an empty line. 1179Optional second arg DEF is value to return if user enters an empty line.
1180 If DEF is a list of default values, return its first element.
1175If optional third arg REQUIRE-MATCH is non-nil, 1181If optional third arg REQUIRE-MATCH is non-nil,
1176 only existing buffer names are allowed. 1182 only existing buffer names are allowed.
1177The argument PROMPT should be a string ending with a colon and a space. */) 1183The argument PROMPT should be a string ending with a colon and a space. */)
@@ -1723,8 +1729,9 @@ REQUIRE-MATCH can take the following values:
1723- anything else behaves like t except that typing RET does not exit if it 1729- anything else behaves like t except that typing RET does not exit if it
1724 does non-null completion. 1730 does non-null completion.
1725 1731
1726If the input is null, `completing-read' returns DEF, or an empty string 1732If the input is null, `completing-read' returns DEF, or the first element
1727 if DEF is nil, regardless of the value of REQUIRE-MATCH. 1733of the list of default values, or an empty string if DEF is nil,
1734regardless of the value of REQUIRE-MATCH.
1728 1735
1729If INITIAL-INPUT is non-nil, insert it in the minibuffer initially, 1736If INITIAL-INPUT is non-nil, insert it in the minibuffer initially,
1730 with point positioned at the end. 1737 with point positioned at the end.
@@ -1748,7 +1755,7 @@ HIST, if non-nil, specifies a history list and optionally the initial
1748 1 at the beginning of the list. The variable `history-length' 1755 1 at the beginning of the list. The variable `history-length'
1749 controls the maximum length of a history list. 1756 controls the maximum length of a history list.
1750 1757
1751DEF, if non-nil, is the default value. 1758DEF, if non-nil, is the default value or the list of default values.
1752 1759
1753If INHERIT-INPUT-METHOD is non-nil, the minibuffer inherits 1760If INHERIT-INPUT-METHOD is non-nil, the minibuffer inherits
1754 the current input method and the setting of `enable-multibyte-characters'. 1761 the current input method and the setting of `enable-multibyte-characters'.