From unknown Fri Jun 20 20:02:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44901: 28.0.50; dired-compress-file: provide customization for compressing command Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Nov 2020 09:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44901 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 44901@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160647062824288 (code B ref -1); Fri, 27 Nov 2020 09:51:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Nov 2020 09:50:28 +0000 Received: from localhost ([127.0.0.1]:44010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiaOa-0006Jb-EN for submit@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 ) id 1kiaOV-0006JM-KP for submit@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 ) id 1kiaOU-00071v-Fp for bug-gnu-emacs@gnu.org; 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 ) id 1kiaOS-0004uG-78 for bug-gnu-emacs@gnu.org; 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 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: Received-SPF: pass client-ip=95.85.24.50; envelope-from=support1@rcdrun.com; 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-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: -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 ⎔ λ 🄯 𝍄 𝌡 𝌚 From unknown Fri Jun 20 20:02:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44901: 28.0.50; dired-compress-file: provide customization for compressing command Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Nov 2020 10:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44901 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jean Louis Cc: 44901@debbugs.gnu.org Received: via spool by 44901-submit@debbugs.gnu.org id=B44901.160647151825891 (code B ref 44901); Fri, 27 Nov 2020 10:06:01 +0000 Received: (at 44901) by debbugs.gnu.org; 27 Nov 2020 10:05:18 +0000 Received: from localhost ([127.0.0.1]:44048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiacv-0006jX-Sf for submit@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 ) id 1kiacu-0006jK-7l for 44901@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 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: 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-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: 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. From unknown Fri Jun 20 20:02:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44901: 28.0.50; dired-compress-file: provide customization for compressing command Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Jan 2021 23:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44901 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jean Louis Cc: 44901@debbugs.gnu.org Received: via spool by 44901-submit@debbugs.gnu.org id=B44901.16114449462622 (code B ref 44901); Sat, 23 Jan 2021 23:36:01 +0000 Received: (at 44901) by debbugs.gnu.org; 23 Jan 2021 23:35:46 +0000 Received: from localhost ([127.0.0.1]:35613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3SRW-0000gE-4m for submit@debbugs.gnu.org; Sat, 23 Jan 2021 18:35:46 -0500 Received: from quimby.gnus.org ([95.216.78.240]:57244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3SRU-0000g0-P0 for 44901@debbugs.gnu.org; Sat, 23 Jan 2021 18:35:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=lwRpkKWCdC1qyDogHbkVquVgSGgQnbGMcj4blw2GG50=; b=ALAP3/ffIL8ff2LbVr5RV3063j LxytJQdMQn1ug3cXFzVihTVidL7Ht+Sr2azbMFaV7t78KyinbapUBx2OvP7uYOtESl1vPusV79luv ZSNKeoXesJRAd1dXwNODtTbluZ7rvQA+wipzRs9Pl5bLqKSkQEClHP9qeP7ZDSTW9AjA=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l3SRK-0006mh-0l; Sun, 24 Jan 2021 00:35:38 +0100 From: Lars Ingebrigtsen References: X-Now-Playing: Mourning A BLKstar's _The Cycle_: "Deluze (Solange Say Remix)" Date: Sun, 24 Jan 2021 00:35:33 +0100 In-Reply-To: (Jean Louis's message of "Fri, 27 Nov 2020 13:02:25 +0300") Message-ID: <87eeibqla2.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: Jean Louis writes: > 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") > [...] 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-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 (-) Jean Louis writes: > 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")) Makes sense; I've now pushed this to Emacs 28. This change was small enough to apply without assigning copyright to the FSF, but for future patches you want to submit, it might make sense to get the paperwork started now, so that subsequent patches can be applied speedily. Would you be willing to sign such paperwork? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Fri Jun 20 20:02:45 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Jean Louis Subject: bug#44901: closed (Re: bug#44901: 28.0.50; dired-compress-file: provide customization for compressing command) Message-ID: References: X-Gnu-PR-Message: they-closed 44901 X-Gnu-PR-Package: emacs Reply-To: 44901@debbugs.gnu.org Date: Mon, 11 Oct 2021 12:36:06 +0000 Content-Type: multipart/mixed; boundary="----------=_1633955766-26184-1" This is a multi-part message in MIME format... ------------=_1633955766-26184-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #44901: 28.0.50; dired-compress-file: provide customization for compressing= command which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 44901@debbugs.gnu.org. --=20 44901: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D44901 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1633955766-26184-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 44901-done) by debbugs.gnu.org; 11 Oct 2021 12:36:03 +0000 Received: from localhost ([127.0.0.1]:56985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZuXC-0006nI-Lm for submit@debbugs.gnu.org; Mon, 11 Oct 2021 08:36:02 -0400 Received: from mail-pj1-f45.google.com ([209.85.216.45]:35432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZuXB-0006mn-4o for 44901-done@debbugs.gnu.org; Mon, 11 Oct 2021 08:36:01 -0400 Received: by mail-pj1-f45.google.com with SMTP id d13-20020a17090ad3cd00b0019e746f7bd4so14652551pjw.0 for <44901-done@debbugs.gnu.org>; Mon, 11 Oct 2021 05:36:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=Hl1JxDjnx+xoVFpbFHuXzXOAPCq1vJW8XSq4AMTyjWc=; b=fMAXaHuss/L0s+JUHtH5NDj8UywE019UY2wj7cqELmftqFv2dGrgd5PNxLMSmpdqa+ ag2V1X/yo5tRIezf8blN999jk7spN8fFJPKZFtqGZLyJbedsXZvBwBoX1Wc/VFZDHrY1 aX7c0RkGhgNcSr0UPUfB+hBKdz9VVAZI14ziC68sS9uTSm9IbnAAv2BD04YNp6FwozQ1 3p37GxCXJ1dFpjhAmkXmbp5fbTVl437NS+VUy5FaRnI+NFZjylpSWS3vhCM3JD3FmcT5 0FuuPnIYkRsqQR0/g8hAIokHMTvSBVFdnYYOawYXjxo0ZvyVrnnSyVR0QTD5hNbyWWma 7IEw== X-Gm-Message-State: AOAM532CG1hzgQHmbmM5c+5Qs0T1YaYVoP3HOmiXR19kn3Hj2TR7+vYN is2oX3lt1niHUZf1Av0ro3qV4G8k73qp8ADc+0M= X-Google-Smtp-Source: ABdhPJwTd/+JnXVGXjPTIWLDIuOzXlJBwIVD8gGBslClW+rG0Zj/yKnCRfq4KkRuUJI+ktqsUshUwnzMObGD55yVP4Q= X-Received: by 2002:a17:90a:c70d:: with SMTP id o13mr12356914pjt.143.1633955755638; Mon, 11 Oct 2021 05:35:55 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 11 Oct 2021 05:35:55 -0700 From: Stefan Kangas In-Reply-To: <87eeibqla2.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 24 Jan 2021 00:35:33 +0100") References: <87eeibqla2.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) MIME-Version: 1.0 Date: Mon, 11 Oct 2021 05:35:55 -0700 Message-ID: Subject: Re: bug#44901: 28.0.50; dired-compress-file: provide customization for compressing command To: Lars Ingebrigtsen Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 44901-done Cc: 44901-done@debbugs.gnu.org, Jean Louis 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: -0.5 (/) Lars Ingebrigtsen writes: > Jean Louis writes: > >> 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")) > > Makes sense; I've now pushed this to Emacs 28. It seems like this was fixed, so I'm closing this bug report. ------------=_1633955766-26184-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 Nov 2020 09:50:28 +0000 Received: from localhost ([127.0.0.1]:44010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiaOa-0006Jb-EN for submit@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 ) id 1kiaOV-0006JM-KP for submit@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 ) id 1kiaOU-00071v-Fp for bug-gnu-emacs@gnu.org; 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 ) id 1kiaOS-0004uG-78 for bug-gnu-emacs@gnu.org; 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 To: bug-gnu-emacs@gnu.org 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: Received-SPF: pass client-ip=95.85.24.50; envelope-from=support1@rcdrun.com; 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@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: -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 ⎔ λ 🄯 𝍄 𝌡 𝌚 ------------=_1633955766-26184-1--