From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: cl-defstruct-based package.el, now with ert tests! Date: Thu, 14 Mar 2013 08:11:43 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87hakecha8.fsf@lifelogs.com> References: <87mwu9l6ju.fsf@fleche.redhat.com> <87obeog70m.fsf@yandex.ru> <87ip4wpjtw.fsf@lifelogs.com> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1363263132 11750 80.91.229.3 (14 Mar 2013 12:12:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Mar 2013 12:12:12 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 14 13:12:34 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UG71O-00074e-EI for ged-emacs-devel@m.gmane.org; Thu, 14 Mar 2013 13:12:34 +0100 Original-Received: from localhost ([::1]:45085 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG711-0003ER-SO for ged-emacs-devel@m.gmane.org; Thu, 14 Mar 2013 08:12:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG70t-0003BE-5t for emacs-devel@gnu.org; Thu, 14 Mar 2013 08:12:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UG70o-0007KG-SW for emacs-devel@gnu.org; Thu, 14 Mar 2013 08:12:03 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:46906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG70o-0007K6-MJ for emacs-devel@gnu.org; Thu, 14 Mar 2013 08:11:58 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UG718-0006oL-N6 for emacs-devel@gnu.org; Thu, 14 Mar 2013 13:12:18 +0100 Original-Received: from pool-72-70-84-108.bstnma.east.verizon.net ([72.70.84.108]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Mar 2013 13:12:18 +0100 Original-Received: from tzz by pool-72-70-84-108.bstnma.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Mar 2013 13:12:18 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 30 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-72-70-84-108.bstnma.east.verizon.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:H9kMTItVjPOrurtz3rUDQYM+7RU= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157844 Archived-At: On Thu, 14 Mar 2013 04:36:36 +0000 (UTC) Daniel Hackney wrote: DH> Ted Zlatanov lifelogs.com> writes: >> Agreed, maybe Daniel can explain why using `tar-mode' was questionable. >> Performance? DH> The answer is "it seemed yucky." `tar-mode' was clearly not intended to act as DH> an API for other programs looking to read tar files, so using it as such was DH> kind of hacky. Using the external "tar" program seems like the cleaner DH> alternative. Since package.el already uses the external tar program for DH> `package-tar-file-info', I figured depending on tar for more substantial stuff DH> was fine. If people really don't want to depend on the external program, I'll DH> remove it and just use `tar-mode'. I'm OK with the change if it doesn't break any existing W32 support. Otherwise we're leaving many Emacs users unable to use package.el. `tar-mode' seems pretty OK as far as the data extraction. So maybe we just need to pull the data functions out into a utility library? Either way, I'll wait for this to happen before working on the ELPA security (signing packages). So if I can help, let me know. DH> Is there any way to gunzip the data in a buffer without using an external DH> program? It would be nice to be able to use tar.gz files. Sorry, I don't know, but `ldd emacs' says libz is already available at least on GNU/Linux. So the C functions should be there. Ted