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: Fri, 1 Sep 2023 17:29:11 +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="27524"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "65621@debbugs.gnu.org" <65621@debbugs.gnu.org> To: Stefan Kangas , Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 01 19:30:05 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 1qc7y8-0006yZ-PV for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Sep 2023 19:30:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qc7xz-0007CJ-FB; Fri, 01 Sep 2023 13:29:56 -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 1qc7xx-0007Am-CD for bug-gnu-emacs@gnu.org; Fri, 01 Sep 2023 13:29:53 -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 1qc7xw-0001wN-Sj for bug-gnu-emacs@gnu.org; Fri, 01 Sep 2023 13:29:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qc7y6-0000nj-3x for bug-gnu-emacs@gnu.org; Fri, 01 Sep 2023 13:30: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: Fri, 01 Sep 2023 17:30: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.16935893703017 (code B ref 65621); Fri, 01 Sep 2023 17:30:02 +0000 Original-Received: (at 65621) by debbugs.gnu.org; 1 Sep 2023 17:29:30 +0000 Original-Received: from localhost ([127.0.0.1]:33798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qc7xa-0000ma-9u for submit@debbugs.gnu.org; Fri, 01 Sep 2023 13:29:30 -0400 Original-Received: from mail-dm6nam12olkn2054.outbound.protection.outlook.com ([40.92.22.54]:22785 helo=NAM12-DM6-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qc7xY-0000mK-1G for 65621@debbugs.gnu.org; Fri, 01 Sep 2023 13:29:29 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KbBBjHw8AuaXyifQpRIIT9Umh+CAEqRt4sTw09IKukuo3PVm+K5HxYu9PaMw6VDC1qxO57TF5C9EwXUKdSIZJgfOy83i0xOuN3GV9IJSK0uYEYb30/+jvlYjBpdpgB/8xd2J5ZcD4hgPk/5NovqbhMLurUd99JBMRvIoQqdMTG6JZL/6df/70Gf1p/eyWSlIxi2ABApXgS6SJEnmC/WyVvEZ4SUFB6cKeoizVOGlDBY9NjFY6dk7ZId24u63/3GHAqt1UlEdIPFknBNLJw1ht8pF0ZDAUR7BeURFKS+u8vLHCPGn+MTRg3N2P9x7juX5s6522m1SFI1zlpUDG3c+5Q== 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=zbIFZI7OEX25TnzD6I2S07jGDfqrg2EXppk54LqPbHg=; b=DtMTIb9w3ZXaqmxiYpHSzF8CP2KTGoNwQPEHUViNmIOZYQCeeRJDlh3BeFQylMEBRaMKhJ9IRijLUm/QV7s/uW0ujUy994pwsETuubyDjnPtl6n3EDp0B/TvX3uxCog35wXTxG87swKvCTKhTEoMawjV6hzSi/erJ3zMpRdSsxP5bLUHwlwY3I+OAT9kb/Z4DzlFZhUEJ09eRMHBJ8CAJ4pETucnEVWC37WOEM6V+wheHIcz5xB0+cxhmtlUaa7wfjxb2aA+QRDVZf5bWrrjuijFCGtnSeColKgAsVWgaRNQGiqHSOGtiOUbRlnKA2XBXaP8APgtCArOXBA0RF3BXg== 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=zbIFZI7OEX25TnzD6I2S07jGDfqrg2EXppk54LqPbHg=; b=Ie+4JB/skg1rTmjJZwrGVoNVFmJGpdq1U8whizuchpi/9H54nohOILAk05yBjghgrptEhPAAklysIkrrZHHV+ZP/6VA5DjAm0cxhwdeNcWJk53nXHrIQcx5OsW5yM+AxzFP8HYP5De7oN2SC9nEHtKLKQn6gmvOfViZDPRvp8QiVU3W+97OsUQZlavehGgV057PtuKO2j+GxX3auZh2KjreMjrVb5qZKHvHIIZ2PAZKmqtTo3575/s7rMm7yYFsL6Vy1Fubw3Qf0jke3WcoLRS/KPi2yHBUPYWg+oIiQ0Pn1CXVLiRGvCp5eRjtyN6VuR0Epqe2sDtI4fsyFPVAIkw== Original-Received: from PH0PR11MB7470.namprd11.prod.outlook.com (2603:10b6:510:288::7) by MN2PR11MB4629.namprd11.prod.outlook.com (2603:10b6:208:264::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6745.27; Fri, 1 Sep 2023 17:29:12 +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.023; Fri, 1 Sep 2023 17:29:11 +0000 Thread-Topic: bug#65621: [PATCH] `dired-next-line' go to meaningful line Thread-Index: AQHZ20HT/8wr5daoKU60WYHNTQV+4bAC13cNgAABd6SAAArZcIAAUhkAgACwII+AAKD/oIAABN5EgAADr2CAACeyeIAAOFoAgAFNWDU= In-Reply-To: Accept-Language: en-US, zh-CN Content-Language: en-US x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [yhHryAGEYMadwe6oQI04eN+QCHs8jqh41GeJke1BZvs=] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR11MB7470:EE_|MN2PR11MB4629:EE_ x-ms-office365-filtering-correlation-id: c8b7afed-4fca-46c2-7391-08dbab10f4e7 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: pKj7gQyer5cswox3eedb7RBi5Okj8/FOGw3rDicK4w6jGbuXIdd49UkiUfZbISy+cGsjz3g+2AmwSx0aD34XFJywrx8WbeWlVjkhYCrAJJ5q/+ujRxM/gLOLaAJIljvo+p+/ChAqFNI6iA25k8TJvKr+96Sp1HZN4OFSNpOg/448tpUhANd0NbnygOqXn7zEia1wjDhbZgZ4t/7eDaRRMG0foMEHMfJbFTuHLwmoDFPa39L1Us/d6F5rJH8leg18PCMpZJyDNvH44mpnNkYK0vHWJGZeEept1z1nkIGM/fJOPo5dAVCsehvNMF5KyaN9miegb2lJcx1OyE534hTvLmmknOboUf+KvhI547zEUTtJQyN8Hlp3GoUdrYEteEfwbZ+fBOWwXqadP1JTrHlGLYIcmkEbTNfzbvALi0E+N6i0pP4fq38QkmpFMeeCJgzp8LJQWfk+5+R2Fbcerur7+W3K89tVG/B9cdkPq+x8IAmL/Drydbro9mhReknsU+amZnEMEaZ1w7Qt3OCyosRzCBbhkPZQQ6hm/h5g4NLcnEKW+GeEqyIXZlVsji8fw5yd x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: EW0NrwRKGQDYNi/IFJvIF+ieexyVT4mgg5N//pYi+X0si953Iy27lbZT5uGgec5B5i5LSYqQNcurVa5/XiYLNU5eYcS+4WcPicjXy8DSqUFHl4yfrJDFDm+XsWxeAANUNGNmMT+dfjWQu/cPFBX7eOTOxfVRG5r97XrvSjsBRMZnPAclg2BuSXtZvIgn92IrUFFaVbgrSARHyWzY3c6OFRFVlCnvKxj0Xi6bvRcMw93CdL/RihGPSvb+IOYoH3oSLNx+LwwHgqqxJ8zWgOGGskmGF4sfK2tVfmhlncVwq4/X40CBvD3lM1fCJzIEflOfcEfx4k6Ljm+fweLsEKXQiBWnskqPuxTarEQTMe2wx9YH2emmH0eD761Ag8PshsQHheyHttR6TvJy6X64RK0Bfz2Sa2qefRTMlJvh4OdwKfOzF79wM0AwgsWXT38oX+/uz1wohEwKv/VVDwMbRF9QSKvIUUa7p+C69O1glVR6BYG1kJKgMZUPZPFLciwSTHGpS1th27qvuONMnRP0sGv6EDk3r0amEdGmxRdOFKXBjn/RQjhlvcb5eSriPJeQiSbAuG8eDZkmNYzHoPC7T0isMOFIXh7Odv8AH3VLzECtUFAuEY8vT7DpcxGLGXxfe+cOGt9mqFx8BEfOfZaigECtODnDkjPPQRv6/jOf3gm5FSGvB5fUgBYjgixCW3egH8hrgk4WWr8jttke4aMItBG34fUwAIkZGb0D+cGxj5avYPlJqyA2cuzNfzfRrj p+X4m67lvBrVxBeZgJePLPl6dV7AGkDMiDh/46EVPq3dFkdFXlbmc0MUGmBJFk85jJ24XKktAEZBCZPpryTk37QBzJY6gbyZO8 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: c8b7afed-4fca-46c2-7391-08dbab10f4e7 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Sep 2023 17:29:11.9116 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4629 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:268897 Archived-At: > Stefan:=0A= > I like the option `dired-cursor-goto-meaningful-line', which seems=0A= > to both add wrap-around and make the feature as a whole optional.=0A= =0A= Thx! Yes, to use the `wrap-around' you mentioned, just set the option=0A= to `cycle'.=0A= =0A= > Stefan:=0A= > But in Emacs, we say "point" rather than "cursor", so we'd have to=0A= > change that. I suggest naming it `dired-movement-style'.=0A= =0A= OK.=0A= =0A= > Drew:=0A= > there's no need for "cursor" in the option name.=0A= =0A= I'll try not to mention cursor/point in docstring when possible.=0A= =0A= > Drew:=0A= > The doc should say that it affects only commands=0A= > `dired-(next|previous)-line'.=0A= =0A= Yeah, docstring should state it.=0A= =0A= > Drew:=0A= > FWIW, for vanilla Dired, lines `.' and `..' are generally=0A= > "meaningless".=0A= =0A= You can discard them by setting `dired-listing-switches' to an=0A= appropriate value if you don't like them. The value is passed to the=0A= program `ls'. On MS-Windows things seem to be a little different, not=0A= sure.=0A= =0A= ___=0A= =0A= To sum up, new patch will provide an option which controls the style=0A= of moving point.=0A= =0A= --=0A= Responses may be delayed as I have classes during the day=0A= (UTC+8, not 0, contrary to what my email program indicates).=