From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#46884: [External] : bug#46884: 27.1; Cannot run find-dired with -maxdepth Date: Wed, 3 Mar 2021 01:34:07 +0000 Message-ID: References: <80k0qpdoqd.fsf@felesatra.moe> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22062"; mail-complaints-to="usenet@ciao.gmane.io" To: Allen Li , "46884@debbugs.gnu.org" <46884@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 03 02:37:40 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 1lHGSJ-0005eH-Np for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Mar 2021 02:37:39 +0100 Original-Received: from localhost ([::1]:38644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHGSI-0007ku-Pl for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Mar 2021 20:37:38 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48762) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHGPm-0006aE-4H for bug-gnu-emacs@gnu.org; Tue, 02 Mar 2021 20:35:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43166) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHGPl-00052i-Rt for bug-gnu-emacs@gnu.org; Tue, 02 Mar 2021 20:35:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lHGPl-0005Wl-Ns for bug-gnu-emacs@gnu.org; Tue, 02 Mar 2021 20:35:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Mar 2021 01:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46884 X-GNU-PR-Package: emacs Original-Received: via spool by 46884-submit@debbugs.gnu.org id=B46884.161473526221195 (code B ref 46884); Wed, 03 Mar 2021 01:35:01 +0000 Original-Received: (at 46884) by debbugs.gnu.org; 3 Mar 2021 01:34:22 +0000 Original-Received: from localhost ([127.0.0.1]:54712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHGP8-0005Vm-5v for submit@debbugs.gnu.org; Tue, 02 Mar 2021 20:34:22 -0500 Original-Received: from userp2120.oracle.com ([156.151.31.85]:33430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHGP2-0005VV-Tw for 46884@debbugs.gnu.org; Tue, 02 Mar 2021 20:34:20 -0500 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 1231TRQa066252; Wed, 3 Mar 2021 01:34:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=Y//x2/PCaw3B0Ck3xE0XEWpILEYLjv6LHStLhvuOo04=; b=gI5xG+WmGnzYAipUhBitIXWgTR3CfP+2uk2J+CBdNpmRKXSC96HoXvIgn8nVvj7QkWfr 4z70xDFvnDbpTOH1T3OYyTjCqB8FkxVNGgwuUOvjgrJG9lk2cgaYRTACO6aW5vXwzJJV cIVY/0mjoY9okGUw/rI7uywLgNRdVvqnXjffFK1t0f129Xq7mLInUx7KyeHAB9gBbyXG 1VgcLHanamcvA4e8VpQE/I9X/YZmlkqkhEDb2VhTXZadYasNt+u3pOzP+Fy+I/BA0WBK CdP3lKwVBygB3P1U+17FpK27PA0feugwzcm83Gamu3nomvT5183laYW41oFCU8UJa07X eg== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 36yeqn1nkt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 03 Mar 2021 01:34:10 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 1231V1DS056087; Wed, 3 Mar 2021 01:34:09 GMT Original-Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2171.outbound.protection.outlook.com [104.47.58.171]) by aserp3030.oracle.com with ESMTP id 36yynpwna2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 03 Mar 2021 01:34:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Dibe/IXTsnxQTvdCEx/gTB9nJzgy9G7w1+NpKxmZhxYOGI/fsr7cz6qXyiaqkjlhLyL1mwvEUnAxmLu97kYt6FIInv5E0pEJLrgGp6w6IKzDnzu1EZ21PcbQCOXdAStE+In54ZOOmzDeX7qdstA+bIG7sgnEhglPsIUMKlySUZRyyFPjbs2MktLyy8pC4y4DzjIZmtUG255SnF6NVCD2GrdHRDsIaZrgK+dSFWrmFO4G1NkInKrauZl21yAqSr1XcxElzQa1WPBgc51jP1ZTV4NaXHGWO6x8yQPI477YXNICoDz67tofARiV3OAqmIsbcJnd9mXXdeDhwwM576Nvtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Y//x2/PCaw3B0Ck3xE0XEWpILEYLjv6LHStLhvuOo04=; b=F/MeyBF92Tse/w7EyqDRmeEB4XKOkWse5GN+ubidFvve8MFl+lWBfcpG+Dthu8uj/1n9K8m1S196t40d3fl1uxuzWjxANM22Of8qTaIwV0CjSC8mLJGZZJVHytgWBhm9QgK06E8WCJ5nldW4ATT+PUSCdZIWLO/CC/cNbZEsmZ5XhCc+EZT4FLOKEQAj7fUQZYDzawoDTYriaVqdbdr+cTJn5rCgkPWDSITzJcyaRWEPfABWo3phEQWcLhzK+IH28OrL+uAQ5WuEV5ybFmjD4AKjSTl1pwW45mTBlJN7kouiS2+9r/OVkR7wFysc+YOudBbzFvj2ngg9AOd7KMrC9Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Y//x2/PCaw3B0Ck3xE0XEWpILEYLjv6LHStLhvuOo04=; b=dkP8qezzjHoEPLdlfCpQeixShrp4URiy3M6bxL+Mj+Z72JfixQtepBsA9bSFWaZjEWHfPEVW7CBMBZ9DyvnEnubIUbhAoMK/VAplLa353l3zRzFOodAY1FqUbSCVOYFR8eSv3yRXwWYe8jAmiwei94Tjk3NIKKCUgQ40daCxHhs= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SN6PR10MB2479.namprd10.prod.outlook.com (2603:10b6:805:41::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.20; Wed, 3 Mar 2021 01:34:07 +0000 Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315%5]) with mapi id 15.20.3912.017; Wed, 3 Mar 2021 01:34:07 +0000 Thread-Topic: [External] : bug#46884: 27.1; Cannot run find-dired with -maxdepth Thread-Index: AQHXD8pqt2JHPmUYg0aHjE4Hfcb2UapxecFg In-Reply-To: <80k0qpdoqd.fsf@felesatra.moe> Accept-Language: en-US Content-Language: en-US authentication-results: felesatra.moe; dkim=none (message not signed) header.d=none;felesatra.moe; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5668f892-62e2-448a-76a4-08d8dde47001 x-ms-traffictypediagnostic: SN6PR10MB2479: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: iUbSyVabDwO0yfho8rE295XZq0v73ezeEZFYygK7Nt6A1ajvVXQa7C0ndhwQLPBlGdMvM4Y3600IET5+zdsVyJrtqGAX2wdpGx7D+djzwZKrTS7SqQXrk/uRBQ/9B2lce7Pvcx1MswDjAqHfKUz4Wl8gxCf+rhtngWnI2aJ2kO5sxK0T5qfUUC6utYV6fvMo22OYljMm8Xps3Z+UboEmuX6WEcj1ISADbTnqLfhqqre5TbyVB3MkZDgF1+gTxPbgxNdstBbiUj6bgwFnh2ur9hhmmVRKgxNOQjUdHZBz9WzR/Hu9CGW8Wm5Skhvcc+LGlfIcwJsTNZXTDBeB0lQ3+TqWMM9Jqe4uK/OZvViLSBOiSFIzk3voLdilQay5meJQfY5htbFE7pC2A8QNBHJDstqQAVNxidxV6i3+YKebVoLKVbh6Y9UN0aVA56jrx5+GnNkWEaGiPHJvgjplQfRm17zILuZRt5RjNp2bGn8weXjte+Ank6EjuYqqkjpDLRi8jhE5GT7zLqoUqMKTy7qs4BtbG39glNzfkiEtsu/HitL5j+f0uk3yqAYi7E/9bKHP1H6IidNEtG83QX4ToJ3tEWTC/zQ6K7h6CGT0myitB5s= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(396003)(376002)(39860400002)(136003)(366004)(26005)(33656002)(86362001)(76116006)(966005)(66946007)(66476007)(8676002)(66446008)(6506007)(66556008)(7696005)(83380400001)(316002)(186003)(478600001)(110136005)(9686003)(64756008)(5660300002)(8936002)(52536014)(2906002)(71200400001)(44832011)(55016002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: +lWO/2xPd+LMIor99qWHrBOdjHlXRsvkoGVz+w7UKFcsrVFArCCccG/IuFlPDMcaFVaFdy/Im4EFElx58smt2J96kQa14pxkRcGycL4Zjd56WwSE3l7XlWzXigwoCbhSbu1eTp3vtg0g9ujKcJR0Vyq8IOVqkD0HJF04zTKIslEimeh3uS0TbHOCFpxaRHM39I9KQ5S0xSa0aR3DU6A/Vx5NSPfSx9+1h3/l1NPwTF+HJgCOpbfQBDTNFSA8h6qHLj3gxbUzzBYIScYXSsDFOhjbPBSRjNDWUjXx1vsDKd0aamHWTYvqX9WsTTcwevyrdsbI8Uqdg4MzevzrLdDfy17TmsK+NroMK7WTN7U7aSKv7J65uUYv0UPLgopo9GX6gMNTrbwGKNzuA5aLp1byiQ15nVlD5Di3gAgJ/n/Ityh+0RKbzjU90RVPAJrL98w5yHxXItREpJ6tqn8f7fVGomPXA6L8IshuPD1qym29DFF4aS4AsjsPY+Rr0AvJprRuWgljqeKyx9jhTTioKsh5TVXKLLCa55xPOgr+xhQ6KOk59iuBefTEBcheHqBojTzd6+OlC4AX/d6Um1RyjjoY5iYW/s+Z5MbOih5TxoTTMKnZooFUqk/UpGCAVfMA8rvmsaX86ntS55Oj2gvVrMwBL36joD4We7qP/GeLjhwe2srT90hggzl1Gpc+wKSei7ukdEdSYSk7l2cgcDayVAdOOD/zx+xmDR+VyPs/sl6tYGZZofDD5F4J83bob6pX r9FzQwHLkyx3kjb2uh70yKdIwWmT/+DagFew1a5Fw770TnxI3Kv4zV3lF1Eg1SrHKfrKDl7B/dIx9CXSfQGbeqR+tfC/l4p32Y x-ms-exchange-transport-forked: True X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5668f892-62e2-448a-76a4-08d8dde47001 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Mar 2021 01:34:07.3634 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: W2YibUrSz3xC5cMz5tsY5Galste6qXTs4OjCaqx3cDghQw4oz+lQsPjgB9BFbsifpb0OdcNtRWqbvugolTuGEA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR10MB2479 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9911 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxscore=0 spamscore=0 bulkscore=0 suspectscore=0 mlxlogscore=999 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103030008 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9911 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 clxscore=1011 priorityscore=1501 mlxlogscore=999 suspectscore=0 malwarescore=0 impostorscore=0 bulkscore=0 adultscore=0 mlxscore=0 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103030008 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:201252 Archived-At: > Due to how find-dired handles is args, it is not > possible to pass -maxdepth to the find command. I'm not sure this is germane, but FWIW, my mini-library `find-dired+.el' enhances `find-dired' by providing optional args, and two of those specify the min and max depth limits. If this is relevant, and corresponds to the requested feature, Emacs could be improved similarly. Maybe give it a try, and see if it offers what you request. https://www.emacswiki.org/emacs/download/find-dired%2b.el Here's the doc string; ,---- | find-dired is an interactive compiled Lisp function in | 'find-dired+.el'. |=20 | (find-dired DIR ARGS &optional DEPTH-LIMITS EXCLUDED-PATHS) |=20 | Run `find' and put its output in a buffer in Dired Mode. | Then run `find-dired-hook' and `dired-after-readin-hook'. | The `find' command run (after changing into DIR) is essentially this, | where LS-SWITCHES is `(car find-ls-option)': |=20 | find . \( ARGS \) LS-SWITCHES |=20 | Optional args: |=20 | * DEPTH-LIMITS: Minimum and maximum depths: (MIN-DEPTH MAX-DEPTH). | * EXCLUDED-PATHS: Strings matching paths to be excluded. | Uses `find' switch `-path'. |=20 | When both optional args are non-nil, the `find' command run is this: |=20 | find . -mindepth MIN-DEPTH -maxdepth MAX-DEPTH | \( -path EXCLUDE1 -o -path EXCLUDE2 ... \) | -prune -o \( ARGS \) LS-SWITCHES |=20 | where EXCLUDE1, EXCLUDE2... are the EXCLUDED-PATHS, but shell-quoted. `----