From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.help Subject: Re: [works on the comman line] Date: Sun, 20 Feb 2022 16:41:08 +0100 Message-ID: <87zgmlim0b.fsf@mat.ucm.es> References: <87pmnhlwnr.fsf@mat.ucm.es> <8735kdll43.fsf_-_@mat.ucm.es> <87wnhpk62t.fsf_-_@mat.ucm.es> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=sha256; protocol="application/pkcs7-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22989"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:14xSCHea8VMZHY4DiRykETbeCIc= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 20 16:42:15 2022 Return-path: Envelope-to: geh-help-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 1nLoLm-0005oD-Tq for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 20 Feb 2022 16:42:15 +0100 Original-Received: from localhost ([::1]:42298 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLoLl-0001Vc-Ft for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 20 Feb 2022 10:42:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLoKu-0001VT-WC for help-gnu-emacs@gnu.org; Sun, 20 Feb 2022 10:41:21 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]:41704) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLoKt-0006mH-04 for help-gnu-emacs@gnu.org; Sun, 20 Feb 2022 10:41:20 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nLoKr-0004mF-As for help-gnu-emacs@gnu.org; Sun, 20 Feb 2022 16:41:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Mail-Copies-To: never Received-SPF: pass client-ip=116.202.254.214; envelope-from=geh-help-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:136071 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > * Uwe Brauer [2022-02-20 16:44]: > dired-compress-file-alist is a variable defined in =E2=80=98dired-aux.el= =E2=80=99. > Where it says: > Within CMD, %i denotes the input file(s), and %o denotes the > output file. %i path(s) are relative, while %o is absolute. Ok, I was looking for the %i and %o explanation. > Maybe that is limitation. > You can do it in single function here: > (defun rcd-zip-file () > "ZIP single file within Dired." > (interactive) > (let* ((file (car (dired-get-marked-files t))) > (zip-file (concat file ".zip"))) > (when file > (start-process "ZIP" "ZIP" "zip" "-9" zip-file file) > (revert-buffer)))) Thanks but his does not work in the sense that it also add one additional directory. I tried to use=20 (defun rcd-zip-file () "ZIP single file within Dired." (interactive) (let* ((file (car (dired-get-marked-files t))) (zip-file (concat file ".zip"))) (when file (start-process "ZIP" "ZIP" "zip" "-9j" zip-file file) (revert-buffer)))) =20 Or (defun rcd-zip-file () "ZIP single file within Dired." (interactive) (let* ((file (car (dired-get-marked-files t))) (zip-file (concat file ".zip"))) (when file (start-process "ZIP" "ZIP" "zip" "-9" "-j" zip-file file) (revert-buffer)))) But not worked. This seems to be cursed! --=-=-= Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=smime.p7s MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCCE8cw ggWDMIIDa6ADAgECAg9dk40wZzbIBh0ax1SEaQcwDQYJKoZIhvcNAQELBQAwOzELMAkGA1UEBhMC RVMxETAPBgNVBAoMCEZOTVQtUkNNMRkwFwYDVQQLDBBBQyBSQUlaIEZOTVQtUkNNMB4XDTA4MTAy OTE1NTk1NloXDTMwMDEwMTAwMDAwMFowOzELMAkGA1UEBhMCRVMxETAPBgNVBAoMCEZOTVQtUkNN MRkwFwYDVQQLDBBBQyBSQUlaIEZOTVQtUkNNMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKC AgEAunGAekyGbn/IE23Axn0cAJePLAwjuxCaQKkat4eI+JtWavvme46Lko6nJV1ZEds2LrdRFx+p CB8EFyRYqjdKGN/lOdRX/dfBLJEBkeIi1APAWPx3R+yPPnRDuqw0jU04dmeOsMhvMDNYcVy09Wtu 1AFQuBN+bEqjSdEgGe68wCkYZafe/u/dCpAh5xpnkkIQmF9PMLw+HEW0ENdoQBTAQPrndxd65guP ZVs82ZpS27W9nkbPPeuRBQLAlrJ2TE0QljuS+px/D5nfviM1RR4CXP61qJuZJdpe8yLDOfXkKi7T xh/EbKrFHG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