unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <kevin.rodgers@ihs.com>
Subject: Re: toggle case sensitivity of dired-guess-shell-alist-*
Date: Wed, 05 Mar 2003 12:01:22 -0700	[thread overview]
Message-ID: <3E664982.1080701@ihs.com> (raw)
In-Reply-To: mailman.2717.1046752898.21513.bug-gnu-emacs@gnu.org

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:&lt;kevin.rodgers&#64;ihs.com&gt;">Kevin Rodgers</a>

       reply	other threads:[~2003-03-05 19:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2717.1046752898.21513.bug-gnu-emacs@gnu.org>
2003-03-05 19:01 ` Kevin Rodgers [this message]
     [not found]   ` <871y1le6nc.fsf@jidanni.org>
     [not found]     ` <15974.37334.164290.108827@ihs.com>
2003-03-06 21:08       ` toggle case sensitivity of dired-guess-shell-alist-* Dan Jacobson
2003-03-04  3:28 Dan Jacobson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E664982.1080701@ihs.com \
    --to=kevin.rodgers@ihs.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).