From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>, Uwe Brauer <oub@mat.ucm.es>
Cc: emacs-devel@gnu.org
Subject: RE: [found the culprit] (was: [emacs -q versus empty .emacs file])
Date: Wed, 14 Nov 2018 08:17:39 -0800 (PST) [thread overview]
Message-ID: <f0a3a374-d8ac-45b6-8de6-0e8ccc0ea696@default> (raw)
In-Reply-To: <<834lcj8y1f.fsf@gnu.org>>
> It seems I misunderstood your original report: you wanted Z on a .tgz
> file to only uncompress it? That indeed has been changed in Emacs 26,
> for consistency with a .tar.gz file. I don't think it's a good idea
> to have the previous subtle difference back.
>
> I do think that Z on a compressed Tar archive, be it a .tar.gz or .tgz
> file, should not by default unpack the archive. We could have a
> special prefix arg to request that, and by default we should just
> uncompress the file. But that's a different issue.
`Z' should be its own inverse. And there definitely
needs to be a way to compress a tar file and get it
back again from the compressed file. Unpacking is
something else. If `Z' compresses then if used again it
should only uncompress, returning what you started with.
It's fine to have another key that unpacks a tar, or
even another key that both uncompresses and unpacks.
Is it hard to hit two keys to uncompress + unpack?
I'm a bit surprised to see that this change was made,
after decades of the pre-26 behavior. Was something
big gained by it?
BTW, I don't see this change called out in NEWS for
Emacs 26. Is it there and I just missed it?
Personally, I'd prefer that a choice to both uncompress
and unpack _not_ be made via a "special prefix arg" for
`Z'. If you can use a prefix arg with `Z' then you can
hit two keys to get the uncompress + unpack behavior.
My main reason for preferring that the prefix arg not
be co-opted for this is that in my Dired+ code I have
long co-opted it ( ;-) ) to use the following special
prefix args (and the same are used for _lots_ of Dired
commands):
Compress or uncompress marked (or next prefix argument) files.
A prefix argument ARG specifies files to use instead of marked.
An integer means use the next ARG files (previous -ARG, if < 0).
`C-u': Use the current file (whether or not any are marked).
`C-u C-u': Use all files in Dired, except directories.
`C-u C-u C-u': Use all files and directories, except `.' and `..'.
`C-u C-u C-u C-u': Use all files and all directories.
What's added are the multiple `C-u' prefixes.
Vanilla Dired could benefit from the same behavior, for
dired-do-* commands generally. To provide this behavior
I redefined macro `dired-map-over-marks' slightly:
If ARG is a cons with element 16, 64, or 256, corresponding to
'C-u C-u', 'C-u C-u C-u', or 'C-u C-u C-u C-u', then use all files
in the Dired buffer, where:
16 includes NO directories (including '.' and '..')
64 includes directories EXCEPT '.' and '..'
256 includes ALL directories (including '.' and '..')
If ARG is otherwise non-nil, use the current file.
next prev parent reply other threads:[~2018-11-14 16:17 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-13 13:18 tgz extension and dired-do-compress Uwe Brauer
2018-11-13 17:31 ` Eli Zaretskii
2018-11-13 18:15 ` Uwe Brauer
2018-11-14 12:07 ` [emacs -q versus empty .emacs file] (was: tgz extension and dired-do-compress) Uwe Brauer
2018-11-14 12:12 ` [found the culprit] (was: [emacs -q versus empty .emacs file]) Uwe Brauer
2018-11-14 13:15 ` Noam Postavsky
2018-11-14 13:50 ` [found the culprit] Uwe Brauer
2018-11-14 15:43 ` [found the culprit] (was: [emacs -q versus empty .emacs file]) Eli Zaretskii
2018-11-14 15:49 ` [found the culprit] Uwe Brauer
2018-11-14 16:09 ` Eli Zaretskii
2018-11-14 16:39 ` Stefan Monnier
2018-11-14 16:57 ` Uwe Brauer
2018-11-14 17:31 ` Drew Adams
2018-11-14 18:20 ` Stefan Monnier
2018-11-14 19:58 ` Drew Adams
2018-11-14 20:24 ` Eli Zaretskii
2018-11-14 20:43 ` Stefan Monnier
2018-11-14 19:59 ` Eli Zaretskii
2018-11-14 20:38 ` Stefan Monnier
2018-11-14 21:01 ` jpff
2018-11-16 6:45 ` Van L
2018-11-16 0:51 ` [found the culprit] (was: [emacs -q versus empty .emacs file]) Richard Stallman
2018-11-14 12:21 ` [emacs -q versus empty .emacs file] (was: tgz extension and dired-do-compress) Alan Mackenzie
2018-11-14 13:16 ` [emacs -q versus empty .emacs file] Uwe Brauer
[not found] ` <<87tvkjq2mh.fsf_-_@mat.ucm.es>
[not found] ` <<834lcj8y1f.fsf@gnu.org>
2018-11-14 16:17 ` Drew Adams [this message]
2018-11-14 16:37 ` [found the culprit] (was: [emacs -q versus empty .emacs file]) Eli Zaretskii
2018-11-14 16:48 ` [found the culprit] Stefan Monnier
2018-11-14 17:22 ` Drew Adams
2018-11-14 18:03 ` Stefan Monnier
2018-11-14 19:40 ` Drew Adams
2018-11-14 20:33 ` Davis Herring
2018-11-14 21:21 ` Drew Adams
2018-11-15 2:34 ` Mike Kupfer
2018-11-16 0:55 ` Richard Stallman
2018-11-16 2:24 ` Clément Pit-Claudel
2018-11-16 7:48 ` Eli Zaretskii
2018-11-16 13:04 ` Stefan Monnier
2018-11-16 22:59 ` Richard Stallman
2018-11-16 16:17 ` Drew Adams
2018-11-16 23:01 ` Richard Stallman
2018-11-17 8:04 ` Yuri Khan
2018-11-18 0:24 ` Richard Stallman
2018-11-17 1:05 ` Clément Pit-Claudel
2018-11-16 23:01 ` Richard Stallman
2018-11-17 7:42 ` Yuri Khan
2018-11-15 4:57 ` [found the culprit] (was: [emacs -q versus empty .emacs file]) Yuri Khan
2018-11-15 9:46 ` [found the culprit] Andreas Schwab
2018-11-15 15:21 ` Yuri Khan
[not found] ` <<<87tvkjq2mh.fsf_-_@mat.ucm.es>
[not found] ` <<<834lcj8y1f.fsf@gnu.org>
[not found] ` <<f0a3a374-d8ac-45b6-8de6-0e8ccc0ea696@default>
[not found] ` <<83y39v7gym.fsf@gnu.org>
2018-11-14 17:10 ` [found the culprit] (was: [emacs -q versus empty .emacs file]) Drew Adams
[not found] <<875zx1xgiq.fsf@mat.ucm.es>
[not found] <<<875zx1xgiq.fsf@mat.ucm.es>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f0a3a374-d8ac-45b6-8de6-0e8ccc0ea696@default \
--to=drew.adams@oracle.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=oub@mat.ucm.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.