diff options
| author | Glenn Morris | 2012-02-21 20:02:44 -0800 |
|---|---|---|
| committer | Glenn Morris | 2012-02-21 20:02:44 -0800 |
| commit | f25aef2e1e79cdd0cb1007bb1078d6894ebc4aeb (patch) | |
| tree | 288cac020cac788a43e3301c8e0c0bfadd3e6335 | |
| parent | 6ff86ec481dc43f9cfcc5476e3cd82d1e2b89418 (diff) | |
| download | emacs-f25aef2e1e79cdd0cb1007bb1078d6894ebc4aeb.tar.gz emacs-f25aef2e1e79cdd0cb1007bb1078d6894ebc4aeb.zip | |
dired-guess-shell-alist-default tiny nroff change
* dired-x.el (dired-guess-shell-alist-default):
Remove escape sequences from nroff output.
Fixes: debbugs:172
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/dired-x.el | 22 |
2 files changed, 17 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8bedc86ce88..7d8fdb27daa 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-02-22 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * dired-x.el (dired-guess-shell-alist-default): | ||
| 4 | Remove escape sequences from nroff output. (Bug#172) | ||
| 5 | |||
| 1 | 2012-02-21 Glenn Morris <rgm@gnu.org> | 6 | 2012-02-21 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * vc/emerge.el (emerge-defvar-local): | 8 | * vc/emerge.el (emerge-defvar-local): |
diff --git a/lisp/dired-x.el b/lisp/dired-x.el index 067d15764f8..b45a340706f 100644 --- a/lisp/dired-x.el +++ b/lisp/dired-x.el | |||
| @@ -964,24 +964,26 @@ replace it with a dir-locals-file `./%s'" | |||
| 964 | ;; FIXME "man ./" does not work with dired-do-shell-command, | 964 | ;; FIXME "man ./" does not work with dired-do-shell-command, |
| 965 | ;; because there seems to be no way for us to modify the filename, | 965 | ;; because there seems to be no way for us to modify the filename, |
| 966 | ;; only the command. Hmph. `dired-man' works though. | 966 | ;; only the command. Hmph. `dired-man' works though. |
| 967 | (list "\\.\\(?:[0-9]\\|man\\)\\'" '(let ((loc (Man-support-local-filenames))) | 967 | (list "\\.\\(?:[0-9]\\|man\\)\\'" |
| 968 | (cond ((eq loc 'man-db) "man -l") | 968 | '(let ((loc (Man-support-local-filenames))) |
| 969 | ((eq loc 'man) "man ./") | 969 | (cond ((eq loc 'man-db) "man -l") |
| 970 | (t | 970 | ((eq loc 'man) "man ./") |
| 971 | "cat * | tbl | nroff -man -h")))) | 971 | (t |
| 972 | "cat * | tbl | nroff -man -h | col -b")))) | ||
| 972 | (list "\\.\\(?:[0-9]\\|man\\)\\.g?z\\'" | 973 | (list "\\.\\(?:[0-9]\\|man\\)\\.g?z\\'" |
| 973 | '(let ((loc (Man-support-local-filenames))) | 974 | '(let ((loc (Man-support-local-filenames))) |
| 974 | (cond ((eq loc 'man-db) | 975 | (cond ((eq loc 'man-db) |
| 975 | "man -l") | 976 | "man -l") |
| 976 | ((eq loc 'man) | 977 | ((eq loc 'man) |
| 977 | "man ./") | 978 | "man ./") |
| 978 | (t "gunzip -qc * | tbl | nroff -man -h"))) | 979 | (t "gunzip -qc * | tbl | nroff -man -h | col -b"))) |
| 979 | ;; Optional decompression. | 980 | ;; Optional decompression. |
| 980 | '(concat "gunzip" (if dired-guess-shell-gzip-quiet " -q"))) | 981 | '(concat "gunzip" (if dired-guess-shell-gzip-quiet " -q"))) |
| 981 | (list "\\.[0-9]\\.Z\\'" '(let ((loc (Man-support-local-filenames))) | 982 | (list "\\.[0-9]\\.Z\\'" |
| 982 | (cond ((eq loc 'man-db) "man -l") | 983 | '(let ((loc (Man-support-local-filenames))) |
| 983 | ((eq loc 'man) "man ./") | 984 | (cond ((eq loc 'man-db) "man -l") |
| 984 | (t "zcat * | tbl | nroff -man -h"))) | 985 | ((eq loc 'man) "man ./") |
| 986 | (t "zcat * | tbl | nroff -man -h | col -b"))) | ||
| 985 | ;; Optional conversion to gzip format. | 987 | ;; Optional conversion to gzip format. |
| 986 | '(concat "znew" (if dired-guess-shell-gzip-quiet " -q") | 988 | '(concat "znew" (if dired-guess-shell-gzip-quiet " -q") |
| 987 | " " dired-guess-shell-znew-switches)) | 989 | " " dired-guess-shell-znew-switches)) |