projects
/
sxemacs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1197b37
)
Allow pathname_matches_p to be called if match is predicate
author
Nelson Ferreira
<nferreira9@bloomberg.net>
Thu, 2 Apr 2020 15:58:33 +0000
(11:58 -0400)
committer
Nelson Ferreira
<nelson.ferreira@ieee.org>
Fri, 3 Apr 2020 13:36:00 +0000
(09:36 -0400)
* src/dired.c(dfr_inner): Rely on caller of dfr_inner to
guarantee that match is a predicate if the bufp is NULL.
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/dired.c
patch
|
blob
|
history
diff --git
a/src/dired.c
b/src/dired.c
index
1ee2fca
..
ec6c116
100644
(file)
--- a/
src/dired.c
+++ b/
src/dired.c
@@
-361,7
+361,7
@@
dfr_inner(dirent_t *res,
}
#if USE_MATCH_ARG
- if (
!NILP(match) && bufp
&& !pathname_matches_p(name, match, bufp)) {
+ if (
result_p && !NILP(match)
&& !pathname_matches_p(name, match, bufp)) {
result_p = 0;
}
#endif