aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2019-03-10 20:20:07 +0200
committerEli Zaretskii2019-03-10 20:20:07 +0200
commitcc4cebf5f7f23be26d89ec6cd7890cb5ac36326c (patch)
treecccc41953573d915d3c07cf850ebe074af254436 /src
parentd026d9ad999028c034d69f2477495c6c3e193fc9 (diff)
downloademacs-cc4cebf5f7f23be26d89ec6cd7890cb5ac36326c.tar.gz
emacs-cc4cebf5f7f23be26d89ec6cd7890cb5ac36326c.zip
More improvements for 'read-buffer's doc string
* src/minibuf.c (Fread_buffer): Further improve the doc string. (Bug#347694)
Diffstat (limited to 'src')
-rw-r--r--src/minibuf.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/minibuf.c b/src/minibuf.c
index 216c01a7add..6964f350ffe 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -1111,20 +1111,20 @@ A user option, or customizable variable, is one for which
1111 1111
1112DEFUN ("read-buffer", Fread_buffer, Sread_buffer, 1, 4, 0, 1112DEFUN ("read-buffer", Fread_buffer, Sread_buffer, 1, 4, 0,
1113 doc: /* Read the name of a buffer and return it as a string. 1113 doc: /* Read the name of a buffer and return it as a string.
1114Prompt with PROMPT. 1114Prompt with PROMPT, which should be a string ending with a colon and a space.
1115Provides completion on buffer names the user types.
1115Optional second arg DEF is value to return if user enters an empty line, 1116Optional second arg DEF is value to return if user enters an empty line,
1116 instead of that empty string. 1117 instead of that empty string.
1117 If DEF is a list of default values, return its first element. 1118 If DEF is a list of default values, return its first element.
1118Optional third arg REQUIRE-MATCH determines whether non-existing 1119Optional third arg REQUIRE-MATCH has the same meaning as the
1119 buffer names are allowed. It has the same meaning as the
1120 REQUIRE-MATCH argument of `completing-read'. 1120 REQUIRE-MATCH argument of `completing-read'.
1121The argument PROMPT should be a string ending with a colon and a space. 1121Optional arg PREDICATE, if non-nil, is a function limiting the buffers that
1122can be considered. It will be called with each potential candidate, and
1123should return non-nil to accept the candidate for completion, nil otherwise.
1122If `read-buffer-completion-ignore-case' is non-nil, completion ignores 1124If `read-buffer-completion-ignore-case' is non-nil, completion ignores
1123case while reading the buffer name. 1125case while reading the buffer name.
1124If `read-buffer-function' is non-nil, this works by calling it as a 1126If `read-buffer-function' is non-nil, this works by calling it as a
1125function, instead of the usual behavior. 1127function, instead of the usual behavior. */)
1126Optional arg PREDICATE if non-nil is a function limiting the buffers that can
1127be considered. */)
1128 (Lisp_Object prompt, Lisp_Object def, Lisp_Object require_match, 1128 (Lisp_Object prompt, Lisp_Object def, Lisp_Object require_match,
1129 Lisp_Object predicate) 1129 Lisp_Object predicate)
1130{ 1130{