From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#27158: 25.2; Eliminating old usage of completing-read from built-in files Date: Wed, 31 May 2017 07:51:51 -0700 (PDT) Message-ID: <562784bd-e22b-411d-8230-4f95fe2fa7db@default> References: <24f4a025-ad7b-06e5-10ee-f122bef32402@thompsonclan.org> <0276a0cd-874b-47ee-a2dc-fe8ca08ece9d@default> <21029018-5890-e545-8b50-ee856bc2caec@yandex.ru> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1496242391 3556 195.159.176.226 (31 May 2017 14:53:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 31 May 2017 14:53:11 +0000 (UTC) To: Dmitry Gutov , Ryan , 27158@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 31 16:53:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dG4zj-0000dp-KD for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 May 2017 16:53:07 +0200 Original-Received: from localhost ([::1]:59990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dG4zp-0006me-21 for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 May 2017 10:53:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dG4zh-0006mY-TY for bug-gnu-emacs@gnu.org; Wed, 31 May 2017 10:53:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dG4zd-0007yw-U2 for bug-gnu-emacs@gnu.org; Wed, 31 May 2017 10:53:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44876) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dG4zd-0007yq-R8 for bug-gnu-emacs@gnu.org; Wed, 31 May 2017 10:53:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dG4zd-00032C-L2 for bug-gnu-emacs@gnu.org; Wed, 31 May 2017 10:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 May 2017 14:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27158 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27158-submit@debbugs.gnu.org id=B27158.149624232311592 (code B ref 27158); Wed, 31 May 2017 14:53:01 +0000 Original-Received: (at 27158) by debbugs.gnu.org; 31 May 2017 14:52:03 +0000 Original-Received: from localhost ([127.0.0.1]:47551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dG4yh-00030s-2H for submit@debbugs.gnu.org; Wed, 31 May 2017 10:52:03 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:41224) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dG4yf-000300-Ax for 27158@debbugs.gnu.org; Wed, 31 May 2017 10:52:01 -0400 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v4VEprOj022292 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 31 May 2017 14:51:53 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v4VEpqri031974 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 31 May 2017 14:51:53 GMT Original-Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v4VEpqGN029317; Wed, 31 May 2017 14:51:52 GMT In-Reply-To: <21029018-5890-e545-8b50-ee856bc2caec@yandex.ru> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6767.5000 (x86)] X-Source-IP: userv0022.oracle.com [156.151.31.74] 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: 208.118.235.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:133088 Archived-At: > > Would you make a default arg be mandatory instead of optional? > > Is that it? If not, what default default would you propose? >=20 > It's not necessary. What's not necessary? The argument is either optional or mandatory. If optional, what default behavior do you want? Or are you saying that the default arg should just be removed from `completing-read', because "it's not necessary"? Not necessary for whom? Why isn't it ever a useful thing to have? Just because some callers might not need it does not mean that it is not useful for other callers. > > What should be returned if no explicit default is provided and > > the user hits RET with no input? >=20 > Prohibit them from finishing completion, except through entering > a valid value, or pressing C-g. (while ) Is that hard? > > In any case, nothing stops someone from defining their own > > `my-completing-read', which does not have this feature, er, > > quirk. I don't see the problem. >=20 > That doesn't help if we want to augment completing-read-function > and all packages using it. What happens when you set `completing-read-function' to your `my-completing-read'?