From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#34794: 26.1; doc of `read-buffer' Date: Sat, 9 Mar 2019 09:43:40 -0800 (PST) Message-ID: References: <> <<831s3g7zv1.fsf@gnu.org>> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="163555"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34794@debbugs.gnu.org To: Eli Zaretskii , Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 09 18:44:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h2g15-000gQT-2M for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Mar 2019 18:44:11 +0100 Original-Received: from localhost ([127.0.0.1]:33575 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2g14-0001Sp-1X for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Mar 2019 12:44:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2g0x-0001Qc-Hu for bug-gnu-emacs@gnu.org; Sat, 09 Mar 2019 12:44:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h2g0w-0004ag-Lh for bug-gnu-emacs@gnu.org; Sat, 09 Mar 2019 12:44:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52052) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h2g0w-0004aU-GG for bug-gnu-emacs@gnu.org; Sat, 09 Mar 2019 12:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h2g0w-0002cy-D1 for bug-gnu-emacs@gnu.org; Sat, 09 Mar 2019 12:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Mar 2019 17:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34794 X-GNU-PR-Package: emacs Original-Received: via spool by 34794-submit@debbugs.gnu.org id=B34794.155215343110077 (code B ref 34794); Sat, 09 Mar 2019 17:44:02 +0000 Original-Received: (at 34794) by debbugs.gnu.org; 9 Mar 2019 17:43:51 +0000 Original-Received: from localhost ([127.0.0.1]:37363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h2g0l-0002cS-3H for submit@debbugs.gnu.org; Sat, 09 Mar 2019 12:43:51 -0500 Original-Received: from userp2130.oracle.com ([156.151.31.86]:48922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h2g0j-0002cF-I1 for 34794@debbugs.gnu.org; Sat, 09 Mar 2019 12:43:49 -0500 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x29HZ7ph163245; Sat, 9 Mar 2019 17:43:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=awNWewR75pnkxS3bpcqbkmrLbW6V/6Dwmro1/FWg/Jk=; b=HRqmxGDuhhs0iCZz/LXFfn0cxs/lpyzh7kao5fltKe5YamMFzY8ghKsNWQGfKMspPppd ghwESBR/gtDC5IpvnU6SybKoCEaFmmuTWFkJnB3GST37s460zD1LQSM4em3vLJ3bAQ5K dWJbZPxnEA2z3hvvjAFkUEP8atGMy0bx1MxZ1sqEy5GCw5iSHD/YfGQGZuEmebr8+2WG /LJXkfAG6r9t0i6pZYI7Tnc4dzVNn9z0veJ71OhNARYbKJAhn8KPcyE80p+nzfnYufEF wKDAn+YpBUNQHTFlgxpN8vjZyQk/6B2Plsrx1BKCT7RzsPgMN0CEkRfy1SBqKlS0DRV9 xw== Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2r44wtsd0x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 09 Mar 2019 17:43:43 +0000 Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x29Hhggu012307 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 9 Mar 2019 17:43:42 GMT Original-Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x29HhfJa026554; Sat, 9 Mar 2019 17:43:41 GMT In-Reply-To: <<831s3g7zv1.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4810.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9190 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=702 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903090134 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:156194 Archived-At: > > 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))'. >=20 > 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.