From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sun Lin via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#47119: 28.0.50; [patch][Dired] new user option for compressing dir suffix Date: Tue, 18 May 2021 09:21:43 +0800 Message-ID: References: <605a063b.1c69fb81.e18bb.b679@mx.google.com> <1662010091.102054.1617325040519@mail.yahoo.com> <874kf1ibx5.fsf@gnus.org> Reply-To: Sun Lin Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_300542A4-CF5B-4867-B640-F0339D7A9D69_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32284"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , "47119@debbugs.gnu.org" <47119@debbugs.gnu.org>, Lin Sun To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 18 03:24:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lioSx-0008Bs-7F for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 May 2021 03:24:11 +0200 Original-Received: from localhost ([::1]:42374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lioSv-0001Pz-8D for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 May 2021 21:24:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lioSo-0001Po-Jc for bug-gnu-emacs@gnu.org; Mon, 17 May 2021 21:24:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42563) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lioSo-0008QK-By for bug-gnu-emacs@gnu.org; Mon, 17 May 2021 21:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lioSo-0001X7-7X for bug-gnu-emacs@gnu.org; Mon, 17 May 2021 21:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sun Lin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 May 2021 01:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47119 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed patch Original-Received: via spool by 47119-submit@debbugs.gnu.org id=B47119.16213010375880 (code B ref 47119); Tue, 18 May 2021 01:24:02 +0000 Original-Received: (at 47119) by debbugs.gnu.org; 18 May 2021 01:23:57 +0000 Original-Received: from localhost ([127.0.0.1]:54109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lioSj-0001Wm-9K for submit@debbugs.gnu.org; Mon, 17 May 2021 21:23:57 -0400 Original-Received: from sonic313-37.consmr.mail.ne1.yahoo.com ([66.163.185.60]:40104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lioSg-0001WZ-WA for 47119@debbugs.gnu.org; Mon, 17 May 2021 21:23:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1621301029; bh=O3sFuE+2oTDb3n48sr/pF2Hyw50Dxz6XndmiREAKCHk=; h=To:Cc:From:Subject:Date:In-Reply-To:References:From:Subject:Reply-To; b=W8f95iJCcUlwbXx3UeRofaosVQk957mpgdtxA1llr9NM025GkSGMWFBMJyRav23ewZmu6FB2/huz8Y1DD0rE1eVJehxUqABzL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0scGMJ1behqUEdjGUjSoAT.G6AOxHvXRRD4ZIYZn2tVOG2Pl8Xe3 QYld9rvH6NZyfpFrvX8t_a7SKv7.EqxdKmKVKyVrupsIMbwJ9xj4bOAJYFFmPbTMEGU.F.beeAsu LXWA430fZK95DsoT07DD0hix51t0FTJ_p3g53Yu2fM0n0Z_US0usMmxFsCS7jB4Rc8JBrEcNG2PK GKot8gLlLHM6Zh47GfBeuZoZaiD1P38EBQrtXgw5nVcDspp4tTskfXU_g7QEoukCyl13pLfvGmV9 6vG2bF0C1n3SttknZAuNeJXEanvJPB1ns.5alBqItruKcOnoGCFOcm5yAvLyiQg0rTApBfktb.L3 OG7kkOrg4OmQzLZ3mX8uPD2f6z_K0uifwiC82R7yzvimtlzgynHAmYEOEFDq9npNylTSSTNRJnCo iRujZYhfVOW3VI4aN4QbsstvZPg9IjlyVBnRA2b0WLcHP0GxmGQPM8FTckqKcUxPR8Yyy9gwCmlN tpSwn7ScGUP3wdQhoavCmL77fPkdpfa1.u42jt4aph X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ne1.yahoo.com with HTTP; Tue, 18 May 2021 01:23:49 +0000 Original-Received: by kubenode526.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 8984a5484527863a1e70aa3b029e3507; Tue, 18 May 2021 01:21:46 +0000 (UTC) Importance: normal X-Priority: 3 In-Reply-To: <874kf1ibx5.fsf@gnus.org> X-Mailer: WebService/1.1.18291 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Apache-HttpAsyncClient/4.1.4 (Java/16) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:206755 Archived-At: --_300542A4-CF5B-4867-B640-F0339D7A9D69_ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Hi Lars, Great, thank you! : ) Best Regards Lin Sun From: Lars Ingebrigtsen Sent: Tuesday, May 18, 2021 00:05 To: Sun Lin Cc: Eli Zaretskii; Lin Sun; 47119@debbugs.gnu.org Subject: Re: bug#47119: 28.0.50; [patch][Dired] new user option for compres= sing dir suffix Sun Lin writes: > There is another user option `compress-file-default-suffix` that allow us= er custom > default suffix for compressing file in dired-mode. > > These two patch allow user custom suffix for compressing folder and file = in > dired-mode by pressing "Z". > > Both two patches are attached.=20 Thanks; applied to Emacs 28 with some small changes. I'm not quite sure I understood the \000 change, but in testing, things seem to work fine for me. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no --_300542A4-CF5B-4867-B640-F0339D7A9D69_ Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"

Hi La= rs,

 

Great= , thank you! : )

 

Best Regards

Lin Sun<= /p>

From: Lars Ing= ebrigtsen
Sent: Tuesday, May 18, 2021 00:05
To: Sun Lin
Cc: Eli Zaretskii; Lin = Sun; 47119@debbugs.gnu.org=
Subject: Re: bug#47119: 28.0.50; [patch][Dired] new user option = for compressing dir suffix

 <= /p>

Sun Lin <sunlin7@yahoo.com> writes:

 

> There is anot= her user option `compress-file-default-suffix` that allow user custom

> default suffix for compressing file in dired-mode.<= /p>

> 

> = These two patch allow user custom suffix for compressing folder and file in=

> dired-mode by pressing "Z".

> 

> Both tw= o patches are attached.

 

Thanks; applied to Emacs 28 with some small changes.

 

I'm not quite s= ure I understood the \000 change, but in testing, things

seem to work fine for me.

 

--

(domestic pets only, the= antidote for overdose, milk.)

=C2=A0=C2=A0 bloggy = blog: http://lars.ingebrigtsen.no

 =

= --_300542A4-CF5B-4867-B640-F0339D7A9D69_--