help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [works on the comman line]


From: Uwe Brauer
Subject: Re: [works on the comman line]
Date: Mon, 21 Feb 2022 20:38:04 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> Uwe Brauer wrote:

> But here -j (the short --junk-paths) doesn't don't add
> anything (?) since the `t' in (dired-get-marked-files t) has
> already removed the path ... so then why doesn't _that_ work?
> Hm ...

> But this works for me:

> (defun dired-zip-files ()
>   (interactive)
>     (dolist (f (dired-get-marked-files))
>       (start-process "zip" nil "zip" "-9" "--junk-path" (concat f ".zip") f)
>       (revert-buffer) ))

Thanks, the point however is, as I said. 

    1. If I open the zip file generated by your method via unzip on the
       command like, it just returns that file without any additional
       directory.

    2. If I use however dired-do-compress then an additional directory
       is created.

Regards

 

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]