diff options
| author | Glenn Morris | 2011-02-28 09:42:03 -0800 |
|---|---|---|
| committer | Glenn Morris | 2011-02-28 09:42:03 -0800 |
| commit | 0a906ec3442e226aab69ca52edd44b4cdb1386e4 (patch) | |
| tree | 4f9947e3807efbfb08426056de04c4482714e0df | |
| parent | 5d41af19345452c7fd6c365639db68e642807112 (diff) | |
| download | emacs-0a906ec3442e226aab69ca52edd44b4cdb1386e4.tar.gz emacs-0a906ec3442e226aab69ca52edd44b4cdb1386e4.zip | |
* lisp/dired-x.el (dired-guess-shell-alist-default): Use \\', not $.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/dired-x.el | 112 |
2 files changed, 60 insertions, 56 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 83b29a7e55c..d38672c0d6b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-02-28 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * dired-x.el (dired-guess-shell-alist-default): Use \\', not $. | ||
| 4 | |||
| 1 | 2011-02-28 Michael Albinus <michael.albinus@gmx.de> | 5 | 2011-02-28 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 6 | ||
| 3 | * net/tramp-cmds.el (tramp-append-tramp-buffers): Dump load-path | 7 | * net/tramp-cmds.el (tramp-append-tramp-buffers): Dump load-path |
diff --git a/lisp/dired-x.el b/lisp/dired-x.el index 6ed3cd11312..816beb0034c 100644 --- a/lisp/dired-x.el +++ b/lisp/dired-x.el | |||
| @@ -845,7 +845,7 @@ replace it with a dir-locals-file `./%s'" | |||
| 845 | 845 | ||
| 846 | (defvar dired-guess-shell-alist-default | 846 | (defvar dired-guess-shell-alist-default |
| 847 | (list | 847 | (list |
| 848 | (list "\\.tar$" | 848 | (list "\\.tar\\'" |
| 849 | '(if dired-guess-shell-gnutar | 849 | '(if dired-guess-shell-gnutar |
| 850 | (concat dired-guess-shell-gnutar " xvf") | 850 | (concat dired-guess-shell-gnutar " xvf") |
| 851 | "tar xvf") | 851 | "tar xvf") |
| @@ -863,7 +863,7 @@ replace it with a dir-locals-file `./%s'" | |||
| 863 | 863 | ||
| 864 | ;; REGEXPS for compressed archives must come before the .Z rule to | 864 | ;; REGEXPS for compressed archives must come before the .Z rule to |
| 865 | ;; be recognized: | 865 | ;; be recognized: |
| 866 | (list "\\.tar\\.Z$" | 866 | (list "\\.tar\\.Z\\'" |
| 867 | ;; Untar it. | 867 | ;; Untar it. |
| 868 | '(if dired-guess-shell-gnutar | 868 | '(if dired-guess-shell-gnutar |
| 869 | (concat dired-guess-shell-gnutar " zxvf") | 869 | (concat dired-guess-shell-gnutar " zxvf") |
| @@ -873,7 +873,7 @@ replace it with a dir-locals-file `./%s'" | |||
| 873 | " " dired-guess-shell-znew-switches)) | 873 | " " dired-guess-shell-znew-switches)) |
| 874 | 874 | ||
| 875 | ;; gzip'ed archives | 875 | ;; gzip'ed archives |
| 876 | (list "\\.t\\(ar\\.\\)?gz$" | 876 | (list "\\.t\\(ar\\.\\)?gz\\'" |
| 877 | '(if dired-guess-shell-gnutar | 877 | '(if dired-guess-shell-gnutar |
| 878 | (concat dired-guess-shell-gnutar " zxvf") | 878 | (concat dired-guess-shell-gnutar " zxvf") |
| 879 | (concat "gunzip -qc * | tar xvf -")) | 879 | (concat "gunzip -qc * | tar xvf -")) |
| @@ -893,7 +893,7 @@ replace it with a dir-locals-file `./%s'" | |||
| 893 | (concat "gunzip -qc * | tar tvf -"))) | 893 | (concat "gunzip -qc * | tar tvf -"))) |
| 894 | 894 | ||
| 895 | ;; bzip2'ed archives | 895 | ;; bzip2'ed archives |
| 896 | (list "\\.t\\(ar\\.bz2\\|bz\\)$" | 896 | (list "\\.t\\(ar\\.bz2\\|bz\\)\\'" |
| 897 | "bunzip2 -c * | tar xvf -" | 897 | "bunzip2 -c * | tar xvf -" |
| 898 | ;; Extract files into a separate subdirectory | 898 | ;; Extract files into a separate subdirectory |
| 899 | '(concat "mkdir " (file-name-sans-extension file) | 899 | '(concat "mkdir " (file-name-sans-extension file) |
| @@ -903,7 +903,7 @@ replace it with a dir-locals-file `./%s'" | |||
| 903 | "bunzip2") | 903 | "bunzip2") |
| 904 | 904 | ||
| 905 | ;; xz'ed archives | 905 | ;; xz'ed archives |
| 906 | (list "\\.t\\(ar\\.\\)?xz$" | 906 | (list "\\.t\\(ar\\.\\)?xz\\'" |
| 907 | "unxz -c * | tar xvf -" | 907 | "unxz -c * | tar xvf -" |
| 908 | ;; Extract files into a separate subdirectory | 908 | ;; Extract files into a separate subdirectory |
| 909 | '(concat "mkdir " (file-name-sans-extension file) | 909 | '(concat "mkdir " (file-name-sans-extension file) |
| @@ -912,96 +912,96 @@ replace it with a dir-locals-file `./%s'" | |||
| 912 | ;; Optional decompression. | 912 | ;; Optional decompression. |
| 913 | "unxz") | 913 | "unxz") |
| 914 | 914 | ||
| 915 | '("\\.shar\\.Z$" "zcat * | unshar") | 915 | '("\\.shar\\.Z\\'" "zcat * | unshar") |
| 916 | '("\\.shar\\.g?z$" "gunzip -qc * | unshar") | 916 | '("\\.shar\\.g?z\\'" "gunzip -qc * | unshar") |
| 917 | 917 | ||
| 918 | '("\\.e?ps$" "ghostview" "xloadimage" "lpr") | 918 | '("\\.e?ps\\'" "ghostview" "xloadimage" "lpr") |
| 919 | (list "\\.e?ps\\.g?z$" "gunzip -qc * | ghostview -" | 919 | (list "\\.e?ps\\.g?z\\'" "gunzip -qc * | ghostview -" |
| 920 | ;; Optional decompression. | 920 | ;; Optional decompression. |
| 921 | '(concat "gunzip" (if dired-guess-shell-gzip-quiet " -q"))) | 921 | '(concat "gunzip" (if dired-guess-shell-gzip-quiet " -q"))) |
| 922 | (list "\\.e?ps\\.Z$" "zcat * | ghostview -" | 922 | (list "\\.e?ps\\.Z\\'" "zcat * | ghostview -" |
| 923 | ;; Optional conversion to gzip format. | 923 | ;; Optional conversion to gzip format. |
| 924 | '(concat "znew" (if dired-guess-shell-gzip-quiet " -q") | 924 | '(concat "znew" (if dired-guess-shell-gzip-quiet " -q") |
| 925 | " " dired-guess-shell-znew-switches)) | 925 | " " dired-guess-shell-znew-switches)) |
| 926 | 926 | ||
| 927 | '("\\.patch$" "cat * | patch") | 927 | '("\\.patch\\'" "cat * | patch") |
| 928 | (list "\\.patch\\.g?z$" "gunzip -qc * | patch" | 928 | (list "\\.patch\\.g?z\\'" "gunzip -qc * | patch" |
| 929 | ;; Optional decompression. | 929 | ;; Optional decompression. |
| 930 | '(concat "gunzip" (if dired-guess-shell-gzip-quiet " -q"))) | 930 | '(concat "gunzip" (if dired-guess-shell-gzip-quiet " -q"))) |
| 931 | (list "\\.patch\\.Z$" "zcat * | patch" | 931 | (list "\\.patch\\.Z\\'" "zcat * | patch" |
| 932 | ;; Optional conversion to gzip format. | 932 | ;; Optional conversion to gzip format. |
| 933 | '(concat "znew" (if dired-guess-shell-gzip-quiet " -q") | 933 | '(concat "znew" (if dired-guess-shell-gzip-quiet " -q") |
| 934 | " " dired-guess-shell-znew-switches)) | 934 | " " dired-guess-shell-znew-switches)) |
| 935 | 935 | ||
| 936 | ;; The following four extensions are useful with dired-man ("N" key) | 936 | ;; The following four extensions are useful with dired-man ("N" key) |
| 937 | (list "\\.\\(?:[0-9]\\|man\\)$" '(progn (require 'man) | 937 | (list "\\.\\(?:[0-9]\\|man\\)\\'" '(progn (require 'man) |
| 938 | (if (Man-support-local-filenames) | 938 | (if (Man-support-local-filenames) |
| 939 | "man -l" | 939 | "man -l" |
| 940 | "cat * | tbl | nroff -man -h"))) | 940 | "cat * | tbl | nroff -man -h"))) |
| 941 | (list "\\.\\(?:[0-9]\\|man\\)\\.g?z$" '(progn (require 'man) | 941 | (list "\\.\\(?:[0-9]\\|man\\)\\.g?z\\'" '(progn (require 'man) |
| 942 | (if (Man-support-local-filenames) | 942 | (if (Man-support-local-filenames) |
| 943 | "man -l" | 943 | "man -l" |
| 944 | "gunzip -qc * | tbl | nroff -man -h")) | 944 | "gunzip -qc * | tbl | nroff -man -h")) |
| 945 | ;; Optional decompression. | 945 | ;; Optional decompression. |
| 946 | '(concat "gunzip" (if dired-guess-shell-gzip-quiet " -q"))) | 946 | '(concat "gunzip" (if dired-guess-shell-gzip-quiet " -q"))) |
| 947 | (list "\\.[0-9]\\.Z$" '(progn (require 'man) | 947 | (list "\\.[0-9]\\.Z\\'" '(progn (require 'man) |
| 948 | (if (Man-support-local-filenames) | 948 | (if (Man-support-local-filenames) |
| 949 | "man -l" | 949 | "man -l" |
| 950 | "zcat * | tbl | nroff -man -h")) | 950 | "zcat * | tbl | nroff -man -h")) |
| 951 | ;; Optional conversion to gzip format. | 951 | ;; Optional conversion to gzip format. |
| 952 | '(concat "znew" (if dired-guess-shell-gzip-quiet " -q") | 952 | '(concat "znew" (if dired-guess-shell-gzip-quiet " -q") |
| 953 | " " dired-guess-shell-znew-switches)) | 953 | " " dired-guess-shell-znew-switches)) |
| 954 | '("\\.pod$" "perldoc" "pod2man * | nroff -man") | 954 | '("\\.pod\\'" "perldoc" "pod2man * | nroff -man") |
| 955 | 955 | ||
| 956 | '("\\.dvi$" "xdvi" "dvips") ; preview and printing | 956 | '("\\.dvi\\'" "xdvi" "dvips") ; preview and printing |
| 957 | '("\\.au$" "play") ; play Sun audiofiles | 957 | '("\\.au\\'" "play") ; play Sun audiofiles |
| 958 | '("\\.mpe?g$\\|\\.avi$" "xine -p") | 958 | '("\\.mpe?g\\'\\|\\.avi\\'" "xine -p") |
| 959 | '("\\.ogg$" "ogg123") | 959 | '("\\.ogg\\'" "ogg123") |
| 960 | '("\\.mp3$" "mpg123") | 960 | '("\\.mp3\\'" "mpg123") |
| 961 | '("\\.wav$" "play") | 961 | '("\\.wav\\'" "play") |
| 962 | '("\\.uu$" "uudecode") ; for uudecoded files | 962 | '("\\.uu\\'" "uudecode") ; for uudecoded files |
| 963 | '("\\.hqx$" "mcvert") | 963 | '("\\.hqx\\'" "mcvert") |
| 964 | '("\\.sh$" "sh") ; execute shell scripts | 964 | '("\\.sh\\'" "sh") ; execute shell scripts |
| 965 | '("\\.xbm$" "bitmap") ; view X11 bitmaps | 965 | '("\\.xbm\\'" "bitmap") ; view X11 bitmaps |
| 966 | '("\\.gp$" "gnuplot") | 966 | '("\\.gp\\'" "gnuplot") |
| 967 | '("\\.p[bgpn]m$" "xloadimage") | 967 | '("\\.p[bgpn]m\\'" "xloadimage") |
| 968 | '("\\.gif$" "xloadimage") ; view gif pictures | 968 | '("\\.gif\\'" "xloadimage") ; view gif pictures |
| 969 | '("\\.tif$" "xloadimage") | 969 | '("\\.tif\\'" "xloadimage") |
| 970 | '("\\.png$" "display") ; xloadimage 4.1 doesn't grok PNG | 970 | '("\\.png\\'" "display") ; xloadimage 4.1 doesn't grok PNG |
| 971 | '("\\.jpe?g$" "xloadimage") | 971 | '("\\.jpe?g\\'" "xloadimage") |
| 972 | '("\\.fig$" "xfig") ; edit fig pictures | 972 | '("\\.fig\\'" "xfig") ; edit fig pictures |
| 973 | '("\\.out$" "xgraph") ; for plotting purposes. | 973 | '("\\.out\\'" "xgraph") ; for plotting purposes. |
| 974 | '("\\.tex$" "latex" "tex") | 974 | '("\\.tex\\'" "latex" "tex") |
| 975 | '("\\.texi\\(nfo\\)?$" "makeinfo" "texi2dvi") | 975 | '("\\.texi\\(nfo\\)?\\'" "makeinfo" "texi2dvi") |
| 976 | '("\\.pdf$" "xpdf") | 976 | '("\\.pdf\\'" "xpdf") |
| 977 | '("\\.doc$" "antiword" "strings") | 977 | '("\\.doc\\'" "antiword" "strings") |
| 978 | '("\\.rpm$" "rpm -qilp" "rpm -ivh") | 978 | '("\\.rpm\\'" "rpm -qilp" "rpm -ivh") |
| 979 | '("\\.dia$" "dia") | 979 | '("\\.dia\\'" "dia") |
| 980 | '("\\.mgp$" "mgp") | 980 | '("\\.mgp\\'" "mgp") |
| 981 | 981 | ||
| 982 | ;; Some other popular archivers. | 982 | ;; Some other popular archivers. |
| 983 | (list "\\.zip$" "unzip" "unzip -l" | 983 | (list "\\.zip\\'" "unzip" "unzip -l" |
| 984 | ;; Extract files into a separate subdirectory | 984 | ;; Extract files into a separate subdirectory |
| 985 | '(concat "unzip" (if dired-guess-shell-gzip-quiet " -q") | 985 | '(concat "unzip" (if dired-guess-shell-gzip-quiet " -q") |
| 986 | " -d " (file-name-sans-extension file))) | 986 | " -d " (file-name-sans-extension file))) |
| 987 | '("\\.zoo$" "zoo x//") | 987 | '("\\.zoo\\'" "zoo x//") |
| 988 | '("\\.lzh$" "lharc x") | 988 | '("\\.lzh\\'" "lharc x") |
| 989 | '("\\.arc$" "arc x") | 989 | '("\\.arc\\'" "arc x") |
| 990 | '("\\.shar$" "unshar") | 990 | '("\\.shar\\'" "unshar") |
| 991 | '("\\.rar$" "unrar x") | 991 | '("\\.rar\\'" "unrar x") |
| 992 | '("\\.7z$" "7z x") | 992 | '("\\.7z\\'" "7z x") |
| 993 | 993 | ||
| 994 | ;; Compression. | 994 | ;; Compression. |
| 995 | (list "\\.g?z$" '(concat "gunzip" (if dired-guess-shell-gzip-quiet " -q"))) | 995 | (list "\\.g?z\\'" '(concat "gunzip" (if dired-guess-shell-gzip-quiet " -q"))) |
| 996 | (list "\\.dz$" "dictunzip") | 996 | (list "\\.dz\\'" "dictunzip") |
| 997 | (list "\\.bz2$" "bunzip2") | 997 | (list "\\.bz2\\'" "bunzip2") |
| 998 | (list "\\.xz$" "unxz") | 998 | (list "\\.xz\\'" "unxz") |
| 999 | (list "\\.Z$" "uncompress" | 999 | (list "\\.Z\\'" "uncompress" |
| 1000 | ;; Optional conversion to gzip format. | 1000 | ;; Optional conversion to gzip format. |
| 1001 | '(concat "znew" (if dired-guess-shell-gzip-quiet " -q") | 1001 | '(concat "znew" (if dired-guess-shell-gzip-quiet " -q") |
| 1002 | " " dired-guess-shell-znew-switches)) | 1002 | " " dired-guess-shell-znew-switches)) |
| 1003 | 1003 | ||
| 1004 | '("\\.sign?$" "gpg --verify")) | 1004 | '("\\.sign?\\'" "gpg --verify")) |
| 1005 | 1005 | ||
| 1006 | "Default alist used for shell command guessing. | 1006 | "Default alist used for shell command guessing. |
| 1007 | See `dired-guess-shell-alist-user'.") | 1007 | See `dired-guess-shell-alist-user'.") |