From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 15 11:51:27 2014 Received: (at submit) by debbugs.gnu.org; 15 Jan 2014 16:51:27 +0000 Received: from localhost ([127.0.0.1]:52263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3Tgc-0006bo-FP for submit@debbugs.gnu.org; Wed, 15 Jan 2014 11:51:27 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38652) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3T0b-0005Qc-5e for submit@debbugs.gnu.org; Wed, 15 Jan 2014 11:08:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3T0T-0003sQ-Mk for submit@debbugs.gnu.org; Wed, 15 Jan 2014 11:08:00 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3T0T-0003sM-Iz for submit@debbugs.gnu.org; Wed, 15 Jan 2014 11:07:53 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3T0N-0007WM-Ad for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 11:07:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3T0G-0003qS-Cq for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 11:07:47 -0500 Received: from moutng.kundenserver.de ([212.227.126.187]:56733) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3T0G-0003qK-27 for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 11:07:40 -0500 Received: from RECHNER88 ([94.135.232.130]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0MLkAx-1W3Bt43kcl-000zTm; Wed, 15 Jan 2014 17:07:38 +0100 From: "Tobias" To: Subject: Enhancement: emacs library jka-compr Date: Wed, 15 Jan 2014 17:07:37 +0100 Message-ID: <003701cf120b$e8d8db60$ba8a9220$@tn-home.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0038_01CF1214.4AA077B0" X-Mailer: Microsoft Outlook 14.0 Thread-Index: Ac8SBshV3vYxdNKTTqaxGc2aecvKdg== Content-Language: de X-Provags-ID: V02:K0:r7CHyoRNLK6iFGjIJf0s+AFF4E74QBx9/F7P3LkQGOV KvagOU/bRD6ctAo2XdCJqoUd1gdA6tKaswJ+EEYqN2i2xeDtt+ lbF0RrpBpSum210Rtcxll28Tj+O79EdztOHj9Ws8euesqc/Gh3 L5emSE123stXyBFN9EqdK8KWGg6d3p9hW/LHKGAhFdsHDmjtDN KEpAtHIsPwYc63H9TBt0UUNJY9If2m9oP/tG1k6Ud2qe8TYg86 XwcOFlKisPfwyfZhRsz9HR93Y7QLwz/ZHOFnH4DGmR6/5fBUIc S2v0GqaGu7pAfK+VBm5h2fsBbstosX7HSzvAcBeMZ22hc89MV1 p1ZORJ4zLpkWpK0YTqyjmR72NRzouiX0w9Muh6xQG X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 15 Jan 2014 11:51:24 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) This is a multipart message in MIME format. ------=_NextPart_000_0038_01CF1214.4AA077B0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Description: The question and answer at http://stackoverflow.com/questions/21118197/how-to-automatically-decompress- a-custom-compressed-file-when-opened-in-emacs/21127244#21127244 show that it would be nice if the arguments of the compression/uncompression program would be evaluated. The following patch provides that possibility with almost no costs. The patch includes the evaluation of the arguments as well as the necessary changes to the customization of jka-compr-info-compress-args and its documentation. File: jka-cmpr-hook.el Version: GNU Emacs 24.3.1 (x86_64-unknown-cygwin, GTK+ Version 3.8.2) of 2013-08-20 on moufang Patch: 99c99 < (defun jka-compr-info-compress-args (info) (aref info 3)) --- > (defun jka-compr-info-compress-args (info) (mapcar 'apply (aref info 3))) 102c102 < (defun jka-compr-info-uncompress-args (info) (aref info 6)) --- > (defun jka-compr-info-uncompress-args (info) (mapcar 'apply (aref info 6))) 260c260,263 < compress-args is a list of args to pass to the compress program --- > compress-args is a list of args to pass to the compress program, > each arg may be a string or a lisp expression > the variable FILENAME is bound to the name of the file > to be compressed 267a271 > (analogeous to compress-args) 296c300 < (repeat :tag "Uncompress Arguments" string) --- > (repeat :tag "Uncompress Arguments" (choice (string) (sexp))) ------=_NextPart_000_0038_01CF1214.4AA077B0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Description:

The question and answer = at

http://stackoverflow.com/questions/21118197/how-to-automatically-decom= press-a-custom-compressed-file-when-opened-in-emacs/21127244#21127244=

show that = it would be nice if the arguments of the compression/uncompression = program would be evaluated.

The following patch provides that = possibility with almost no costs.

The patch includes the evaluation = of the arguments as well as the necessary changes to the customization = of jka-compr-info-compress-args and its = documentation.

 

File: jka-cmpr-hook.el

Version: GNU Emacs 24.3.1 = (x86_64-unknown-cygwin, GTK+ Version 3.8.2) of 2013-08-20 on = moufang

Patch:

99c99

< (defun = jka-compr-info-compress-args        = (info)  (aref info 3))

---

> (defun = jka-compr-info-compress-args        = (info)  (mapcar 'apply (aref info 3)))

102c102

< (defun = jka-compr-info-uncompress-args      = (info)  (aref info 6))

---

> (defun = jka-compr-info-uncompress-args      = (info)  (mapcar 'apply (aref info 6)))

260c260,263

<    = compress-args         is a list = of args to pass to the compress program

---

>    = compress-args         is a list = of args to pass to the compress program,

>         &n= bsp;           &nb= sp;    each arg may be a string or a lisp = expression

>         &n= bsp;           &nb= sp;    the variable FILENAME is bound to the name of the = file

>         &n= bsp;           &nb= sp;    to be compressed

267a271

>         &n= bsp;           &nb= sp;    (analogeous to = compress-args)

296c300

< =             &= nbsp;           &n= bsp;           &nb= sp;       (repeat :tag "Uncompress = Arguments" string)

---

> =             &= nbsp;           &n= bsp;           &nb= sp;       (repeat :tag "Uncompress = Arguments" (choice (string) (sexp)))

 

------=_NextPart_000_0038_01CF1214.4AA077B0-- From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 14 21:47:40 2019 Received: (at 16454) by debbugs.gnu.org; 15 Aug 2019 01:47:40 +0000 Received: from localhost ([127.0.0.1]:50081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hy4rb-0000ut-RF for submit@debbugs.gnu.org; Wed, 14 Aug 2019 21:47:40 -0400 Received: from quimby.gnus.org ([80.91.231.51]:60512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hy4ra-0000um-7h for 16454@debbugs.gnu.org; Wed, 14 Aug 2019 21:47:38 -0400 Received: from 24-104-73-23-ip-static.hfc.comcastbusiness.net ([24.104.73.23] helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hy4rV-0006S6-HF; Thu, 15 Aug 2019 03:47:36 +0200 From: Lars Ingebrigtsen To: "Tobias" Subject: Re: bug#16454: Enhancement: emacs library jka-compr References: <003701cf120b$e8d8db60$ba8a9220$@tn-home.de> Mail-Copies-To: never Date: Wed, 14 Aug 2019 18:47:31 -0700 In-Reply-To: <003701cf120b$e8d8db60$ba8a9220$@tn-home.de> (Tobias's message of "Wed, 15 Jan 2014 17:07:37 +0100") Message-ID: <874l2j8aj0.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "Tobias" writes: > The question and answer at > > http://stackoverflow.com/questions/21118197/how-to-automatically-decompress- > a-custom-compressed-file-when-opened-in-emacs/21127244#21127244 > > show that it would b [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16454 Cc: 16454@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "Tobias" writes: > The question and answer at > > http://stackoverflow.com/questions/21118197/how-to-automatically-decompress- > a-custom-compressed-file-when-opened-in-emacs/21127244#21127244 > > show that it would be nice if the arguments of the compression/uncompression > program would be evaluated. [...] > < (defun jka-compr-info-compress-args (info) (aref info 3)) > > --- > >> (defun jka-compr-info-compress-args (info) (mapcar 'apply (aref > info 3))) (I'm going through old bug reports that have unfortunately gotten no responses yet.) If I understand the patch correctly (it's unfortunately not a context patch (and has apparently been mangled in transport), which makes it hard to read), you basically allow the decompressors to be sexps in addition to strings. I think if the syntax here is to be extended, I don't think a sexp would be the best solution -- a function, for instance, seems more natural. But I also think that this seems like a pretty niche thing to do, and which can be (as the stackoverflow thread shows) be achieved through other means, so I don't think this sounds like it's worth adding. So I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 14 21:47:50 2019 Received: (at control) by debbugs.gnu.org; 15 Aug 2019 01:47:50 +0000 Received: from localhost ([127.0.0.1]:50084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hy4rm-0000vG-3r for submit@debbugs.gnu.org; Wed, 14 Aug 2019 21:47:50 -0400 Received: from quimby.gnus.org ([80.91.231.51]:60526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hy4rk-0000v8-Cq for control@debbugs.gnu.org; Wed, 14 Aug 2019 21:47:48 -0400 Received: from 24-104-73-23-ip-static.hfc.comcastbusiness.net ([24.104.73.23] helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hy4rh-0006SD-DE for control@debbugs.gnu.org; Thu, 15 Aug 2019 03:47:47 +0200 Date: Wed, 14 Aug 2019 18:47:43 -0700 Message-Id: <87zhkb6vy8.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #16454 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 16454 wontfix close 16454 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 16454 wontfix close 16454 quit From unknown Tue Aug 19 13:27:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 12 Sep 2019 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator