+2003-03-07 Kevin Rodgers <kevin.rodgers@ihs.com>
+
+ * dired-x.el (dired-guess-shell-case-fold-search): New user option.
+ (dired-guess-default): Use it.
+
2003-03-07 Thien-Thi Nguyen <ttn@gnu.org>
* progmodes/dcl-mode.el (dcl-font-lock-keywords): New var.
:group 'dired-x
:type '(alist :key-type regexp :value-type (repeat sexp)))
+(defvar dired-guess-shell-case-fold-search nil
+ "*If non-nil, `dired-guess-shell-alist-default' and
+`dired-guess-shell-alist-user' are matched case-insensitively.")
+
(defun dired-guess-default (files)
"Guess a shell commands for FILES. Return command or list of commands.
See `dired-guess-shell-alist-user'."
- (let* ((case-fold-search nil) ; case-sensitive matching
+ (let* ((case-fold-search dired-guess-shell-case-fold-search)
;; Prepend the user's alist to the default alist.
(alist (append dired-guess-shell-alist-user
dired-guess-shell-alist-default))