Received: (at 44901) by debbugs.gnu.org; 27 Nov 2020 10:05:18 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 27 05:05:18 2020 Received: from localhost ([127.0.0.1]:44048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1kiacv-0006jX-Sf for submit <at> debbugs.gnu.org; Fri, 27 Nov 2020 05:05:18 -0500 Received: from static.rcdrun.com ([95.85.24.50]:44563) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <bugs@HIDDEN>) id 1kiacu-0006jK-7l for 44901 <at> debbugs.gnu.org; Fri, 27 Nov 2020 05:05:16 -0500 Received: from localhost ([::ffff:197.157.0.29]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002C000B.000000005FC0CF55.00007801; Fri, 27 Nov 2020 10:05:09 +0000 Date: Fri, 27 Nov 2020 13:02:25 +0300 From: Jean Louis <bugs@HIDDEN> To: Jean Louis <bugs@HIDDEN> Subject: Re: bug#44901: 28.0.50; dired-compress-file: provide customization for compressing command Message-ID: <X8DOsZ9OmYL8vggb@HIDDEN> References: <courier.000000005FC0CBD9.000075CF@HIDDEN> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <courier.000000005FC0CBD9.000075CF@HIDDEN> User-Agent: Mutt/2.0 (3d08634) (2020-11-07) X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.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 the administrator of that system for details. Content preview: Additionally this variable should be updated: (defvar dired-compress-files-alist '(("\\.tar\\.gz\\'" . "tar -cf - %i | gzip -c9 > %o") ("\\.tar\\.bz2\\'" . "tar -cf - %i | bzip2 -c9 > %o") ("\\.tar\\.xz\\'" . "tar -cf - %i | xz -c9 > %o") ("\\.ta [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 1.5 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [197.157.0.29 listed in dnsbl.sorbs.net] X-Debbugs-Envelope-To: 44901 Cc: 44901 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 0.5 (/) Additionally this variable should be updated: (defvar dired-compress-files-alist '(("\\.tar\\.gz\\'" . "tar -cf - %i | gzip -c9 > %o") ("\\.tar\\.bz2\\'" . "tar -cf - %i | bzip2 -c9 > %o") ("\\.tar\\.xz\\'" . "tar -cf - %i | xz -c9 > %o") ("\\.tar\\.zst\\'" . "tar -cf - %i | zstd -19 -o %o") ("\\.zip\\'" . "zip %o -r --filesync %i")) to be: (defvar dired-compress-files-alist '(("\\.tar\\.gz\\'" . "tar -cf - %i | gzip -c9 > %o") ("\\.tar\\.bz2\\'" . "tar -cf - %i | bzip2 -c9 > %o") ("\\.tar\\.xz\\'" . "tar -cf - %i | xz -c9 > %o") ("\\.tar\\.lz\\'" . "tar -cf - %i | lzip -c9 > %o") ;; new line for lzip ("\\.tar\\.lzo\\'" . "tar -cf - %i | lzop -c9 > %o") ;; new line for lzop ("\\.tar\\.zst\\'" . "tar -cf - %i | zstd -19 -o %o") ("\\.zip\\'" . "zip %o -r --filesync %i")) Updating that function with those compressors is useful and related this wish to have "gzip" also customizable. As dired-x supports decompressing various files but user have no possibility to customize the compressor command. There are also pbzip2, pigz, pixz, pixz that offer parallel compression that could be included in future.
bug-gnu-emacs@HIDDEN
:bug#44901
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 27 Nov 2020 09:50:28 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 27 04:50:28 2020 Received: from localhost ([127.0.0.1]:44010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1kiaOa-0006Jb-EN for submit <at> debbugs.gnu.org; Fri, 27 Nov 2020 04:50:28 -0500 Received: from lists.gnu.org ([209.51.188.17]:57894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <support1@HIDDEN>) id 1kiaOV-0006JM-KP for submit <at> debbugs.gnu.org; Fri, 27 Nov 2020 04:50:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <support1@HIDDEN>) id 1kiaOU-00071v-Fp for bug-gnu-emacs@HIDDEN; Fri, 27 Nov 2020 04:50:23 -0500 Received: from static.rcdrun.com ([95.85.24.50]:59019) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <support1@HIDDEN>) id 1kiaOS-0004uG-78 for bug-gnu-emacs@HIDDEN; Fri, 27 Nov 2020 04:50:21 -0500 Received: from localhost ([::ffff:197.157.0.29]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002C1AE6.000000005FC0CBDA.000075CF; Fri, 27 Nov 2020 09:50:17 +0000 Date: Fri, 27 Nov 2020 12:50:16 +0300 From: Jean Louis <bugs@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 28.0.50; dired-compress-file: provide customization for compressing command MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <courier.000000005FC0CBD9.000075CF@HIDDEN> Received-SPF: pass client-ip=95.85.24.50; envelope-from=support1@HIDDEN; helo=static.rcdrun.com X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_SORBS_WEB=1.5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.6 (/) In the function: dired-compress-file there is hard coded gzip as compressor: (dired-check-process (concat "Compressing " file) "gzip" "-f" file)) It would be useful to have customization as there are various other compressors that are often used to distribute files such as these, and all of them supprot -f option: - bzip2 - xz - lzip - there may be others Customization option could be called dired-compress-command or similar and it could default to gzip (defcustom dired-compress-command "gzip" "Default compressing command for dired. The commpressing command shall support the option `-f' to force overwriting the file" :type 'string :group 'dired) Then the part here in the function `dired-compress-file' can be changed to: (dired-check-process (concat "Compressing " file) dired-compress-command "-f" file)) Thanks, Jean Louis ⎔ λ 🄯 𝍄 𝌡 𝌚
Jean Louis <bugs@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#44901
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.