GNU bug report logs - #27465
24.5; `dired-mark-unmarked-files' with non-nil UNFLAG-P

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Fri, 23 Jun 2017 22:45:02 UTC

Severity: minor

Tags: fixed

Found in version 24.5

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 27465 <at> debbugs.gnu.org
Subject: bug#27465: 24.5; `dired-mark-unmarked-files' with non-nil UNFLAG-P
Date: Sun, 21 Jul 2019 17:41:31 +0200
Drew Adams <drew.adams <at> oracle.com> writes:

> 3. Non-nil UNFLAG-P does nothing, AFAICT.  It _cannot_ do anything.
>    Certainly it cannot unflag, which means change a deletion flag (`D')
>    to a space char.  Why?  Because the replacement is applied only to
>    lines that already have a space char (not a `D').
>
>    Its effect in that case is indeed to post a space char.  But it does
>    so only for lines that already have a space char!
>
>    This is the call:
>
>    (dired-mark-if
>      (and
>       (looking-at-p " ") ; <=== Mark (with a SPC) only if already there!
>       (let ((fn (dired-get-filename localp t)))
>         (and fn (string-match-p regexp fn))))
>      msg)

I've now made unflag-p work on the Emacs trunk.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 6 years ago.

Previous Next


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