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: libnettle/libhogweed WIP Date: Wed, 19 Apr 2017 09:24:12 -0600 Organization: XCP-1 Message-ID: <34eef95d-05f6-6ff5-c3a9-2c0a2d256825@lanl.gov> References: <83a89gq3us.fsf@gnu.org> <87bmtjiv0w.fsf_-_@lifelogs.com> <83o9xjn06c.fsf@gnu.org> <87shmeb5ln.fsf_-_@lifelogs.com> <83y3w5z1ez.fsf@gnu.org> <87lgr6yakj.fsf@lifelogs.com> <87wpamww9k.fsf@lifelogs.com> <8337daggnj.fsf@gnu.org> <87d1cdwxt6.fsf@lifelogs.com> <83tw5pg1q3.fsf@gnu.org> <87zifhulc2.fsf@lifelogs.com> <83h91og80k.fsf@gnu.org> <87pogbuhoe.fsf@lifelogs.com> <834lxndmd9.fsf@gnu.org> <87efwrug6z.fsf@lifelogs.com> <87r30qu5av.fsf@lifelogs.com> <874lxmtxyy.fsf@lifelogs.com> <87r30prvwt.fsf@lifelogs.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1492615519 32727 195.159.176.226 (19 Apr 2017 15:25:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 19 Apr 2017 15:25:19 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 19 17:25:13 2017 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 1d0rTk-0008KY-6d for ged-emacs-devel@m.gmane.org; Wed, 19 Apr 2017 17:25:12 +0200 Original-Received: from localhost ([::1]:48847 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0rTp-0007fx-QF for ged-emacs-devel@m.gmane.org; Wed, 19 Apr 2017 11:25:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0rSv-0007ef-5l for emacs-devel@gnu.org; Wed, 19 Apr 2017 11:24:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0rSq-0005Nw-5l for emacs-devel@gnu.org; Wed, 19 Apr 2017 11:24:21 -0400 Original-Received: from proofpoint7.lanl.gov ([2620:126:4000:1801::a7]:36876) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d0rSp-0005M3-UA for emacs-devel@gnu.org; Wed, 19 Apr 2017 11:24:16 -0400 Original-Received: from pps.filterd (proofpoint7.lanl.gov [127.0.0.1]) by proofpoint7.lanl.gov (8.16.0.20/8.16.0.20) with SMTP id v3JFMWos152516 for ; Wed, 19 Apr 2017 09:24:13 -0600 Original-Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by proofpoint7.lanl.gov with ESMTP id 29wqnrvaud-1 for ; Wed, 19 Apr 2017 09:24:13 -0600 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay1.lanl.gov (Postfix) with ESMTP id 2A9B214757AE for ; Wed, 19 Apr 2017 09:24:13 -0600 (MDT) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay1.lanl.gov Original-Received: from bismuth.lanl.gov (bismuth.lanl.gov [128.165.246.103]) by mailrelay1.lanl.gov (Postfix) with ESMTP id 0736A14757B1 for ; Wed, 19 Apr 2017 09:24:13 -0600 (MDT) In-Reply-To: <87r30prvwt.fsf@lifelogs.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-04-19_13:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1704190129 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 2620:126:4000:1801::a7 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:214127 Archived-At: > There's no Lisp_Object AFAIK to represent a file. So for > BUFFER-OR-STRING what do I use to indicate a file? > > "file:///the/path" ; a special string format: URL format? Certainly not this one -- such a string could of course _be_ the data to be treated. > (file "/the/path") ; a nested list with a symbol? I like this one best, I think. > (insert-file-contents-literally "/the/path") ; a form, called in a temp buffer? Certainly it's powerful, but it clashes with lexical binding, and it's not clear (to me) how it's superior to the caller simply creating the temporary buffer themselves. (I seem to recall you were talking about protecting the data from Lisp inspection? ...But evalling whatever Lisp inside the buffer that holds the data, however temporarily, would of course be quite a hole in such a scheme.) 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.