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: Sun, 3 Sep 2023 21:47:28 +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="27080"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "65621@debbugs.gnu.org" <65621@debbugs.gnu.org> To: Shynur Xie , Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 03 23:48:24 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 1qcuxD-0006m2-7r for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 Sep 2023 23:48:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qcuwv-0005N2-3F; Sun, 03 Sep 2023 17:48:05 -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 1qcuwt-0005LH-8N for bug-gnu-emacs@gnu.org; Sun, 03 Sep 2023 17:48:03 -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 1qcuws-0006zk-Ub for bug-gnu-emacs@gnu.org; Sun, 03 Sep 2023 17:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qcuws-0003h1-2w for bug-gnu-emacs@gnu.org; Sun, 03 Sep 2023 17:48: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: Sun, 03 Sep 2023 21:48: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.169377765614031 (code B ref 65621); Sun, 03 Sep 2023 21:48:02 +0000 Original-Received: (at 65621) by debbugs.gnu.org; 3 Sep 2023 21:47:36 +0000 Original-Received: from localhost ([127.0.0.1]:47107 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcuwS-0003eD-37 for submit@debbugs.gnu.org; Sun, 03 Sep 2023 17:47:36 -0400 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:64478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcuwP-0003dq-D8 for 65621@debbugs.gnu.org; Sun, 03 Sep 2023 17:47:34 -0400 Original-Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 383IKdDK004773; Sun, 3 Sep 2023 21:47:33 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=dWXp4+PtI6Jwg9UOID6CMSEBJhKivl2Jw/mRKja4HMQ=; b=D2CYoBAGJvWpA8fsmKKWMAZCdvCU9ET0/ZDzXzQnilsw/ifXKS2vLvQDiAWkpFmD9wKR Difrzqt3Kxpf3OCu6gkDPUWopxUjqWUkVguTGp8iaNWYh2ublUd0VWS//ANhjpdiKJDd FCx5YpnaP/O7HSDz4Jdr2Efsz6zy71nDizfR3ydGR/Zpo7RPW+qX+5gQvB3JawF3Rt6Q DGrq0DcPt/3yyGkV9riCEw5YcAm6Iynixpe6wnEBI23X7/+Tz82iUi0f7jlmq4QDtu+I MUv/ZnNIRG7WwxsHeGyO/pVFfXifWgU7i8ZExx6xS4H6IKxGhPmiPxyhJlJzO8cPjfN6 6A== 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 3suuu3j06g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 03 Sep 2023 21:47:32 +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 383I9ALw030613; Sun, 3 Sep 2023 21:47:31 GMT Original-Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2174.outbound.protection.outlook.com [104.47.55.174]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3suug3gdcf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 03 Sep 2023 21:47:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NvLPE6tIjo6LH9g+oOrkmnJwcD+pTUSGAzk0faPjMv0be69AiBi21TwtMYwJR4aO5MgGK1vF6zhgmiXD72aCIDNzZaX3CpCzizfCn/rQDmuoKpIVQP3fGLy9OgX4g95dvlUMHHT5b93PJshwkH+NkPpWQEae6ZLrmxDsAxAmt0ASpSk2FIHqvVQ64jsJ7Nq93swLvKb2zSJcwW4y6d8QBMpdj9qt+OXiZWxO/PevD46JFzmtrwIvaE9MDNqRhSqPKfgfeCN++kjNPp2Z0xHMYoV+rp6KuBK3n22jsLh2QR1W1R8Jr+tgnV4YKS8VOTjVtOas5N0/C79LSwv2uzcHew== 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=dWXp4+PtI6Jwg9UOID6CMSEBJhKivl2Jw/mRKja4HMQ=; b=ZbSFMKyJEF8Wul4LAGq0uTAHL9YoZaQ4fhBqRTA1Zk85hNHBQP/CflQ+caLtMSrRvaieV5Weh0gjMg/6e7w046IArC4YHIbx9zeewXEuYOcS7jZi85A9lF4QLREsJsI4b5YqoB9SXQLlHw63JCPsgr0oC6H0MDcx3avBVLh2Z/1ycW16leKYYlCOu0WdDQxnOSKFt3nitU9QjcDn9hBo1NgdMq309+bjWiRQC4bwbao5GYrOmCDAm2ydg7tyhBMCLowPXiK6tGPU31iIs2MNtJC7Qy9tJiB+EulhaHMMO3Ve8jN0FLjQI5ehUfx7cPwEkAoaZ7U1x+mVnLIfsW2xAA== 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=dWXp4+PtI6Jwg9UOID6CMSEBJhKivl2Jw/mRKja4HMQ=; b=tQHzj7xjxZQNLz63htvp6Ulq8pRi2wJbnP6BhF5ZfYfQfKcAbARIWi0s3ZJ+Ziy719GsQQKvWQHWyvxMvrHKLzi06kOvLfe7yHBSL+yKyeJZCTOnibLd4S3yc5WWivfpfWDBSzHw+IOu28/lzkCPqT23GQedZtaber69V+m5K+k= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by CY8PR10MB6851.namprd10.prod.outlook.com (2603:10b6:930:9f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6745.30; Sun, 3 Sep 2023 21:47:29 +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.030; Sun, 3 Sep 2023 21:47:29 +0000 Thread-Topic: bug#65621: [PATCH] `dired-next-line' go to meaningful line Thread-Index: AQHZ20HT/8wr5daoKU60WYHNTQV+4bAC13cNgAABd6SAAArZcIAAUhkAgACwII+AAKD/oIAABN5EgAADr2CAACeyeIAAOFoAgAFNWDWAABBaMIAAKCs5gAABgNCAAP2eL4ACKuhQ In-Reply-To: Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|CY8PR10MB6851:EE_ x-ms-office365-filtering-correlation-id: 30aa9dcf-20ab-45c0-494f-08dbacc75ea2 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: wpYR3NBfixTrYcyf7K0EPB7aA81ac0Sp6Gtserf8pP/UN3gV1f5xVJSyXrMk2pZFs9vLD25rNU5LLcuCkoiBSMXIVlXCQuHyU+nrEKA81AA9heSrMm5V/1yvLHo5iFG8bO654ReDgtSfuXbwaCwdqDu/oyUr9xVlVTOfpd+8PZtWW8ZCQkASNZyTIr/c9X2ellkfGAxsmR8rKKT9XZpTFhThcC1bBToYkDM9BKT0p9cjCdcc//v1UficSLAutQATMU3cmUtexWvr1TfFY8UQoLqZCl3WuWQIQlhnRWeERA55Y9rLSwuWsITXPFa9yc42cdkGQmRwPTUKUDqEKiQ0r2uiS0uWNwIWO/hOhZXWMZlsT7M8os+I7Qh617cH+4mV/T15zzxLHNR+jfuSxp9jEm2Gc42muIVKrEl0nnLsLtKWMcwDMRwVLXaXOE7XzxgatfNVlRYEg8Ie+/RGox3Xch1habvBKOhaclhUZLCeP83mtydZ8xhY7AWmv/tl838D8u9/vLM9kP2db/t1X6DWKHpLfSVfZ5OMRvd7Tz1pQLasd106K2rBBlQkUoVSSss4vkfqlILzfJBFDb3Cg9BirASo2TKifoBhGIat1Q5X9DaHucQTqw+XkEVL0VSTKgIWotb7Pr67oN8jbRDRIjKMEw== 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)(346002)(396003)(376002)(39860400002)(366004)(136003)(451199024)(186009)(1800799009)(66899024)(33656002)(122000001)(38070700005)(38100700002)(52536014)(41300700001)(5660300002)(44832011)(86362001)(83380400001)(55016003)(66946007)(66556008)(64756008)(66476007)(66446008)(76116006)(26005)(478600001)(110136005)(71200400001)(8936002)(8676002)(4326008)(316002)(6506007)(9686003)(7696005)(2906002)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: w5OicwZaifA63SyHOSSoqR5VCW6lMJ4rGvD+nz2ZwYrWOV0MX9MbtIyAhST1SmaE5XzfejqMGpLmp1Eqt6qCryxnPktD9UaEefMX/ltz7Lwvs+DU5qPmeWucbOXiMWJjze6nVKtXugFCavzzBq+isIHxwQcyCnWfUCovP07v6Ln5jYtzazI1fdrB7em+GA4tSGC2k3EdHFRSnEf60hH8A6Pj9a3actYuwMWDAUDGgbzPb2cm7RmspTCLYiiQFrrRq89pTf9Syy6Ds/vh+YMqUssh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HX+HS4d+g/6icTEoRvLfrmEgQ6EAjDsMauqYqb2898vtN/D3hPTVgR4HY648RF1E20HV5G70HSe4oCfsxp3z3lTdAhZSB8r9tC5ZsLRh5L4PVOtqsCkTjNt8agHqzzh6giHoWjv4tIumYpMXWVqhsJPmbRzILYtxw0Ih5je45tk5C+e6Bf24NeEitx28McFhgue/Jnxr2Db4YoTxLTjWQH9arSCYTM9a9thWUq3vrWdYWAEtUgLhVJWuZON32OmwmQhXBYYVqNCJj+ulOeQwXSISealo6LH1xF4k1e5gHc0xbwQhkH/Fa0wSmja2x4Vkrv+h1YSuN1s85+BI tlmr6rJpyBBOYkxmQnjoIwfORgLw7ozegYMn0/rREhBw9J3JPZwMpo41cZEXmF+WOOtgingQQCISJHWf94 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: 30aa9dcf-20ab-45c0-494f-08dbacc75ea2 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Sep 2023 21:47:28.8908 (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: j0t/lr3dgSo2bW+YmhdBjXijh1v7e96kMRH1d+eamVOmeQcYvvhOrBZ3kENG5F3eH8RZdgzLCb0ok8Xt9ofsHg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR10MB6851 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-09-03_19,2023-08-31_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 phishscore=0 bulkscore=0 adultscore=0 suspectscore=0 malwarescore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309030205 X-Proofpoint-ORIG-GUID: AnHG8rJrL3OtjYL2KmOnc9CNtT5Mrtvb X-Proofpoint-GUID: AnHG8rJrL3OtjYL2KmOnc9CNtT5Mrtvb 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:269198 Archived-At: > > > Drew wants to skip the current directory > > > and the parent directory; > > > > No, he doesn't. Not at all. Definitely not. > > I think maybe you misread what I wrote. >=20 > You really confused me. If you don't want it, > why mentioned it twice? I mentioned it only because you were defining a Boolean option `dired-headerline-is-meaningful'. I wanted to let you know that `.' and `..' are also lines that you might want to let the option skip over, because vanilla Emacs doesn't allow actions on them sometimes. IOW, IF you're going to have an option for choosing which lines are "meaningful", THEN you might want to allow for header lines too, as another kind of line to skip. I clearly introduced that FYI with "FWIW", and added: Dunno whether you want to include optionally skipping over them with `n'|`p', i.e., via `dired-cursor-goto-meaningful-line. Clearly I wasn't _requesting_ being able to skip `.' and `..' lines, and a conclusion that Drew _asked_ for that was unwarranted. As was the further conclusion that his supposed ask for that conflicted with his (repeated) FYIs that this was _not_ something he requested. The contradiction and confusion were in your imagination, I'm afraid. I think I was clear from the outset. If it were I, I'd have done what I did in Dired+: no option to decide what lines are "meaningful". I do think it's fine to skip over blank lines (which Dired+ hasn't done). But I saw and I see no real need for an option such as `dired-headerline-is-meaningful'. (I think Stefan said that too, and I see you've now removed it.) What I argued for was having `n' and `p' go to header lines, as they always have. To accommodate _your_ wish to _not_ do that I suggested you make that optional (but have skipping such lines be opt-in). IOW, I suggested an option to accommodate your new behavior (skip header lines) as well as to respect Emacs's longstanding (and more useful) behavior of not skipping them. > You proposed this idea: >=20 > > What I said was that for _vanilla_ > > Emacs some actions aren't allowed > > on `.' and `..'. And so based on > > that, you or someone else (NOT I), > > might want those lines, in addition > > to blank lines, to be skipped over > > as "meaningless". >=20 > and then rejected it: >=20 > > I'd say that none of the complications > > you've offered with this latest > > suggestion are helpful. You elided the real point I made there: I'd suggest that skipping over blank lines, if you want to do that, is enough. And offering cycling is a nice-to-have, but is orthogonal to the bug report. And that matches what you ended up with. > Inconsistent. >=20 > If you don't want it and you don't want anyone else to use it, then > do not mention it in the first place. I mentioned it because you were looking to have users customize the kinds of lines they want to consider "meaningless" (and thus skip over). I was just trying to help you in your attempt to do that, by offering an FYI about another kind of line that vanilla Emacs sometimes allows no action on. HTH.