mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-06 07:31:13 -08:00
(dired-guess-shell-case-fold-search): New user option.
(dired-guess-default): Use it.
This commit is contained in:
parent
b6871cc7dd
commit
82f648d385
2 changed files with 10 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
|||
|
|
@ -998,11 +998,15 @@ You can set this variable in your ~/.emacs. For example, to add rules for
|
|||
: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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue