[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[works on the comman line] (was: [a directory is also created])
From: |
Uwe Brauer |
Subject: |
[works on the comman line] (was: [a directory is also created]) |
Date: |
Sun, 20 Feb 2022 14:42:18 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
>>> "UB" == Uwe Brauer <oub@mat.ucm.es> writes:
>> * Uwe Brauer <oub@mat.ucm.es> [2022-02-20 15:01]:
>> Solution is Z.
>> 1) Adapt `dired-compress-file-alist' for ZIP files;
>> example:
>> (setf (alist-get "\\.zip\\'" dired-compress-file-alist) "zip -9 %o %i")
> It is a more complicated that I thought, but this is because of the
> behavior of zip. If I use this setting zip creates a zip archive that
> contains the file, but the whole absolute path, and that is crazy.
> (setf (alist-get "\\.zip\\'" dired-compress-file-alist) "zip -9 --junk-paths
> %o %i")
Very odd:
On the command line
zip -9 -j test.zip test.tex
Works but emacs or dired adds a directory, who is here the culprit?
smime.p7s
Description: S/MIME cryptographic signature
- how to generate a zip file (not a directory) within dired, Uwe Brauer, 2022/02/20
- Re: how to generate a zip file (not a directory) within dired, Jean Louis, 2022/02/20
- Re: how to generate a zip file (not a directory) within dired, Uwe Brauer, 2022/02/20
- [a directory is also created] (was: how to generate a zip file (not a directory) within dired), Uwe Brauer, 2022/02/20
- [works on the comman line] (was: [a directory is also created]),
Uwe Brauer <=
- Re: [works on the comman line] (was: [a directory is also created]), Jean Louis, 2022/02/20
- Re: [works on the comman line], Uwe Brauer, 2022/02/20
- Re: [works on the comman line], Uwe Brauer, 2022/02/20
- Re: [works on the comman line], Emanuel Berg, 2022/02/20
- Re: [works on the comman line], Uwe Brauer, 2022/02/21
- Re: [works on the comman line], Emanuel Berg, 2022/02/25
- Re: [works on the comman line] (was: [a directory is also created]), Emanuel Berg, 2022/02/20