summaryrefslogtreecommitdiff
path: root/src/dired.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dired.c')
-rw-r--r--src/dired.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/dired.c b/src/dired.c
index f04ed255883..a3b02f089ff 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -82,12 +82,15 @@ If NOSORT is non-nil, the list is not sorted--its order is unpredictable.\n\
if (!NILP (match))
{
CHECK_STRING (match, 3);
- /* Compile it now so we don't get an error after opendir */
+
+ /* MATCH might be a flawed regular expression. Rather than
+ catching and signalling our own errors, we just call
+ compile_pattern to do the work for us. */
#ifdef VMS
- compile_pattern (match, &searchbuf,
+ compile_pattern (match, &searchbuf, 0
buffer_defaults.downcase_table->contents);
#else
- compile_pattern (match, &searchbuf, 0);
+ compile_pattern (match, &searchbuf, 0, 0);
#endif
}