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#65621: [PATCH] `dired-next-line' go to meaningful line Date: Thu, 31 Aug 2023 15:35:10 +0000 Message-ID: References: <834jkghcu1.fsf@gnu.org> <83y1hsfw83.fsf@gnu.org> 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="23858"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "65621@debbugs.gnu.org" <65621@debbugs.gnu.org> To: Shynur Xie , Stefan Kangas , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 31 17:36:17 2023 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 1qbjiS-0005vV-CM for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 31 Aug 2023 17:36:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qbji9-0007Nc-Bm; Thu, 31 Aug 2023 11:35:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qbji6-0007Mc-OJ for bug-gnu-emacs@gnu.org; Thu, 31 Aug 2023 11:35:54 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qbji6-0003BL-Er for bug-gnu-emacs@gnu.org; Thu, 31 Aug 2023 11:35:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qbjiE-000183-2Y for bug-gnu-emacs@gnu.org; Thu, 31 Aug 2023 11:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 Aug 2023 15:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65621 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 65621-submit@debbugs.gnu.org id=B65621.16934961264299 (code B ref 65621); Thu, 31 Aug 2023 15:36:02 +0000 Original-Received: (at 65621) by debbugs.gnu.org; 31 Aug 2023 15:35:26 +0000 Original-Received: from localhost ([127.0.0.1]:56794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbjhe-00017G-C0 for submit@debbugs.gnu.org; Thu, 31 Aug 2023 11:35:26 -0400 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:39424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbjhb-000174-FM for 65621@debbugs.gnu.org; Thu, 31 Aug 2023 11:35:24 -0400 Original-Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37VDbBe2032364; Thu, 31 Aug 2023 15:35:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-03-30; bh=zfylqrsW1CWzjXztZSjs4NvjhB27iY0/vdeeQp2q/AU=; b=TWEKBANKcaDtUbDQNDzk9xAlGui4BdYEH+O8qJj4fLinhL8gXQsG8bKv1W3fv4mYWwsp /g2Q04DYuU9uF1WzY2XPnAFXU8XtI0JnHBrmiFzig1QuPjc5jUgUYuFZla9tKccZ7QVP VIZuV7vmRef5hxzKbmHveGPCnfkiqvwPiCal8/kedRoXd2TzUs4aMnq3+232qrXSnl/J Mtj/bLtjdyjByj9cIdMkMvm+Ga7sdpN4iyjeNJ8OcbAF9q9tlAvjYoUUYXzJPDmZP9QQ uAcpJZaKXWrjcZO7jIsjPJxsGCT4N+XBRpjKe//DeNQj/dosH3Qq0KEiml/TjFOKpeZa mw== Original-Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3sq9xta4wv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 31 Aug 2023 15:35:13 +0000 Original-Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 37VE5x1a032779; Thu, 31 Aug 2023 15:35:13 GMT Original-Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2104.outbound.protection.outlook.com [104.47.58.104]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3sr6drmb7r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 31 Aug 2023 15:35:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PxriuJ1Zp4UZQog2xa8T4JWwqw6lwC0YFVncvPOGFKiS/SHyyVBidTplc1kMde37ksVW7lW8ahwi8NmvNWZLMWWMT1i8rV49KicxP73GXeZKIedIY5P+ZWGNmbceQJIkGvUXMl2usPE/cQERftP1QUrgarS8FgwKOjhaDiwUBQ7XzGuvLst2hHysV0zmkekS0N8kjLowBkeKfnGePv6OZKkcNHs4X8ffGH0CqUU5Ji3cE/1b5IYptooXx8oZiUlhwv+UYNX+h08nxa1zzr6kkJHIszBbmJSIDGpCD6nlmDH/U7LTmZA7M8TeE5eD7sxZldmbrvX/A0rIM4xGITNWEw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=zfylqrsW1CWzjXztZSjs4NvjhB27iY0/vdeeQp2q/AU=; b=oFUQfN0pRGQJ/Cl4dTdfZmcxIFIu4ppRoP+WIgdZuCCtZb/e8t25iJKLuQNvesy/p6URfCrC/L6E2tmyvKdKcomTNiBk2aTyLVxvkn8ky4BHDY1ERrhvhRWZeuRrhDgHfqN5WGFVujKGFqP91bqldpWaNVbSQbjkYLQ9r9J/Tfg7fbXpxIzgSqfAgdIAoU/BsAjhELwy7xDa51uObqVakn+/oA7eE1PkO1xHaM55h4Zzv4Jm2lil9ILY7CBwIMzcVZgxLgCX9JS+qeRaNNjxhmXUNYED5ZNXSTkq4bFkVyV8QAfxWO1lnCeMJVAVWNmf3G+MQ8t+xpDIFM0VxyP8Ow== 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=zfylqrsW1CWzjXztZSjs4NvjhB27iY0/vdeeQp2q/AU=; b=NNeMT0Hgu7DXJAa30nbTZRz5vKMylTjIWeNhrmFTzfx84ZB6T3mL0EceDwdGfAPrsnIDgpb98Kl3SJZaaVePNg1UsRU0PtBZFg2eM9vWolNW1yNZXPt1grpInqHmXg2HNcqgyD3nsv62UsfF/CpsqxTAHucxUyYCmoWW08rg9lA= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by CH2PR10MB4326.namprd10.prod.outlook.com (2603:10b6:610:78::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6745.22; Thu, 31 Aug 2023 15:35:11 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::7c3b:c5a0:5222:69a4]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::7c3b:c5a0:5222:69a4%6]) with mapi id 15.20.6745.021; Thu, 31 Aug 2023 15:35:11 +0000 Thread-Topic: bug#65621: [PATCH] `dired-next-line' go to meaningful line Thread-Index: AQHZ20HT/8wr5daoKU60WYHNTQV+4bAC13cNgAABd6SAAArZcIAAUhkAgACwII+AAKD/oA== In-Reply-To: Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|CH2PR10MB4326:EE_ x-ms-office365-filtering-correlation-id: 420641eb-fbc6-481a-c0a9-08dbaa37dcfa x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: xcSbJn+nesuwOhujlTWMWoe4HQS6QIGFhz9yWueg25Xi2M+ueOPGzP271z3k/GUozbyuuCHYVC0+rZOUMLjfDzF+s3sEkBhKD7CV39KTfH3682/gk4qag/FYwQc3pUILtr2tFczDY6p/q52/KYix7WtnOkBMHpGvsPGx4XEWAeoIadkhtmTZH6/Kca2U3451xdpO+DgtrLK3oMkzU/L0tzKseYAWVIDYcRg5enUh202stns8CCNO+nDJ9koLmkBvveXHi2IySEhTvxiRqtgAxujQXKOnwSVp8A8jXxj5RkQLsJ6qWN3oSZ0g1TIT4GmCcig/KRTcSUpu6Z79RpX91dSPO17PjZSBbT5LdinijbCauZQ1Kit1prq0p9pY0n5LfebFHU1xg0Hs5GIqyyLRBIBzqsUfAYH6VRqgTphLNJV2kAMkYI8giO/1I0KBxLl+xkqmFs+F/5690e0YMxw+XpCDmr9FYeDSqUnDXJFhviTHXL46hbbLm81O4OO7aXRgMjJrlYrcMhe/4ukOlOcjfYKmf7x7GxKm5hYW7ZIcnroUdhiA2gsJNhKB+4Zn8JfyF4emJI0ve/jB2dHbsd6wdqpAyCSRPJx3gFMuY7Ve+Vz1iIJ6/XV2WCzsBCUxIXrhf/5C1ms3iqxQq3VZqlizlg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(39860400002)(396003)(136003)(376002)(366004)(346002)(451199024)(1800799009)(186009)(71200400001)(2906002)(52536014)(5660300002)(86362001)(122000001)(316002)(478600001)(4326008)(8676002)(7696005)(6506007)(9686003)(44832011)(8936002)(33656002)(26005)(38100700002)(38070700005)(55016003)(41300700001)(83380400001)(66946007)(64756008)(66446008)(66556008)(66476007)(76116006)(110136005)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: 37g0IZoAx3y9Mtt8wRyN4Bkof7khCAzmBzjPs3+yI9zSAPhWdtTJChvO4UhLwqNaSniQizKKvZDR2sNpRgnf814ML0En4DiTiGhBzgz8ELf6EvqA/WZR5h4VKPNFU5D5JRLizNxyN8iQsiKmT5T2BEo0Incrw6nE3m9wMre7o46GRKodNlUmjXXduHRsCGYjecRpYd0gihi6cmXSLrmyS52XxfDVBW/hOrUdCD2pkiOBMKbSFM3xTlRDP9pp1GVTfiNB5Y2CR2wjODIrZ5UkLqA9hFx1dG4pMVwZpwt8YobyI9Su+CGcUMggg+uhGglZ10d7jBjwv8fjTZOGpSjaIMiLfMTHp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s5wrJvvbzm9FZEEeTu8ux6FMrAbxnGiY6O758CKrte1h0CDyD+fso2H7ZdjlhN0zzjL1zC1yq+SFW+4x0cXRg3bV9H53JVyDFTFjgfbE8nrD8Hh01kToAWYu5dAcXY+fZQWOoGQij3xnaavl78kpLIbIvai79q6O7Wr0LdvlsB89GwsaGQ0Xm1h9zz6xzQhcmsNbbmQ2f8LLPIsss6qH9VLDib4qyp/q/6kAkYMaODnR+V2sb2wRjmCnpUEOHOLp0h2 7qo6iv3W4eryDc+ys64YngX/McfyI9ovELlRHlP3mXi434X0jdmMJcHiSQP8HxT/PWHE1VcHIRjUAP15frjRhS4+8qMm+4oxGe X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 420641eb-fbc6-481a-c0a9-08dbaa37dcfa X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Aug 2023 15:35:10.9791 (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: lR0NiSf/q0Y5aINMiwxNPXOwBbs/VXFvHje2bIlHt5CDNXL9dL65EYaL9TOYn0TXglKEfANaJ7wOyjcdHHsBEA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR10MB4326 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-08-31_14,2023-08-31_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 suspectscore=0 adultscore=0 phishscore=0 spamscore=0 mlxlogscore=870 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2308310140 X-Proofpoint-ORIG-GUID: D5HmzIYW7rnYFOYXi6jNkFQ2kueXkIdK X-Proofpoint-GUID: D5HmzIYW7rnYFOYXi6jNkFQ2kueXkIdK 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:268826 Archived-At: > > Dradams: > > It could be argued that the blank lines that precede headings of > > inserted subdirs could be skipped over. But it should _definitely_ > > move to the header lines themselves. >=20 > You can move anywhere you want _easily_ no matter whether > this feature is enabled. As I said before: >=20 > > Just use mouse, `{forward,backward}-{char,word}', > > `{previous,next}-line', etc. Anyway, I just changed the definition > > of `dired-next-line', so actually users have many ways to do what > > they want. No, no, no. `dired-(next|previous)-line' should move to header lines, as well as to file/dir lines. This is important. As I said, users can perform actions (I gave the example of `m') on header lines, just as they can on file/dir lines. And in many cases, they can invoke the _same_ commands (e.g. `dired-mark', bound to `m'), often with the meaning of applying to all files/dirs in the listing for that header. Let's not change Dired willy nilly. Let's please learn it well enough to take into account its existing (and longstanding) behavior in some area, before opting to change it. In this case: there's a reason we have `n' and `p' bound to Dired-specific commands. Navigation destination should generally be somewhere you can do something Dired-specific. Put differently, it should _at least include_ places where you can do something Dired-specific. Same thing for other Dired navigation commands, such as `>', `C-M-n', `^', `C-M-u', and `i'.