From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>, Drew Adams <drew.adams@oracle.com>
Cc: 34794@debbugs.gnu.org
Subject: bug#34794: 26.1; doc of `read-buffer'
Date: Sat, 9 Mar 2019 09:43:40 -0800 (PST) [thread overview]
Message-ID: <f996f3c7-0c92-4075-8888-ed0aab13eb33@default> (raw)
In-Reply-To: <<831s3g7zv1.fsf@gnu.org>>
> > AFAICT neither the doc string nor the Elisp manual states what the
> > default value is if argument DEF is nil. IOW, what is the default
> > buffer name if no explicit default is provided? It seems (without
> > thorough testing) to be the value of `(buffer-name (current-buffer))'.
>
> No, it's an empty string, and I think the doc string already conveys
> that.
I cannot tell from the doc string that the default value,
i.e., the value returned when DEF is nil, is the empty
string. I don't see how/where the doc string conveys
that at all. AFAICT, one would need to consult the C
source code to find that info.
Where in the doc string do find the info that a nil
value of DEF returns "" if the user enters an empty
line? Where do you see that stated or even implied?
> (Note that if read-buffer-function is non-nil, what happens
> then is entirely up to that function, which doesn't make it easy to
> say exactly how DEF is handled.)
It's not hard to state what the default DEF behavior
is, and then later say that if `read-buffer-function'
is non-nil then the use of the other args is up to it,
i.e., not necessarily as described above. This is
not unusual for a function that optionally accepts a
function arg as one possibility.
next parent reply other threads:[~2019-03-09 17:43 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <<b9668c05-e18f-4a3b-9c95-128b7f81fcda@default>
[not found] ` <<831s3g7zv1.fsf@gnu.org>
2019-03-09 17:43 ` Drew Adams [this message]
2019-03-09 18:16 ` bug#34794: 26.1; doc of `read-buffer' Eli Zaretskii
2019-03-09 18:26 ` Eli Zaretskii
[not found] <<<<b9668c05-e18f-4a3b-9c95-128b7f81fcda@default>
[not found] ` <<<<831s3g7zv1.fsf@gnu.org>
[not found] ` <<<f996f3c7-0c92-4075-8888-ed0aab13eb33@default>
[not found] ` <<<83r2bf7w21.fsf@gnu.org>
[not found] ` <<d87f0188-3a25-4a7e-a4f3-71e434b21ab2@default>
[not found] ` <<83o96i615x.fsf@gnu.org>
2019-03-10 22:23 ` Drew Adams
2019-03-11 14:26 ` Eli Zaretskii
2019-03-11 15:06 ` Drew Adams
2019-03-11 15:13 ` Eli Zaretskii
2019-03-11 15:21 ` Drew Adams
2019-03-11 16:09 ` Drew Adams
[not found] <<<b9668c05-e18f-4a3b-9c95-128b7f81fcda@default>
[not found] ` <<<831s3g7zv1.fsf@gnu.org>
[not found] ` <<f996f3c7-0c92-4075-8888-ed0aab13eb33@default>
[not found] ` <<83r2bf7w21.fsf@gnu.org>
2019-03-09 22:32 ` Drew Adams
2019-03-10 18:21 ` Eli Zaretskii
[not found] ` <<83o96j7vl4.fsf@gnu.org>
2019-03-09 22:34 ` Drew Adams
2019-03-09 16:31 Drew Adams
2019-03-09 16:54 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f996f3c7-0c92-4075-8888-ed0aab13eb33@default \
--to=drew.adams@oracle.com \
--cc=34794@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.