From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Steingold Newsgroups: gmane.emacs.bugs Subject: bug#52681: 29.0.50; dired-do-compress assume tar files contain directories Date: Mon, 20 Dec 2021 11:36:19 -0500 Message-ID: Reply-To: sds@gnu.org Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20416"; mail-complaints-to="usenet@ciao.gmane.io" To: 52681@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 20 20:09:36 2021 Return-path: Envelope-to: geb-bug-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 1mzO2Q-00056y-U9 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Dec 2021 20:09:35 +0100 Original-Received: from localhost ([::1]:44254 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mzO2O-0002B0-Ry for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Dec 2021 14:09:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzLes-0004eN-5c for bug-gnu-emacs@gnu.org; Mon, 20 Dec 2021 11:37:09 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39697) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mzLeo-0006GD-8k for bug-gnu-emacs@gnu.org; Mon, 20 Dec 2021 11:37:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mzLeo-0005S7-6J for bug-gnu-emacs@gnu.org; Mon, 20 Dec 2021 11:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Steingold Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Dec 2021 16:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52681 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164001819620917 (code B ref -1); Mon, 20 Dec 2021 16:37:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Dec 2021 16:36:36 +0000 Original-Received: from localhost ([127.0.0.1]:51243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzLeJ-0005RD-NC for submit@debbugs.gnu.org; Mon, 20 Dec 2021 11:36:36 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:42860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzLeC-0005Qz-HO for submit@debbugs.gnu.org; Mon, 20 Dec 2021 11:36:30 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzLeC-0003du-6o for bug-gnu-emacs@gnu.org; Mon, 20 Dec 2021 11:36:24 -0500 Original-Received: from [2607:f8b0:4864:20::835] (port=36527 helo=mail-qt1-x835.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mzLeA-00062a-E8; Mon, 20 Dec 2021 11:36:23 -0500 Original-Received: by mail-qt1-x835.google.com with SMTP id t11so10282465qtw.3; Mon, 20 Dec 2021 08:36:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:subject:return-receipt-to:reply-to:date:message-id :mime-version; bh=Y34LTaOZ8bXdICr5pGg8IhqkgkFWw/SSCLSoBLdEMQg=; b=OZHXVDJxNn3CI0PUYMvR5XrpFSZZSzUhCcD9j/v3nivUH7rBcqwy0O0X7tY/+p7GKy G7DJKfg4MTi4Gb23855OR36AZEhM+eOxoz3es/kRnFr1/K2tHv4VkxbAJsEwOB07htKM Lzd2BbT9eGz2umFBw7osIRbqL7YLPJ+90k/ybU+BmS6pIZ/VW90pwG+13fjUfDZHa6Md a+LyRJXKomwjZgy6TZHCj8Ngv+tvZXhm2rocjuped4Prka7X4I6EZvcVm1UUta1sdIGV nyDjUhhTlMOc2Z7tSiy0v+3NH4zhbFvW6v2I4aG9FtUDP/Y+XGOYdZITWbLsrLf0j9yM CAIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:subject:return-receipt-to :reply-to:date:message-id:mime-version; bh=Y34LTaOZ8bXdICr5pGg8IhqkgkFWw/SSCLSoBLdEMQg=; b=uLhifmbbo2lmmzH+B+UQT9Jxs+FiYJxcGcDMexuLc8avRVp1Q/RMLQcguZ69CfVcL+ TPeJpOqphXZ1Jz4P3MYrUz2PqCJE07Ro30sluUqaEXXcuLFpr/9Py//FaPWO+7MGNVyP gbdTOH8q2LfNjAugt4jHh7eYETrvzJIAq5RxmEcdqcwyEZVuHUCyDzZs7hvokZyocHnH yC6I0zNokjvzSYS2XsfWytORh1dmAzAvvKfYofPkFzv5h7/9kLgiYUznV1FKD8siJ+rY Q5uJWfqaw0fO8attdn24rsdAFImakz/lCek+HXO9RxHv9vEQcq67m+XtbwacgtlZAM17 jF1A== X-Gm-Message-State: AOAM530OKQyvz0L7TrQC12xlCLP9rM6w10kVkj0BBXNyqKEfj6uFBGp+ 7UwtQ9x+p28VQ16tWRnYimXmyAe9sA== X-Google-Smtp-Source: ABdhPJyuYGoRutJxix04YJpopcOLtFdyr5Cr/uNcFMe0W0ey5lfhBqxyZWPf2wFQ57opc/9hCWFuAw== X-Received: by 2002:ac8:7f06:: with SMTP id f6mr13328451qtk.258.1640018180856; Mon, 20 Dec 2021 08:36:20 -0800 (PST) Original-Received: from 3c22fb11fdab.ant.amazon.com (pool-108-30-23-113.nycmny.fios.verizon.net. [108.30.23.113]) by smtp.gmail.com with ESMTPSA id x13sm12770201qkp.102.2021.12.20.08.36.20 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 20 Dec 2021 08:36:20 -0800 (PST) X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::835 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::835; envelope-from=sam.steingold@gmail.com; helo=mail-qt1-x835.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:222800 Archived-At: emacs -Q M-x dired RET test/data/decompress RET navigate to tg.tar.gz Z (dired-do-compress) answer yes --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (file-missing "Reading directory" "No such file or directory" "tg") access-file("tg" "Reading directory") #f(compiled-function (file switches &optional wildcard full-directory-p) "Insert directory listing for FILE, formatted according to SWITCHES.\nLeaves point after the inserted text.\nSWITCHES may be a string of options, or a list of strings\nrepresenting individual options.\nOptional third arg WILDCARD means treat FILE as shell wildcard.\nOptional fourth arg FULL-DIRECTORY-P means file is a directory and\nswitches do not contain `d', so that a full listing is expected.\n\nThis works by running a directory listing program\nwhose name is in the variable `insert-directory-program'.\nIf WILDCARD, it also runs the shell specified by `shell-file-name'.\n\nWhen SWITCHES contains the long `--dired' option, this function\ntreats it specially, for the sake of dired. However, the\nnormally equivale nt short `-D' option is just passed on to\n`insert-directory-program', as any other option." #)("tg" "-als -d" nil nil) ls-lisp--insert-directory(#f(compiled-function (file switches &optional wildcard full-directory-p) "Insert directory listing for FILE, formatted according to SWITCHES.\nLeaves point after the inserted text.\nSWITCHES may be a string of options, or a list of strings\nrepresenting individual options.\nOptional third arg WILDCARD means treat FILE as shell wildcard.\nOptional fourth arg FULL-DIRECTORY-P means file is a directory and\nswitches do not contain `d', so that a full listing is expected.\n\nThis works by running a directory listing program\nwhose name is in the variable `insert-directory-program'.\nIf WILDCARD, it also runs the shell specified by `shell-file-name'.\n\nWhen SWITCHES contains the long `--dired' option, this function\ntreats it specially, for the sake of dired. Howev er, the\nnormally equivalent short `-D' option is just passed on to\n`insert-directory-program', as any other option." #) "tg" "-als -d" nil nil) apply(ls-lisp--insert-directory #f(compiled-function (file switches &optional wildcard full-directory-p) "Insert directory listing for FILE, formatted according to SWITCHES.\nLeaves point after the inserted text.\nSWITCHES may be a string of options, or a list of strings\nrepresenting individual options.\nOptional third arg WILDCARD means treat FILE as shell wildcard.\nOptional fourth arg FULL-DIRECTORY-P means file is a directory and\nswitches do not contain `d', so that a full listing is expected.\n\nThis works by running a directory listing program\nwhose name is in the variable `insert-directory-program'.\nIf WILDCARD, it also runs the shell specified by `shell-file-name'.\n\nWhen SWITCHES contains the long `--dired' option, this function\ntreats it specially, for the sake of dired. However, the\nnormally equivalent short `-D' option is just passed on to\n`insert-directory-program', as any other option." #) ("tg" "-als -d" nil nil)) insert-directory("tg" "-als -d" nil nil) dired-insert-directory("/emacs-git-root/test/data/decompress/" "-als -d" ("tg")) dired-add-entry("/emacs-git-root/test/data/decompress/tg/" nil t) dired-update-file-line("/emacs-git-root/test/data/decompress/tg/") dired-compress() dired-map-over-marks-check(dired-compress nil compress t) dired-do-compress(nil) funcall-interactively(dired-do-compress nil) call-interactively(dired-do-compress nil nil) command-execute(dired-do-compress) --8<---------------cut here---------------end--------------->8--- In GNU Emacs 29.0.50 (build 4, x86_64-apple-darwin20.6.0, NS appkit-2022.60 Version 11.6.2 (Build 20G314)) of 2021-12-20 built on 3c22fb11fdab.ant.amazon.com Repository revision: 92ffe44834b8f77ee3f4d37edfdb19f30a376869 Repository branch: master Windowing system distributor 'Apple', version 10.3.2022 System Description: macOS 11.6.2 Configured using: 'configure --with-imagemagick --with-mailutils --with-ns PKG_CONFIG_PATH=/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/imagemagick/lib/pkgconfig:/usr/local/opt/gnutls/lib/pkgconfig:/usr/local/opt/jansson/lib/pkgconfig:/usr/local/opt/libtiff/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/libjpeg/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig' Configured features: ACL GIF GMP GNUTLS IMAGEMAGICK JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP ZLIB Important settings: value of $LANG: C locale-coding-system: utf-8-unix -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.2022 http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com http://think-israel.org https://iris.org.il https://www.peaceandtolerance.org/ The difference between theory and practice is that in theory there isn't any.