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#52384: [External] : bug#52384: 26.3; dired buffer navigation tweak Date: Fri, 10 Dec 2021 22:52:03 +0000 Message-ID: References: <69e7c202-8ad6-46c7-800a-f54f0b314d61@provide.net> 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="34655"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Perry , Stefan Kangas , "52384@debbugs.gnu.org" <52384@debbugs.gnu.org> To: Arthur Miller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 10 23:53:44 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 1mvols-0008u3-5z for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Dec 2021 23:53:44 +0100 Original-Received: from localhost ([::1]:37012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvolr-0002o5-6T for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Dec 2021 17:53:43 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvolD-0002IM-2w for bug-gnu-emacs@gnu.org; Fri, 10 Dec 2021 17:53:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36628) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mvolC-0003r8-Qa for bug-gnu-emacs@gnu.org; Fri, 10 Dec 2021 17:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mvolC-0006Ni-Pq for bug-gnu-emacs@gnu.org; Fri, 10 Dec 2021 17:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Dec 2021 22:53:02 +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.163917673124453 (code B ref 52384); Fri, 10 Dec 2021 22:53:02 +0000 Original-Received: (at 52384) by debbugs.gnu.org; 10 Dec 2021 22:52:11 +0000 Original-Received: from localhost ([127.0.0.1]:48170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvokN-0006MK-E4 for submit@debbugs.gnu.org; Fri, 10 Dec 2021 17:52:11 -0500 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:58006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvokK-0006MA-N5 for 52384@debbugs.gnu.org; Fri, 10 Dec 2021 17:52:10 -0500 Original-Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1BAKY4rb007429; Fri, 10 Dec 2021 22:52:07 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-2021-07-09; bh=sQ603xmULQWXUc2g9zplqCJs4N9lhlItiXMVQ75Rtfk=; b=qFh6l1U3eyaFYlZoHJz41k9rI0dIOjX5w1ygFqH6UPdbUbuABDYbZ/A8WkoKTxKdMSnu DfaormLPa/tcCaEZs+8S0f30rVWA7Isr1niML9EcG5Jwf4kgKU/CV7YOCGw/q6bg7PwD vTvmxCsoBMvWodCAsdJz/nMI+sWcuLbwtTt58jDtXKY5ETEDXBWuFjhwTLLgjWLtUiMf NiSvDQY1apc2n7xRyGbghMFib5zh0MJ5Xw2dve+jMGw5JhZh/0iOsXcCGraZNZTdTJGJ etmZPP1o+QyHbkhuasQPfx7pLUG2g+g/t2nOu15eHRMCv/iX+vdryBc1ZRM46M7iCFHv gg== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 3cve1v8719-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Dec 2021 22:52:07 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 1BAMir3j122108; Fri, 10 Dec 2021 22:52:06 GMT Original-Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2174.outbound.protection.outlook.com [104.47.56.174]) by userp3020.oracle.com with ESMTP id 3cr1suxmk1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Dec 2021 22:52:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Es6vgR9cPvg7D77Vz1MtC4JAepqOmBrHZumyesXYUYUTwbrJ9QzVLTxfdriHpFm7RjUuVu+yCcZMzUaD1g+0llby/cw30jQ+CoYaJ8lCA5vLwnpOr2nD2KKFy7bOKlrNc0DUZccSpvf8BodJlsFsEskOM7AnKPmeWe6KGn19ERdDYbXdw3B084zXkm4HuBhk3VdSk532z3CISx1QTkqd/PqSUE0s5717vH3Ztmgsd7WQWMV4Zi0OO1xHSMBbvdw127/+RGlFraZJAfZf9DR4syTNesm+0gKc4hRJSpBQhvSiYhvyZfDYGMpryE3LsSu5ydogs+Qe+QPpF8KfmkLaUg== 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=sQ603xmULQWXUc2g9zplqCJs4N9lhlItiXMVQ75Rtfk=; b=VyzKQsago/b+4C7pWoVSzllmH4KTMHOgj0lmpfg1Eut67dKPY220HZTZoBK/asjkBiS4lKnYjvGre8edrqh5xGM/jCfi4lbB4DOj/7pynhVoQ5rsAaUH6y3mHGiXu3ohbryaovsjbwNvoobzMqDxBcapS4plfbFQNwvB/zMKyfXW1i2UnSZ+l4VerXG6SoLn4mWb4nQ39Hwu2x+mV6X/lPXbXTEIVDF0Umpf6MVwvodVGrvUhSuTu6eUxp+MCC9S0p5ee+7iCeGnE9BQyMg7FZrEH3ak9xawWXvuW1b2Edy98gsjbcxNAHFVkEFtDFZOhWjinjvN/fYSRzqtmLWpBw== 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=sQ603xmULQWXUc2g9zplqCJs4N9lhlItiXMVQ75Rtfk=; b=Fj56cSlpyhzbaEW5nwZejFAQonVdU2nQSJJ/kCpjc1VVIJvEZ8CoXgDwR2HHXgRE1syOH+06cqhA6GGzdTsukX+9rY6DXFmE1WCgJG1UqnX+F4wdVV7By3NekXVLwL8znPUov8/j7OZSkOJF31XZTna93532TVr94bUZBut1ZkU= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BYAPR10MB3142.namprd10.prod.outlook.com (2603:10b6:a03:14e::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.21; Fri, 10 Dec 2021 22:52:04 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::99a4:696f:5f30:36b3]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::99a4:696f:5f30:36b3%8]) with mapi id 15.20.4755.025; Fri, 10 Dec 2021 22:52:03 +0000 Thread-Topic: [External] : bug#52384: 26.3; dired buffer navigation tweak Thread-Index: AQHX7hTy5yre4PYLcEqIVvTsVRCjhawsUfrw In-Reply-To: Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bf0d2a7c-ac7d-47a4-5f36-08d9bc2faf40 x-ms-traffictypediagnostic: BYAPR10MB3142:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: vaBYRRFvBIrrlvNve39ThZrQlsL4VJkU6aav0eVavU0iTMuPHoHvuCn2r6zkrtkDJcWs/rBLYxpDk4n2ZOERYsDi4Yf0KnoxFjwRFBPmGrTpDJLQ6A0Hz9wy/3aJwR6ngbgHrlucadO57Jhe7QBkCaIHUZe8Fd3BIHh7OzGTvP7kQNjz8Qe+mwa23kRtUb/vRdJIPxtzKPSoFarnK0SKID1wx9ht13KluEDjXw1PeYwBNB5MZqFUDEsI92bytIs1joR+1Tg82bU4xtm2f3phCZlf94+hCf+tpbVUxZy0owu/1DJ/Rhysz6w7OchP3ReEZIAtoCiVw1E9g2V2KBQBOT5VVN4wzG1VjTXHK4Jibhr6tYTnFYEiicdWC2s5c8UiO0OebPr3fJ/i50Om4CQa7QWQOomB4ADOGcmEK2vokyksDuM0sFmMd5/ENEsUot+5cK1E8Tx2Bv/iz9aZvHGcOHz4+6ta2CYBgL8kGVJAYn2LQJmrVhtsEc7DxUUVuKLcVeh2rnGkEAQ+nIuNwQ5I13kQVEl0ffo8cEP36Igk0qCghFyf9Yfz+0u5ZgHJQcRAiqf5ZI6CASfMJtFZyZoqxRNKPdntfPMDAGcvKGtMw2uz0qq4SL2eOrOM/lKBEZVd7IPisGH4/wTWsF20sN/K34Zp6E4Xc6IyGuxpaafsKd25Z2mYnBD0ovo5vcQ8u6c8tEs1lFyPDnIcbF91x2Kh5A== 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:(366004)(122000001)(38070700005)(38100700002)(6506007)(9686003)(4326008)(55016003)(186003)(508600001)(2906002)(52536014)(8936002)(26005)(76116006)(33656002)(66556008)(66446008)(83380400001)(64756008)(66946007)(66476007)(54906003)(71200400001)(44832011)(6916009)(86362001)(8676002)(7696005)(5660300002)(316002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: ssIdI13Xyrde24LFpkF3e+ApypS6heKM99/FQ2PGMIZhOWdL27pl7cH2fEtzqQ9ro4O1myQi7Frz0X5ly6doeuZcsZQG8aEKMcUd2qM+v6wV9kSkaJNhhynqx6R+WQIGKWg62rvQZ07CiYFhG7KmQxMW4+vvX/XB627HmzFxCnkGGKFwIKPn+f1Ml6HccrAR7gBH2B7YxudOUCu0WXrormIH2BdkpyfQwCGZIXq3/xAm81OMfNxQHS0OxiR1H+JTh6tM5uPCJ5CeQyHuEFIk3t4Gt/RMXgnQhg0TquqEoampqiO+lqDH1upN5kbjw4r/m8dsdjQHGdFavZIt8GK6IjmL5Sr6I2Pn35RRPucgxPSshA31hf6y/BaNoOWnttXRTG6KlxBe8l8bWW/7H0eEzoSpnl38XEAtM2Cd7hk0EhPyYWqxzETlcGBICJVJYFCdxAaYkMroW9jSbvO+zt9i9VUgxjjAxVTyFYUILLCziIchjolRUybw8QxjKx2KG7GKlga5iLJjt3zwRY84tkoYc6ERpEPPG3O+hdwhQtBaxdtpOHXehu4VYWZuQLvbXrdkMS29F9X+B2Aeveom8u3SEPM+KNXJewQf+cDqDGGBURFBecAICRK1UsyGrMJcPDLxVCfhkNMcfY4PSgA7PLbL4dZCDMaCsYHmQU+YDWEwA/G0DpPhvdXtOBHmHJSq0Gobr6q8K1jJz/BeAnwVqviT4pX6OT9O+wKWoG402SBheO9KLOTt9EKCUBuaw2 GGB7UThhfO9wuC82y2/m1NQ1kqb8b9RngBQwQs+EOUDCIY8HAmxOqUIjlWl4Cyo8XFAjyg+yUnIbkiVMSeppf2he4R8zPqg0ov 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: bf0d2a7c-ac7d-47a4-5f36-08d9bc2faf40 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Dec 2021 22:52:03.8414 (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: J6Hm3dbmfLad1Fuph0FzBIG2gDZuK1LSQlrQol6qEhNMMWNHe5gQclKJz2v+41mQb7c57OZxZdlmKqCsjP+dXg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB3142 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10194 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=846 mlxscore=0 spamscore=0 phishscore=0 bulkscore=0 suspectscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2112100124 X-Proofpoint-ORIG-GUID: SnJW0HdlZNp5VTGUghmPKdjSLlNYePWN X-Proofpoint-GUID: SnJW0HdlZNp5VTGUghmPKdjSLlNYePWN 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:222099 Archived-At: > > My 2c: > > Leave `<' and `>' alone, letting them move to > > the previous/next directory file line. >=20 > 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. 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'.) >=20 > I would suggest this option to make it's way into Emacs. Can't you sugges= t 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. > 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.