From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Shynur Xie Newsgroups: gmane.emacs.bugs Subject: bug#65621: [PATCH] `dired-next-line' go to meaningful line Date: Thu, 31 Aug 2023 05:45:29 +0000 Message-ID: References: <834jkghcu1.fsf@gnu.org> <83y1hsfw83.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19252"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "65621@debbugs.gnu.org" <65621@debbugs.gnu.org> To: Stefan Kangas , Eli Zaretskii , Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 31 07:46:16 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 1qbaVS-0004mG-8B for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 31 Aug 2023 07:46:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qbaVC-0002Zn-0d; Thu, 31 Aug 2023 01:45:58 -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 1qbaV9-0002ZX-72 for bug-gnu-emacs@gnu.org; Thu, 31 Aug 2023 01:45:55 -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 1qbaV8-0006ad-NG for bug-gnu-emacs@gnu.org; Thu, 31 Aug 2023 01:45:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qbaVG-0002ae-HX for bug-gnu-emacs@gnu.org; Thu, 31 Aug 2023 01:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Shynur Xie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 Aug 2023 05:46: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.16934607479933 (code B ref 65621); Thu, 31 Aug 2023 05:46:02 +0000 Original-Received: (at 65621) by debbugs.gnu.org; 31 Aug 2023 05:45:47 +0000 Original-Received: from localhost ([127.0.0.1]:54632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbaV1-0002a9-9g for submit@debbugs.gnu.org; Thu, 31 Aug 2023 01:45:47 -0400 Original-Received: from mail-mw2nam12olkn2066.outbound.protection.outlook.com ([40.92.23.66]:20385 helo=NAM12-MW2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbaUy-0002Zq-EX for 65621@debbugs.gnu.org; Thu, 31 Aug 2023 01:45:45 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZErV91Y7Ymk7IwqMzYeHb25/QJD+QrvfnYaJImkXMm4vKhc+7ejSkSua+sivgIqeXBwPL7XvtZ0edHCt7M6kfoqmHjfB3SIKvJo+yTBzLb2voPBTspn4VmaCZOoLtIBS11UIBah2IDxjAs4ysBitC5zhbNZdfA2JBFBqZf9lY33m2WTsa3tQ45XpQj993jAxG8qyHAtEXEIjXB+k9sa4kYAS0mNdk9HqRmq757haNrj/XkV3Tm4a59y6iq2NaNHmHmhrvFaOu+CQk7Qyq6ZF50r3Gu9Gn8R+pFiLdUsnrfuAbGsS149s46YcZa/HZR8lsOJ2Y6jodYEn9BDFtVh32Q== 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=SLDrIUtLghMctdgEevrFt9BtCgH83EdZC8NzLMc5ogc=; b=hBgZYQ9lbIE9ujZoPtj8fYzF6CuNpHd9m716L/LlBwLpZTCvfongrfc0qljVdwvWI0s9dZuCqth1KF7zSou41+OCAeuo76Ri997vAUWp+W8OBt23uv8XPpPU/nzvKkJJwvYqfKgJZr7zP9KQmM7djYvn+gcS7rO92kQxmOrYnJ6JUmsWSHaVTjNCy3IENu1LHPwHReAlhqlpUc7Bp6Xk/WdKR7hViJJc+kdGmLWULBe9zHQ1aY76pFO9nADKvKjyvxAGI8qgE+Nb9j5DC3qJ/diyFqj8pcAmfCUAegZkYW7wgX8c4vPAIfw0FwpP8quTrNNlQMoC7FT5KEoP2iJYkw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SLDrIUtLghMctdgEevrFt9BtCgH83EdZC8NzLMc5ogc=; b=NcnL60SwjXm7eZJ64LjD46e6uCsqvf9Er5wjwZrkvKOxBrkTu82Yr51Sbr/zp91CpP29BObXoHxaKCPPqAg+/Z+zFpj9TCYt9EA8exe9+QAmvw5uoQfFQ1vO1/Fh59oY1arcClN1jfZYcphX4K/S1FNmUo50uZ4jk3vQadLwAEvjisWTcLXTvLALSKtZzwzbjnCmWlyMtF8laNsZL7oUOQY+UVNmPJqGcKPRbNGkPzHJ3te4zM9IS7wACujWQdQJTSOX+RsYuRpQtSp6mYalRkML1SFfhFvUpPsyA0LKEto5kvsszdPONHCeYqeb2fi+FwOjSjuObnwN1G7E+eWWLQ== Original-Received: from PH0PR11MB7470.namprd11.prod.outlook.com (2603:10b6:510:288::7) by IA1PR11MB7821.namprd11.prod.outlook.com (2603:10b6:208:3f0::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.34; Thu, 31 Aug 2023 05:45:29 +0000 Original-Received: from PH0PR11MB7470.namprd11.prod.outlook.com ([fe80::d0b8:54f7:2a45:2983]) by PH0PR11MB7470.namprd11.prod.outlook.com ([fe80::d0b8:54f7:2a45:2983%5]) with mapi id 15.20.6745.015; Thu, 31 Aug 2023 05:45:29 +0000 Thread-Topic: bug#65621: [PATCH] `dired-next-line' go to meaningful line Thread-Index: AQHZ20HT/8wr5daoKU60WYHNTQV+4bAC13cNgAABd6SAAArZcIAAUhkAgACwII8= In-Reply-To: Accept-Language: en-US, zh-CN Content-Language: en-US x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [jD7v1nHK7TvbxdTAIbLrhGwc102aIbBZ] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR11MB7470:EE_|IA1PR11MB7821:EE_ x-ms-office365-filtering-correlation-id: 3088b970-7539-4a23-b53c-08dba9e57bc3 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: L5POl8Oi6KvvUhCFnHhoEkY8ebncp5AYg1exDkFSZ9A4L18ira3qHmkE37iw5/0i4GZBhbBympnzLp2HsEdY8cHeKz0unaXi4HKQzNwSUQfeDT/bIlYvjluKNmmC1WpB8cMrOjm54WX//uHH7UzJycSOdkTD5yYWAebhW1beA44NTwHVzrDDYnwzFf4whMgp5E517q/vu3QHl813UTdn6MNz4N/v4HomxkKZREjJy7DuT94OpG75vLVqJzMiqvm0Niy6kN1ELT/VAHJ4R5c5F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qjvP9j3ryEINSouj7rYx+MnI VZuQ9WDfs0Tn4n07b28HTchv4Y/sbBDHD9r6jbt4dJlu7L1sXqEw9j8aDq+pJ1v1HUspISoLspgmqJ30M/uLF9Ja6B5Xoxf6c2 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB7470.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 3088b970-7539-4a23-b53c-08dba9e57bc3 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Aug 2023 05:45:29.1931 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR11MB7821 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:268778 Archived-At: > Stefan:=0A= > I'd probably enable it if we had such an option, FWIW.=0A= =0A= Thank you!=0A= =0A= > Stefan:=0A= > But Drew's point about inserted subdirs would need to be addressed.=0A= > My ideal behavior in that case is that it jumps to the file in the=0A= > next/previous directory.=0A= =0A= > Dradams:=0A= > At most it should move to the subdir header line, skipping only the=0A= > blank line before it.=0A= =0A= Let's make thing simple:=0A= =0A= I'll fix the inserting subdirs case, and make this an optional=0A= feature which is disabled by default.=0A= =0A= > Dradams:=0A= > It could be argued that the blank lines that precede headings of=0A= > inserted subdirs could be skipped over. But it should _definitely_=0A= > move to the header lines themselves.=0A= =0A= You can move anywhere you want _easily_ no matter whether this feature=0A= is enabled. As I said before:=0A= =0A= > shynur:=0A= > Just use mouse, `{forward,backward}-{char,word}',=0A= > `{previous,next}-line', etc. Anyway, I just changed the definition=0A= > of `dired-next-line', so actually users have many ways to do what=0A= > they want.=0A= =0A= ___=0A= =0A= I've started rewriting; this shouldn't be too difficult.=