unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* 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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: toggle case sensitivity of dired-guess-shell-alist-*
       [not found]     ` <15974.37334.164290.108827@ihs.com>
@ 2003-03-06 21:08       ` Dan Jacobson
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Jacobson @ 2003-03-06 21:08 UTC (permalink / raw)


Kevin Rodgers posted an authoritative fix for the problem.  However
something spotted my eye, so I sent him some e-mail,

K> Dan Jacobson writes:
>> emacs-20?

K> Hell, I still use 19.34.

>> You mean your changes don't get into the official emacs?

K> That's up to the maintainers (RMS et al.)  I just read and post to
K> gnu.emacs.* for fun -- and to show you how easy it is to get the
K> behavior you claim you want if you just take a look at the source.

Source? Me? I'm too busy studying the Navaids
http://www2m.biglobe.ne.jp/~nagase/navaids/indexe.html 
however I hope RMS et al. saw your fix and incorporated it into
official emacs.  I almost thought you had fixed it for all time until
out of the corner of my eye I spotted the stale version numbers and
red flags went up in my mind that you were not changing the official
sources for all time but in fact were some kind of um, fringe benefit case. 
-- 
http://jidanni.org/ Taiwan(04)25854780

^ 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 --
     [not found] <mailman.2717.1046752898.21513.bug-gnu-emacs@gnu.org>
2003-03-05 19:01 ` toggle case sensitivity of dired-guess-shell-alist-* Kevin Rodgers
     [not found]   ` <871y1le6nc.fsf@jidanni.org>
     [not found]     ` <15974.37334.164290.108827@ihs.com>
2003-03-06 21:08       ` Dan Jacobson
2003-03-04  3:28 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).