GNU bug report logs - #48883
dired marking bugs

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Boruch Baum <boruch_baum@HIDDEN>; dated Sun, 6 Jun 2021 20:35:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at>

Received: (at submit) by; 6 Jun 2021 20:34:37 +0000
From debbugs-submit-bounces <at> Sun Jun 06 16:34:37 2021
Received: from localhost ([]:53990
	by with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at>>)
	id 1lpzTh-0005Jc-ER
	for submit <at>; Sun, 06 Jun 2021 16:34:37 -0400
Received: from ([]:55208)
 by with esmtp (Exim 4.84_2)
 (envelope-from <boruch_baum@HIDDEN>) id 1lpzTc-0005JR-Ov
 for submit <at>; Sun, 06 Jun 2021 16:34:35 -0400
Received: from ([2001:470:142:3::10]:45482)
 by with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <boruch_baum@HIDDEN>)
 id 1lpzTc-0003gj-IS
 for bug-gnu-emacs@HIDDEN; Sun, 06 Jun 2021 16:34:32 -0400
Received: from ([]:57137)
 by with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <boruch_baum@HIDDEN>)
 id 1lpzTa-0006XT-Iv
 for bug-gnu-emacs@HIDDEN; Sun, 06 Jun 2021 16:34:32 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;;
 s=badeba3b8450; t=1623011667;
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from ([]) by
 (mrgmx004 []) with ESMTPSA (Nemesis) id
 1MmDEg-1l865K4AN6-00iG9c for <bug-gnu-emacs@HIDDEN>; Sun, 06 Jun 2021
 22:34:27 +0200
Date: Sun, 6 Jun 2021 16:33:56 -0400
From: Boruch Baum <boruch_baum@HIDDEN>
To: Emacs Bug Reporting <bug-gnu-emacs@HIDDEN>
Subject: dired marking bugs
Message-ID: <20210606203356.muhmgel5m2jwmzpj@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: NeoMutt/20180716
X-Provags-ID: V03:K1:Mb4X1Jz3zqSaHgLJj7haXZaiXFpSLSdGBebvza5c6dfBedyksRE
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:AI4CUgDXYFw=:8ThC1CS9LM+xdpozvRhiTU
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=; envelope-from=boruch_baum@HIDDEN;
X-Spam_score_int: -25
X-Spam_score: -2.6
X-Spam_bar: --
X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.6 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at>
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <>
List-Unsubscribe: <>, 
 <mailto:debbugs-submit-request <at>>
List-Archive: <>
List-Post: <mailto:debbugs-submit <at>>
List-Help: <mailto:debbugs-submit-request <at>>
List-Subscribe: <>, 
 <mailto:debbugs-submit-request <at>>
Errors-To: debbugs-submit-bounces <at>
Sender: "Debbugs-submit" <debbugs-submit-bounces <at>>
X-Spam-Score: -2.4 (--)

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.

   1.2) Likewise, typing 'u' on that line unmarks all said lines.

   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.

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.

CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0

Acknowledgement sent to Boruch Baum <boruch_baum@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#48883; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 6 Jun 2021 20:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.