unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#71106: dired-do-compress should check before attempting to read directories
@ 2024-05-22  6:35 Dan Jacobson
  2024-05-22 13:00 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Dan Jacobson @ 2024-05-22  6:35 UTC (permalink / raw)
  To: 71106

$ tar tzvf plss00p020_nt00064.tar.gz
-rw-rw-rw- 0/0        24880644 2010-11-13 01:35 plss00p020.shp
-rw-rw-rw- 0/0        50551350 2010-11-13 01:35 plss00p020.dbf
-rw-rw-rw- 0/0          727452 2010-11-13 01:35 plss00p020.shx
-rw-rw-rw- 0/0           31363 2010-12-03 00:06 plss00p020.txt

Now in dired, use Z (runs the command dired-do-compress)

Compress or uncompress plss00p020_nt00064.tar.gz? (y or n) y

dired-insert-directory: Reading directory: No such file or directory, plss00p020_nt00064
emacs-version "29.3"

If it checked first to see if the directory it assumed was created was
really there, then it wouldn't have made an error.

Or it could be like unar, and make the directory, no matter what.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#71106: dired-do-compress should check before attempting to read directories
  2024-05-22  6:35 bug#71106: dired-do-compress should check before attempting to read directories Dan Jacobson
@ 2024-05-22 13:00 ` Eli Zaretskii
  2024-05-22 22:51   ` Dan Jacobson
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2024-05-22 13:00 UTC (permalink / raw)
  To: Dan Jacobson; +Cc: 71106

> From: Dan Jacobson <jidanni@jidanni.org>
> Date: Wed, 22 May 2024 14:35:38 +0800
> 
> $ tar tzvf plss00p020_nt00064.tar.gz
> -rw-rw-rw- 0/0        24880644 2010-11-13 01:35 plss00p020.shp
> -rw-rw-rw- 0/0        50551350 2010-11-13 01:35 plss00p020.dbf
> -rw-rw-rw- 0/0          727452 2010-11-13 01:35 plss00p020.shx
> -rw-rw-rw- 0/0           31363 2010-12-03 00:06 plss00p020.txt
> 
> Now in dired, use Z (runs the command dired-do-compress)
> 
> Compress or uncompress plss00p020_nt00064.tar.gz? (y or n) y
> 
> dired-insert-directory: Reading directory: No such file or directory, plss00p020_nt00064
> emacs-version "29.3"

I cannot reproduce this.  I get: "Compress or uncompress: 1 file."
instead.

Did you miss some steps or some other important aspect of the recipe?





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#71106: dired-do-compress should check before attempting to read directories
  2024-05-22 13:00 ` Eli Zaretskii
@ 2024-05-22 22:51   ` Dan Jacobson
  2024-05-23  9:53     ` Eli Zaretskii
  2024-05-23  9:56     ` Eli Zaretskii
  0 siblings, 2 replies; 5+ messages in thread
From: Dan Jacobson @ 2024-05-22 22:51 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 71106

On Wed, May 22, 2024 at 04:00:23PM +0300, Eli Zaretskii wrote:
> I cannot reproduce this.  I get: "Compress or uncompress: 1 file."
> instead.

Please do the following (this time "guaranteed"!) experiment,
bash -ex <<"EOF"
cd /tmp
p=plss00p020 n=nt00064
touch $p.{shp,dbf,shx,txt}
tar -czf ${p}_${n}.tar.gz $p.*
tar tzvf ${p}_${n}.tar.gz
EOF
emacs -Q /tmp

Now hit spacebar until the cursor is upon plss00p020_nt00064.tar.gz
and hit Z then y .

Not only will you get the error message, the line showing plss00p020_nt00064.tar.gz
also has been temporarily abducted, and needs you to hit "g" to be seen again!





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#71106: dired-do-compress should check before attempting to read directories
  2024-05-22 22:51   ` Dan Jacobson
@ 2024-05-23  9:53     ` Eli Zaretskii
  2024-05-23  9:56     ` Eli Zaretskii
  1 sibling, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2024-05-23  9:53 UTC (permalink / raw)
  To: Dan Jacobson; +Cc: 71106






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#71106: dired-do-compress should check before attempting to read directories
  2024-05-22 22:51   ` Dan Jacobson
  2024-05-23  9:53     ` Eli Zaretskii
@ 2024-05-23  9:56     ` Eli Zaretskii
  1 sibling, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2024-05-23  9:56 UTC (permalink / raw)
  To: Dan Jacobson; +Cc: 71106

merge 71106 47058
close 47058 30.1

> Date: Thu, 23 May 2024 06:51:32 +0800
> From: Dan Jacobson <jidanni@jidanni.org>
> Cc: 71106@debbugs.gnu.org
> 
> On Wed, May 22, 2024 at 04:00:23PM +0300, Eli Zaretskii wrote:
> > I cannot reproduce this.  I get: "Compress or uncompress: 1 file."
> > instead.
> 
> Please do the following (this time "guaranteed"!) experiment,
> bash -ex <<"EOF"
> cd /tmp
> p=plss00p020 n=nt00064
> touch $p.{shp,dbf,shx,txt}
> tar -czf ${p}_${n}.tar.gz $p.*
> tar tzvf ${p}_${n}.tar.gz
> EOF
> emacs -Q /tmp
> 
> Now hit spacebar until the cursor is upon plss00p020_nt00064.tar.gz
> and hit Z then y .
> 
> Not only will you get the error message, the line showing plss00p020_nt00064.tar.gz
> also has been temporarily abducted, and needs you to hit "g" to be seen again!

Thanks.  This is a duplicate of bug#47058, which was left unsolved.
So I have now solved it (I hope) on the master branch, and I'm closing
that bug and this one as well.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-05-23  9:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-22  6:35 bug#71106: dired-do-compress should check before attempting to read directories Dan Jacobson
2024-05-22 13:00 ` Eli Zaretskii
2024-05-22 22:51   ` Dan Jacobson
2024-05-23  9:53     ` Eli Zaretskii
2024-05-23  9:56     ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).