From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Davis Herring Newsgroups: gmane.emacs.devel Subject: Re: `read--expression' and `read-minibuffer' Date: Tue, 6 Sep 2016 13:02:23 -0600 Organization: XCP-1 Message-ID: <10888855-8ce3-648f-82ac-2b9e1409effc@lanl.gov> References: <60e5e890-6f50-4f38-a74f-e82ff83b24dc@default> <8e6be928-75ae-4714-bf03-d6505954cf21@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1473188763 21966 195.159.176.226 (6 Sep 2016 19:06:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 6 Sep 2016 19:06:03 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 Cc: Stefan Monnier , emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 06 21:06:00 2016 Return-path: Envelope-to: ged-emacs-devel@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 1bhLgj-0001l1-If for ged-emacs-devel@m.gmane.org; Tue, 06 Sep 2016 21:05:41 +0200 Original-Received: from localhost ([::1]:35618 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhLgO-0005U8-AI for ged-emacs-devel@m.gmane.org; Tue, 06 Sep 2016 15:05:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhLdp-0004Px-Lm for emacs-devel@gnu.org; Tue, 06 Sep 2016 15:02:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhLdf-0003ih-0c for emacs-devel@gnu.org; Tue, 06 Sep 2016 15:02:40 -0400 Original-Received: from proofpoint4.lanl.gov ([2001:400:4210:400::a4]:46700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhLde-0003iH-Lm for emacs-devel@gnu.org; Tue, 06 Sep 2016 15:02:30 -0400 Original-Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by mailgate4.lanl.gov (8.15.0.59/8.15.0.59) with ESMTP id u86J2N9s007882; Tue, 6 Sep 2016 13:02:23 -0600 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay1.lanl.gov (Postfix) with ESMTP id DB5E8141D6AE; Tue, 6 Sep 2016 13:02:23 -0600 (MDT) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay1.lanl.gov Original-Received: from chinstrap.lanl.gov (chinstrap.lanl.gov [128.165.123.246]) by mailrelay1.lanl.gov (Postfix) with ESMTP id C2D54141D6AD; Tue, 6 Sep 2016 13:02:23 -0600 (MDT) In-Reply-To: <8e6be928-75ae-4714-bf03-d6505954cf21@default> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.15.154, 1.0.3, 0.0.0000 definitions=2016-09-06_06:2016-09-06, 2016-09-06, 1970-01-01 signatures=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 2001:400:4210:400::a4 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:207218 Archived-At: >> Because it is tailored for that use case. The kind of completion >> it provides for instance assumes the S-exp is an Elisp expression. > > Of course it is an Elisp expression. It does not follow that > the Elisp expression that has been read will then be _evaluated_. In this thread, Stefan is defining an "Elisp expression" to be precisely an S-exp that is intended for `eval'. > Completion can be used and useful when constructing an Elisp > expression to be read, regardless of whether the expression > that is read will be evaluated, or can be evaluated without > error. So a variant of `read--expression' could be written that does a subset of that completion appropriate to the more general context of entering an S-exp. It might for instance be a flag passed to `read--expression'. This answers your original question: it's internal because we are still discovering the use cases and desirable interface for it. Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.