Show
Ignore:
Timestamp:
09/09/06 16:30:10 (2 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lisp/dired-x.el

    r4091 r4161  
    959959  (list 
    960960   (list "\\.tar$" 
    961          '(if dired-guess-shell-gnutar 
    962               (concat dired-guess-shell-gnutar " xvf") 
    963             "tar xvf") 
    964          ;; Extract files into a separate subdirectory 
    965          '(if dired-guess-shell-gnutar 
    966               (concat "mkdir " (file-name-sans-extension file) 
    967                       "; " dired-guess-shell-gnutar " -C " 
    968                       (file-name-sans-extension file) " -xvf") 
    969             (concat "mkdir " (file-name-sans-extension file) 
    970                     "; tar -C " (file-name-sans-extension file) " -xvf"))) 
     961         '(if dired-guess-shell-gnutar 
     962              (concat dired-guess-shell-gnutar " xvf") 
     963            "tar xvf") 
     964         ;; Extract files into a separate subdirectory 
     965         '(if dired-guess-shell-gnutar 
     966              (concat "mkdir " (file-name-sans-extension file) 
     967                      "; " dired-guess-shell-gnutar " -C " 
     968                      (file-name-sans-extension file) " -xvf") 
     969            (concat "mkdir " (file-name-sans-extension file) 
     970                    "; tar -C " (file-name-sans-extension file) " -xvf")) 
     971         ;; List archive contents. 
     972         '(if dired-guess-shell-gnutar 
     973              (concat dired-guess-shell-gnutar " tvf") 
     974            "tar tvf")) 
    971975 
    972976   ;; REGEXPS for compressed archives must come before the .Z rule to 
    973977   ;; be recognized: 
    974978   (list "\\.tar\\.Z$" 
    975         ;; Untar it. 
    976         '(if dired-guess-shell-gnutar 
    977               (concat dired-guess-shell-gnutar " zxvf") 
    978             (concat "zcat * | tar xvf -")) 
    979         ;; Optional conversion to gzip format. 
    980         '(concat "znew" (if dired-guess-shell-gzip-quiet " -q") 
    981                   " " dired-guess-shell-znew-switches)) 
     979        ;; Untar it. 
     980        '(if dired-guess-shell-gnutar 
     981             (concat dired-guess-shell-gnutar " zxvf") 
     982           (concat "zcat * | tar xvf -")) 
     983        ;; Optional conversion to gzip format. 
     984        '(concat "znew" (if dired-guess-shell-gzip-quiet " -q") 
     985                 " " dired-guess-shell-znew-switches)) 
    982986 
    983987   ;; gzip'ed archives 
    984988   (list "\\.t\\(ar\\.\\)?gz$" 
    985          '(if dired-guess-shell-gnutar 
    986               (concat dired-guess-shell-gnutar " zxvf") 
    987             (concat "gunzip -qc * | tar xvf -")) 
    988          ;; Extract files into a separate subdirectory 
    989          '(if dired-guess-shell-gnutar 
    990               (concat "mkdir " (file-name-sans-extension file) 
    991                       "; " dired-guess-shell-gnutar " -C " 
    992                       (file-name-sans-extension file) " -zxvf") 
    993             (concat "mkdir " (file-name-sans-extension file) 
    994                     "; gunzip -qc * | tar -C " 
    995                     (file-name-sans-extension file) " -xvf -")) 
    996          ;; Optional decompression. 
    997          '(concat "gunzip" (if dired-guess-shell-gzip-quiet " -q" ""))) 
     989         '(if dired-guess-shell-gnutar 
     990              (concat dired-guess-shell-gnutar " zxvf") 
     991            (concat "gunzip -qc * | tar xvf -")) 
     992         ;; Extract files into a separate subdirectory 
     993         '(if dired-guess-shell-gnutar 
     994              (concat "mkdir " (file-name-sans-extension file) 
     995                      "; " dired-guess-shell-gnutar " -C " 
     996                      (file-name-sans-extension file) " -zxvf") 
     997            (concat "mkdir " (file-name-sans-extension file) 
     998                    "; gunzip -qc * | tar -C " 
     999                    (file-name-sans-extension file) " -xvf -")) 
     1000         ;; Optional decompression. 
     1001         '(concat "gunzip" (if dired-guess-shell-gzip-quiet " -q" "")) 
     1002         ;; List archive contents. 
     1003         '(if dired-guess-shell-gnutar 
     1004              (concat dired-guess-shell-gnutar " ztvf") 
     1005            (concat "gunzip -qc * | tar tvf -"))) 
    9981006 
    9991007   ;; bzip2'ed archives 
    10001008   (list "\\.t\\(ar\\.bz2\\|bz\\)$" 
    10011009         "bunzip2 -c * | tar xvf -" 
    1002         ;; Extract files into a separate subdirectory 
    1003         '(concat "mkdir " (file-name-sans-extension file) 
    1004                   "; bunzip2 -c * | tar -C " 
    1005                   (file-name-sans-extension file) " -xvf -") 
     1010        ;; Extract files into a separate subdirectory 
     1011        '(concat "mkdir " (file-name-sans-extension file) 
     1012                 "; bunzip2 -c * | tar -C " 
     1013                 (file-name-sans-extension file) " -xvf -") 
    10061014         ;; Optional decompression. 
    1007         "bunzip2") 
     1015        "bunzip2") 
    10081016 
    10091017   '("\\.shar\\.Z$" "zcat * | unshar") 
     
    10121020   '("\\.e?ps$" "ghostview" "xloadimage" "lpr") 
    10131021   (list "\\.e?ps\\.g?z$" "gunzip -qc * | ghostview -" 
    1014         ;; Optional decompression. 
    1015         '(concat "gunzip" (if dired-guess-shell-gzip-quiet " -q"))) 
     1022        ;; Optional decompression. 
     1023        '(concat "gunzip" (if dired-guess-shell-gzip-quiet " -q"))) 
    10161024   (list "\\.e?ps\\.Z$" "zcat * | ghostview -" 
    1017         ;; Optional conversion to gzip format. 
    1018         '(concat "znew" (if dired-guess-shell-gzip-quiet " -q") 
    1019                   " " dired-guess-shell-znew-switches)) 
     1025        ;; Optional conversion to gzip format. 
     1026        '(concat "znew" (if dired-guess-shell-gzip-quiet " -q") 
     1027                 " " dired-guess-shell-znew-switches)) 
    10201028 
    10211029   '("\\.patch$" "cat * | patch") 
    10221030   (list "\\.patch\\.g?z$" "gunzip -qc * | patch" 
    1023         ;; Optional decompression. 
    1024         '(concat "gunzip" (if dired-guess-shell-gzip-quiet " -q"))) 
     1031        ;; Optional decompression. 
     1032        '(concat "gunzip" (if dired-guess-shell-gzip-quiet " -q"))) 
    10251033   (list "\\.patch\\.Z$" "zcat * | patch" 
    1026         ;; Optional conversion to gzip format. 
    1027         '(concat "znew" (if dired-guess-shell-gzip-quiet " -q") 
    1028                   " " dired-guess-shell-znew-switches)) 
     1034        ;; Optional conversion to gzip format. 
     1035        '(concat "znew" (if dired-guess-shell-gzip-quiet " -q") 
     1036                 " " dired-guess-shell-znew-switches)) 
    10291037 
    10301038   ;; The following four extensions are useful with dired-man ("N" key) 
    10311039   (list "\\.\\(?:[0-9]\\|man\\)$" '(progn (require 'man) 
    1032                              (if (Man-support-local-filenames) 
    1033                                  "man -l" 
    1034                                "cat * | tbl | nroff -man -h"))) 
     1040                                          (if (Man-support-local-filenames) 
     1041                                              "man -l" 
     1042                                            "cat * | tbl | nroff -man -h"))) 
    10351043   (list "\\.\\(?:[0-9]\\|man\\)\\.g?z$" '(progn (require 'man) 
    1036                                   (if (Man-support-local-filenames) 
    1037                                        "man -l" 
    1038                                      "gunzip -qc * | tbl | nroff -man -h")) 
    1039         ;; Optional decompression. 
    1040         '(concat "gunzip" (if dired-guess-shell-gzip-quiet " -q"))) 
     1044                                                (if (Man-support-local-filenames) 
     1045                                                    "man -l" 
     1046                                                  "gunzip -qc * | tbl | nroff -man -h")) 
     1047        ;; Optional decompression. 
     1048        '(concat "gunzip" (if dired-guess-shell-gzip-quiet " -q"))) 
    10411049   (list "\\.[0-9]\\.Z$" '(progn (require 'man) 
    1042                                 (if (Man-support-local-filenames) 
    1043                                      "man -l" 
    1044                                    "zcat * | tbl | nroff -man -h")) 
    1045         ;; Optional conversion to gzip format. 
    1046         '(concat "znew" (if dired-guess-shell-gzip-quiet " -q") 
    1047                   " " dired-guess-shell-znew-switches)) 
     1050                                (if (Man-support-local-filenames) 
     1051                                    "man -l" 
     1052                                  "zcat * | tbl | nroff -man -h")) 
     1053        ;; Optional conversion to gzip format. 
     1054        '(concat "znew" (if dired-guess-shell-gzip-quiet " -q") 
     1055                 " " dired-guess-shell-znew-switches)) 
    10481056   '("\\.pod$" "perldoc" "pod2man * | nroff -man") 
    10491057 
    1050    '("\\.dvi$" "xdvi" "dvips")          ; preview and printing 
    1051    '("\\.au$" "play")                   ; play Sun audiofiles 
    1052    '("\\.mpg$" "mpeg_play") 
    1053    '("\\.uu$" "uudecode")               ; for uudecoded files 
     1058   '("\\.dvi$" "xdvi" "dvips")          ; preview and printing 
     1059   '("\\.au$" "play")                   ; play Sun audiofiles 
     1060   '("\\.mpe?g$\\|\\.avi$" "xine -p") 
     1061   '("\\.wav$" "play") 
     1062   '("\\.uu$" "uudecode")               ; for uudecoded files 
    10541063   '("\\.hqx$" "mcvert") 
    1055    '("\\.sh$" "sh")                     ; execute shell scripts 
    1056    '("\\.xbm$" "bitmap")                ; view X11 bitmaps 
     1064   '("\\.sh$" "sh")                    ; execute shell scripts 
     1065   '("\\.xbm$" "bitmap")               ; view X11 bitmaps 
    10571066   '("\\.gp$" "gnuplot") 
    10581067   '("\\.p[bgpn]m$" "xloadimage") 
    1059    '("\\.gif$" "xloadimage")                    ; view gif pictures 
     1068   '("\\.gif$" "xloadimage")           ; view gif pictures 
    10601069   '("\\.tif$" "xloadimage") 
    10611070   '("\\.png$" "display")               ; xloadimage 4.1 doesn't grok PNG 
    10621071   '("\\.jpe?g$" "xloadimage") 
    1063    '("\\.fig$" "xfig")                  ; edit fig pictures 
    1064    '("\\.out$" "xgraph")                ; for plotting purposes. 
     1072   '("\\.fig$" "xfig")                 ; edit fig pictures 
     1073   '("\\.out$" "xgraph")               ; for plotting purposes. 
    10651074   '("\\.tex$" "latex" "tex") 
    10661075   '("\\.texi\\(nfo\\)?$" "makeinfo" "texi2dvi") 
    1067    '("\\.pdf$" "xpdf")              ; edit PDF files 
     1076   '("\\.pdf$" "xpdf") 
     1077   '("\\.doc$" "antiword" "strings") 
     1078   '("\\.rpm$" "rpm -qilp" "rpm -ivh") 
     1079   '("\\.dia$" "dia") 
     1080   '("\\.mgp$" "mgp") 
    10681081 
    10691082   ;; Some other popular archivers. 
    1070    (list "\\.zip$" "unzip" 
    1071         ;; Extract files into a separate subdirectory 
    1072         '(concat "unzip" (if dired-guess-shell-gzip-quiet " -q") 
    1073                   " -d " (file-name-sans-extension file))) 
     1083   (list "\\.zip$" "unzip" "unzip -l" 
     1084        ;; Extract files into a separate subdirectory 
     1085        '(concat "unzip" (if dired-guess-shell-gzip-quiet " -q") 
     1086                 " -d " (file-name-sans-extension file))) 
    10741087   '("\\.zoo$" "zoo x//") 
    10751088   '("\\.lzh$" "lharc x") 
     
    10821095   (list "\\.bz2$" "bunzip2") 
    10831096   (list "\\.Z$" "uncompress" 
    1084          ;; Optional conversion to gzip format. 
    1085          '(concat "znew" (if dired-guess-shell-gzip-quiet " -q") 
    1086                   " " dired-guess-shell-znew-switches)) 
    1087    ) 
     1097         ;; Optional conversion to gzip format. 
     1098         '(concat "znew" (if dired-guess-shell-gzip-quiet " -q") 
     1099                  " " dired-guess-shell-znew-switches)) 
     1100 
     1101   '("\\.sign?$" "gpg --verify")) 
    10881102 
    10891103  "Default alist used for shell command guessing.