From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.bugs Subject: bug#19481: new tar-header-extractable-p, to use in tar-untar-buffer Date: Sat, 07 Feb 2015 20:10:41 +0000 Message-ID: <87r3u1eb3y.fsf_-_@violet.siamics.net> References: <871tne5qsd.fsf@violet.siamics.net> <83bnmibbla.fsf@gnu.org> <87wq5649qu.fsf_-_@violet.siamics.net> <87386ulj7a.fsf@violet.siamics.net> <83zj8zjq97.fsf@gnu.org> <87386ri50z.fsf_-_@violet.siamics.net> <83mw4zjitu.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1423339877 5909 80.91.229.3 (7 Feb 2015 20:11:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Feb 2015 20:11:17 +0000 (UTC) To: 19481@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 07 21:11:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1YKBii-0005VJ-DY for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Feb 2015 21:11:12 +0100 Original-Received: from localhost ([::1]:54390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKBih-0004Mt-Ix for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Feb 2015 15:11:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKBie-0004M0-Cy for bug-gnu-emacs@gnu.org; Sat, 07 Feb 2015 15:11:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKBib-0001vb-6G for bug-gnu-emacs@gnu.org; Sat, 07 Feb 2015 15:11:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKBiZ-0001vN-DO for bug-gnu-emacs@gnu.org; Sat, 07 Feb 2015 15:11:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YKBiY-0002nN-7Z for bug-gnu-emacs@gnu.org; Sat, 07 Feb 2015 15:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Shmakov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Feb 2015 20:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19481 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 19481-submit@debbugs.gnu.org id=B19481.142333985610733 (code B ref 19481); Sat, 07 Feb 2015 20:11:02 +0000 Original-Received: (at 19481) by debbugs.gnu.org; 7 Feb 2015 20:10:56 +0000 Original-Received: from localhost ([127.0.0.1]:36856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKBiR-0002n3-R9 for submit@debbugs.gnu.org; Sat, 07 Feb 2015 15:10:56 -0500 Original-Received: from fely.am-1.org ([78.47.74.50]:42849) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKBiO-0002mt-VD for 19481@debbugs.gnu.org; Sat, 07 Feb 2015 15:10:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=tpVYsePsdP/sxMCy5/seOfVAG0ZTnT6rZJYg4QcNjuc=; b=fX+C+q2TFbtoJqEy9nzCDiJuiwuWRUxXrwEVHjGNIHxcvda18JI2IhoYWCST8TU4AGSG+pInlI4jWUClqFm2dCla3xF7XPQuXAh8fP+TvbVAIv3cMRBRsaVHLJ1se370ximrS6QGHHXCTOYR51bb/IDpaKhvwAjBMFvuyGm2/ww=; Original-Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YKBiK-0004Op-K8 for 19481@debbugs.gnu.org; Sat, 07 Feb 2015 20:10:48 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YKBiD-0007Ag-RS for 19481@debbugs.gnu.org; Sun, 08 Feb 2015 03:10:41 +0700 Mail-Followup-To: 19481@debbugs.gnu.org In-Reply-To: <83mw4zjitu.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 31 Jan 2015 13:22:21 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99143 Archived-At: >>>>> Eli Zaretskii writes: >>>>> From: Ivan Shmakov Date: Sat, 31 Jan 2015 11:05:48 +0000 [=E2=80=A6] >>> Can we have a test suite for this file, >> Which of the two? (Or three, to count the .tar file produced by >> $ git archive.) > I meant tar-mode.el, and specifically where the new function is used. ACK. How do I provide a sample .tar file to use in the test? >> FTR, the two changes I suggest are not /inter/dependent, so I intend >> to push them as two separate commits. > Does the tar-header-extractable-p function make any sense without its > use in package.el? If so, then yes, these should be 2 separate > commits. I believe that this function may indeed be useful to any third-party code which needs to examine a Tar file before passing it to tar-untar-buffer. Also, the changes suggested make it easier to use the latter to extract only the members matching specific (i. e., defined by the caller) criteria. [=E2=80=A6] --=20 FSF associate member #7257 np. Fly by Night =E2=80=94 Rush =E2=80=A6 3= 013 B6A0 230E 334A