all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 34794@debbugs.gnu.org
Subject: bug#34794: 26.1; doc of `read-buffer'
Date: Sat, 09 Mar 2019 20:16:22 +0200	[thread overview]
Message-ID: <83r2bf7w21.fsf@gnu.org> (raw)
In-Reply-To: <f996f3c7-0c92-4075-8888-ed0aab13eb33@default> (message from Drew Adams on Sat, 9 Mar 2019 09:43:40 -0800 (PST))

> Date: Sat, 9 Mar 2019 09:43:40 -0800 (PST)
> From: Drew Adams <drew.adams@oracle.com>
> Cc: 34794@debbugs.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.

  Optional second arg DEF is value to return if user enters an empty line.

Doesn't this say that when DEF is omitted the function will return
that empty line?

> > (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.

Please suggest such a text, because I definitely don't see an easy way
of saying that, without triggering more bug reports like this one.





  reply	other threads:[~2019-03-09 18:16 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   ` bug#34794: 26.1; doc of `read-buffer' Drew Adams
2019-03-09 18:16     ` Eli Zaretskii [this message]
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=83r2bf7w21.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=34794@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /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.