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#48883: dired marking bugs Date: Mon, 07 Jun 2021 20:53:02 +0200 Message-ID: References: <20210606203356.muhmgel5m2jwmzpj@E15-2016.optimum.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="33962"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 48883@debbugs.gnu.org To: Boruch Baum Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 07 20:54:12 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 1lqKO3-0008b5-OC for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Jun 2021 20:54:12 +0200 Original-Received: from localhost ([::1]:33656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqKO1-0001K4-PM for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Jun 2021 14:54:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqKNu-0001Jq-Kr for bug-gnu-emacs@gnu.org; Mon, 07 Jun 2021 14:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45132) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqKNu-0003DW-E9 for bug-gnu-emacs@gnu.org; Mon, 07 Jun 2021 14:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lqKNu-0003pY-Dw for bug-gnu-emacs@gnu.org; Mon, 07 Jun 2021 14:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arthur Miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Jun 2021 18:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48883 X-GNU-PR-Package: emacs Original-Received: via spool by 48883-submit@debbugs.gnu.org id=B48883.162309199314663 (code B ref 48883); Mon, 07 Jun 2021 18:54:02 +0000 Original-Received: (at 48883) by debbugs.gnu.org; 7 Jun 2021 18:53:13 +0000 Original-Received: from localhost ([127.0.0.1]:56678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqKN6-0003oQ-OM for submit@debbugs.gnu.org; Mon, 07 Jun 2021 14:53:13 -0400 Original-Received: from mail-oln040092074043.outbound.protection.outlook.com ([40.92.74.43]:5858 helo=EUR04-DB3-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqKN4-0003oC-2r for 48883@debbugs.gnu.org; Mon, 07 Jun 2021 14:53:11 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C/M4c2gErKsMgylIsa/FGebZfvmZ/Jp9HqzBOGuOTzlP1b8vytzVJVb1QGG9qMrum6UpHmLnXHaH62nEn5vy2uhPUKjsglj1BqQ6QykdxBVPDwcBGpJVBHukGvwkqZEHSKOghPt+K35ArN8q41eW0HCl50tSamKw3iQcdh+OHjOsLHDezRnASfUzeriwUTrqnMIaB+m03/D8PI+bs5w5xtFk95Jo3lPHSAjjV0rz6ASkB7F7zYNkDGMSow66W6mCEBJC+MJ0eztY2kn6vf+y4PvKly+s2bl4tX9Cvns1EOZ4+2Pti+4AOw6dallnfuCUWFMYFfvrE/5w9yHPKAaYIQ== 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-SenderADCheck; bh=aPhchaBsFsYfwXpC7mFc072Ex2o2HJZfpEI1fEK1TN4=; b=LWDeX0P/HZ7YblFvdtWMZm1y4UagCuYuNou6iorH2TbSOxwKlox98YSnwi4O2rQJLHp/pEiXeUga4x2Cu9szKx79dRFI/08mMM3Up8xz6sIM7959wro1814Z4F2NbY0XTjblDFePbG0sGlwDxtwt6Wnazh5r7TNbqmAHFv02IxHXH/mW16Ic08SS2bfqR6zlTelc+bJeeC9XG+kPX0zINeT3Rm4T1UJ/6Mtd+ARtxqGIq6FjQu4wsW8B50akd/QXcY0Xx/Z1ne2eU/+FdzEEyFWr5/83xDnCYHd1oWiMK6PvLLPL2JzzJlF8k5rGnvYfRd65pVGtwp1M4VmlIVVGkQ== 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=aPhchaBsFsYfwXpC7mFc072Ex2o2HJZfpEI1fEK1TN4=; b=EqUA4XOdV19odSyYjfnp/ZhM+3E9m/npHn6VatyjBCvU9xiSvY3qOGUhcLgUsJeFQg/IXrgv6TGW8rlSXSdJ7J9pyuu3lvhs6PAUvJCnHggdZrLzUEXLziboUzgNOFEpCElwEACkdqSy5Wre0Oesmj+ke4W3SCUK3n5PxXC1RjRUXOtC8NcI7kd7+jzrl0cyAq+aEIciEUPM9C88rhRZSgOch5uiaGWjECM9BcsSLgYkSBs4H9fX8bJk9AaFZVaBcb4YsgYSDFSvqu/GtKKZREmrugfSlT76LLDkVcg7oLJid/PBv52zPTwKGdv5eSS3/ME/6I6XVup6m6vby/HQmQ== Original-Received: from DB3EUR04FT033.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0c::43) by DB3EUR04HT172.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0c::66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.18; Mon, 7 Jun 2021 18:53:03 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:7e0c::4c) by DB3EUR04FT033.mail.protection.outlook.com (2a01:111:e400:7e0c::78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.18 via Frontend Transport; Mon, 7 Jun 2021 18:53:03 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:540F15184962062DDD7BB9D94FB5646B03EEBDD5D57F761D15AD341B019507C6; UpperCasedChecksum:897B67B6BBCF709C5D2C069268DA65E0677A0050ABA2603D2822672350FC932C; SizeAsReceived:7422; Count:46 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::d1c1:2a0d:3b2b:4591]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::d1c1:2a0d:3b2b:4591%7]) with mapi id 15.20.4195.030; Mon, 7 Jun 2021 18:53:03 +0000 In-Reply-To: <20210606203356.muhmgel5m2jwmzpj@E15-2016.optimum.net> (Boruch Baum's message of "Sun, 6 Jun 2021 16:33:56 -0400") X-TMN: [IyCYZN5JBe6vd6nwFDX9JLbeKJ1hYnPz] X-ClientProxiedBy: AM6PR10CA0099.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:8c::40) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87o8chjylt.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by AM6PR10CA0099.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:8c::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.22 via Frontend Transport; Mon, 7 Jun 2021 18:53:02 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 2e068e6b-5d30-4dac-350e-08d929e57a5d X-MS-TrafficTypeDiagnostic: DB3EUR04HT172: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jQdumnjEe5ywiXI5TSwsI0KFRTU+tGDKpn8qb4xK5vlzl6aFBZw2S+9bmahTRS63WyeILOpM1zjDAbuWb2RfEXdMsefhFVQW8UJICNrkDesnEQh795M9E8IpoJc9I3qzHOrobS+UzRIbrckyDNsopd0m/sGg4jCh8N2Y8L76Jz94fqRB/6P68V3FsdshnTCYRYeEHsvCygBzbrL0sNWPFkEVXavyvPQEAfkNpNbRr+Gkkbhk5+XgH0OH1n7Yh7Uk/u5AF/GhO4oPdQbOlyrT8JBIlypmEpRRpKoOQjilidYnahVtRyOujLvSHUUsncjfmYw5RyFvgk7Hyv/VL4Hz9LvKQ4jj+SfASQieSURIylRTsMxlenmVro+olOfbpzZQV3Kq9z7eFiadBnITdvyyyA== X-MS-Exchange-AntiSpam-MessageData: 8H0ezPEBEXRlFmik6ZNcJN5clFsMGmWhHjSafY87EpcnirjzQdetVwuxLGbcOoMrK3hP7diiEmnQUo/WQEtLqxgWajSOd65Bf55hw7wd0efHn1vIc0xJbwZ3Mn/Xi+rpI5NNj8hNAg1Nw2QR3eJEYg== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2e068e6b-5d30-4dac-350e-08d929e57a5d X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2021 18:53:03.0846 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DB3EUR04FT033.eop-eur04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3EUR04HT172 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:208193 Archived-At: Boruch Baum writes: > In testing my diredc package, I'm coming across the following bugs > reproducable in \emacs -Q -nw: > > 1) Improper marking of directory heading line > > 1.1) The correct and expected behavior of dired is that when one > navigates to a directory heading line (eg. the first line of a > simple dired buffer) and presses 'm', all "real" files of that > directory are marked, [IMPORTANT] the lines for the "not-real" > files '.' and '..' are not marked, and [IMPORTANT] the directory > line itself is not marked. I have no idea if that is "correct and expected behaviour", I don't see it said in manual, or I missed it, but anyway, the headline in Dired is a waste of space since you can see dir name in modeline or frame title, and '.' and '..' are just a design misstake in Unix OS; should have never been exposed to users as files. Just turn off those things (dired-omit-mode), you will probably be better without them. :-). Sorry if I sound negative. > 1.2) Likewise, typing 'u' on that line unmarks all said lines. 'U' unmarks everything, no need to put cursor to headline ever. > 1.3) Now, advance one line, to the line typically presenting a > summary, beginning with the word 'total', and press the sequence > 'C-u -1 m'. > > 1.4) Why is there now a mark on the prior line, the directory line? > Note that the result differs from actually performing 'm' on > that line also in that none of the "real" files in the directory > are marked. Note also that performing 'u' on the line does not > remove the mark, but performing 'U' on the buffer does. > > 1.5) Attempting to perform an operation on the marked directory line > (eg. 'C' to copy it) returns the message "No files specified" > > 2) Improper marking of "not-real" files '.' and '..' > > 2.1) See paragraph 1.1. > > 2.2) However, those lines can be manually marked using the 'm' > command, and attempting to perform an operation on them (eg. 'C' > to copy them) returns messaging indicating a willingness to > overwrite whatever target directory is chosen. I haven't risked > let it operate. > > 2.3) As in paragraph 1.3, it is possible to mark the two lines using > a negative prefix argument. Have you checked the code. Not a bug, feature :). > 3) Improper advancing to (point-max) > > 3.1) Marking the final entry in a dired buffer advances POINT to a > blank line, which is pretty much never desirable to a user. Yeah, that is annoying, I agree with you. For my own use, I have thse two functions, so I never place cursor on either headline or one past last filename: #+begin_src emacs-lisp (defun dired-go-to-first () (interactive) (goto-char (point-min)) (dired-next-line 1) (skip-chars-forward " \n\t")) (defun dired-go-to-last () (interactive) (goto-char (point-max)) (dired-next-line -1) (skip-chars-forward " \n\t")) #+end_src