From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.bugs Subject: bug#52384: [External] : bug#52384: 26.3; dired buffer navigation tweak Date: Sat, 11 Dec 2021 15:08:49 +0100 Message-ID: References: <69e7c202-8ad6-46c7-800a-f54f0b314d61@provide.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2157"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Michael Perry , Stefan Kangas , "52384@debbugs.gnu.org" <52384@debbugs.gnu.org> To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 11 15:10:21 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 1mw34t-0000K0-OD for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Dec 2021 15:10:20 +0100 Original-Received: from localhost ([::1]:40148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mw34r-0006c3-VE for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Dec 2021 09:10:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51256) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mw34c-0006b0-Gu for bug-gnu-emacs@gnu.org; Sat, 11 Dec 2021 09:10:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37278) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mw34c-0005W4-8M for bug-gnu-emacs@gnu.org; Sat, 11 Dec 2021 09:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mw34c-00063H-0u for bug-gnu-emacs@gnu.org; Sat, 11 Dec 2021 09:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Arthur Miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Dec 2021 14:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52384 X-GNU-PR-Package: emacs Original-Received: via spool by 52384-submit@debbugs.gnu.org id=B52384.163923174323195 (code B ref 52384); Sat, 11 Dec 2021 14:10:01 +0000 Original-Received: (at 52384) by debbugs.gnu.org; 11 Dec 2021 14:09:03 +0000 Original-Received: from localhost ([127.0.0.1]:48824 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mw33f-000622-F7 for submit@debbugs.gnu.org; Sat, 11 Dec 2021 09:09:03 -0500 Original-Received: from mail-oln040092073077.outbound.protection.outlook.com ([40.92.73.77]:38545 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mw33a-00061T-3Q for 52384@debbugs.gnu.org; Sat, 11 Dec 2021 09:09:01 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KipCB6zlPO93wV/YNTTh5Ho1ZdghZGYau6HVIp8K5axSDz6wP+3DcqHUWDXiIxa7Xy0F0ddZ0+Gxtw5LqGMn9NNHDRTjPRrNm1XHa3J0C6SERPdlLRPLALoq9cLKxsHGZNqd5VxTQ9I2sONw+rVUbo+4Gv/BFpSGB43zO9iAjp0Yst9qxsEXPtwQ1by6gEkx45crkuxUZAWk5C6twmWS4oTy96u7wnnGgbpp0mYw05lAH0UcuijDMWp+/rikjFzzfpeVpPahzUnL2/CAlsxfxOjhd97u3n0uPzxKyzV5TsRh1OmPTDk/CIUE5sKvD6VHtevfa3QrD8kSLnyPbb/7pg== 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=dZ1eCB7EFq3lkTaMQ1OrxZSk3epcfPi44eeBwpR1iNI=; b=XLjIPws8ozg8WGa4QB48bCoLVmLBu/7pwhSG1pKtfNFm4lZldMe/Hmm0+bE06OOiA0jiGD0NKv07NirDP5uGHJy4QXeSnOeFChNIYelediGOfyg5++vnjXrp528i8uDIkgFYJ0aZ1eBCXa+2NVgcjW4cZmSCFtsMtKG4EQoObIFJ5e/8xnkgUlberky32TjqP1XTzNpdubY3Emn04nUYVaYiDIdKHxdBOvg8quL559tpfsRAmxn+JMlQHMLIcCF9+AZRSWhvvEnXhRhqT3nQs8RsAzxYj5ZOFARzT4wjAkk87jZZXhd0vGZ2AqLBos9Zg73wR+gAHXIC5d3KlN9puA== 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=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dZ1eCB7EFq3lkTaMQ1OrxZSk3epcfPi44eeBwpR1iNI=; b=phR6/+iw/IEGBj4YNqucAs8Ol2Nqz+NZ1tmQ54END/FP6/MIgBFVjjayBArqvCseRNBYsWvGtXaTPB7XFJfGsfNG3avV0qufig/tGA7DFw2lr74sz5hgp+B1xfqkOL+EEF3w8G/1Sv9JGXF6gHbOhDdA+6Zbg5Nr56RXiar3t/HynvDl3x+jPQ559R1KJ9q7K/r7a3X2acpFVlYgrKVnhiIOfRoi5Wq1fSGAIRqbOoCYMqPuhprxmrYRmKofusWJklEwd6aqXC+lXJtVYeSfoFKg2spJjH3tPVjuSBPtjCMlRH4LGBxnEZQElwPRj5b7L9Riy+4WqAUocBPKKQsugQ== Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by AM0PR09MB2564.eurprd09.prod.outlook.com (2603:10a6:208:df::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.19; Sat, 11 Dec 2021 14:08:51 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::b012:5fd9:9447:d64a]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::b012:5fd9:9447:d64a%4]) with mapi id 15.20.4755.022; Sat, 11 Dec 2021 14:08:51 +0000 In-Reply-To: (Drew Adams's message of "Fri, 10 Dec 2021 22:52:03 +0000") X-TMN: [fjZBAmAu4rgQbL5s4OV/Vh3zwgDA+Xfm] X-ClientProxiedBy: HE1PR05CA0213.eurprd05.prod.outlook.com (2603:10a6:3:fa::13) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87ee6jxmha.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by HE1PR05CA0213.eurprd05.prod.outlook.com (2603:10a6:3:fa::13) with Microsoft SMTP Server (version=TLS1_2, cipher=) via Frontend Transport; Sat, 11 Dec 2021 14:08:50 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dfa2e92e-51c3-4ec3-59ec-08d9bcafc1d3 X-MS-TrafficTypeDiagnostic: AM0PR09MB2564:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RsqXlmqMHKZBKi2v1HwETnbmTTbUsTfS6EkepA27AJJRk1AlIMyyoM8FVg1kNM0HUqn7Wb0aB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kJ0LZjGQa0I98oPz4kV7/UdtFrbTcmEvTDMkkx+4tEHDZEBfTRaktBGva7NUl5hMUWEX62tK4AWBw+Fe2GmvTKv+ikwZy3WNlVSS54fD8clvUxt6bxibPwSSY+lN1+qjZ/SkQ1CwkOGbKWGqFKOw1Jqx+lbX5ne12bEH9h27A5EOVJzl9HvKQQi77vADZotaSBszcmDWP9pROyMKfuMhZsK5FJcORGCVhrcUYqPkHpfqRPkwpLhy6JWZXLV3LaB2qhxvP9oLAQTHM DE+TvrHE3b9IEfyc3kY2EwZ5lJpBy5mmxyc0xf5iKLmSh8HqOZMCrziZr4s7BRyBjCMtJWVWbY+Je/eRYSxkFDiZqfWAbiGsff X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-64da6.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: dfa2e92e-51c3-4ec3-59ec-08d9bcafc1d3 X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4977.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2021 14:08:51.2256 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR09MB2564 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:222123 Archived-At: Drew Adams writes: >> > My 2c: >> > Leave `<' and `>' alone, letting them move to >> > the previous/next directory file line. >> >> If you keep directories sorted before or after files then < and > become >> almost redundant, since 'p' and 'n' will have same effect in practice. > > For some meaning of "almost". > >> I say almost, because there is instance when one is deep below in files >> and would like to jump do directories (when sorted before). So pressing >> '<' would take you to the last directory before files listing begin, and >> than one can use either p/n or to move cursor. > > That's far from the only case/difference. > > `<' and `>' move only among dir-header lines. Yeah I know. > They do that wherever those lines might be. > Including for inserted subdirs. > > If you never insert subdir listings, and you > always list dir lines first, then, within that > block of dir headers (only), yes, `<' and `>' act > like `p' and `n'. That's one case out of many. > >> I also think dired should use by default >> --group-directories-first/ls-lisp-dirs-first... > > Please file a separate enhancement request for > that, if you like. > >> > (The Dired+ versions of these commands wrap >> > around, if option `diredp-wrap-around-flag' >> > has its default value of `t'.) >> >> I would suggest this option to make it's way into Emacs. Can't you suggest a >> patch? Windmove has similar option for moving left-right windows to wrap >> around. > > Giving such behavior to vanilla Emacs is trivial. > And I likely did propose it long ago, and there's > a chance I even provided code for it. In any case, > the code isn't hard. I don't think it is hard to code; it was just you already made it in dired+, so it's your code, your thing, your patch :). >> It would be handy if 'p' and 'n' and '<' and '>' would behave >> similarly. > > `p' and `n' do behave similarly, based on the same > user option. And yes, I generally do provide > wraparound navigation etc. in my code. It usually > makes sense to do so. Yes, It would be nice if Emacs had consistent "wrap around" for more things, as an option of course; like in windmove.el.