* toggle case sensitivity of dired-guess-shell-alist-*
@ 2003-03-04 3:28 Dan Jacobson
0 siblings, 0 replies; 3+ messages in thread
From: Dan Jacobson @ 2003-03-04 3:28 UTC (permalink / raw)
Dired-x knows to use unzip on .zip files, but not .ZIP files. Why
isn't there a switch to turn off case sensitivity for
dired-guess-shell-alist-default etc., with default being 'insensitive.
--
http://jidanni.org/ Taiwan(04)25854780
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <mailman.2717.1046752898.21513.bug-gnu-emacs@gnu.org>]
* Re: toggle case sensitivity of dired-guess-shell-alist-*
[not found] <mailman.2717.1046752898.21513.bug-gnu-emacs@gnu.org>
@ 2003-03-05 19:01 ` Kevin Rodgers
[not found] ` <871y1le6nc.fsf@jidanni.org>
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Rodgers @ 2003-03-05 19:01 UTC (permalink / raw)
Dan Jacobson wrote:
> Dired-x knows to use unzip on .zip files, but not .ZIP files. Why
> isn't there a switch to turn off case sensitivity for
> dired-guess-shell-alist-default etc., with default being 'insensitive.
Now there is:
*** emacs-20.7/lisp/dired-x.el.orig Wed Aug 26 14:35:26 1998
--- emacs-20.7/lisp/dired-x.el Wed Mar 5 11:58:40 2003
***************
*** 1038,1049 ****
\"BAR-COMMAND-2\")))\)
")
(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
;; Prepend the user's alist to the default alist.
(alist (append dired-guess-shell-alist-user
dired-guess-shell-alist-default))
--- 1038,1052 ----
\"BAR-COMMAND-2\")))\)
")
+ (defvar dired-guess-shell-case-fold-search nil
+ "*If non-nil, `dired-guess-shell-alist-default' and
`dired-guess-shell-alist-default' 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 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))
--
<a href="mailto:<kevin.rodgers@ihs.com>">Kevin Rodgers</a>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-03-06 21:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-04 3:28 toggle case sensitivity of dired-guess-shell-alist-* Dan Jacobson
[not found] <mailman.2717.1046752898.21513.bug-gnu-emacs@gnu.org>
2003-03-05 19:01 ` Kevin Rodgers
[not found] ` <871y1le6nc.fsf@jidanni.org>
[not found] ` <15974.37334.164290.108827@ihs.com>
2003-03-06 21:08 ` Dan Jacobson
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).