GNU bug report logs -
#22457
24.5; [PATCH] `dired-mark-if' should not count non-changes
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Sun, 24 Jan 2016 18:06: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
> And why is dired-mark-if a macro in the first place? It's pretty long
> to be a macro; it could be rewritten as a function that take a
> predicate...
(Length of a macro's code makes no difference, if
the code using it is compiled.)
I would say leave this sleeping dog lie...
---
The PREDICATE arg is really code (a sexp), not
a predicate (function).
See also the use of `dired-mark-if' in command
`dired-mark-sexp' (in `dired-x.el'). See the
doc string of that command.
There too the PREDICATE arg is code (a sexp),
not a predicate. And there you can use a set
of predefined variables in the "PREDICATE"
sexp that gets evaluated and then passed to
`dired-mark-if'.
See also the uses of `dired-mark-if' in
`dired-aux.el', where an anonymous function
is constructed using the macro.
This is the way things have been since about
Day One of Emacs.
Could things have been coded differently for
this? Likely. Should they be? Doubtful.
This bug report was last modified 6 years and 3 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.