diff options
Diffstat (limited to 'src/dired.c')
-rw-r--r-- | src/dired.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/dired.c b/src/dired.c index f04ed25588..a3b02f089f 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 } |