summaryrefslogtreecommitdiff
path: root/lisp/dired-aux.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1992-09-19 19:40:38 +0000
committerRichard M. Stallman <rms@gnu.org>1992-09-19 19:40:38 +0000
commit7b2469aed79314f4a73dae64fbf1049c9133c4c7 (patch)
tree04a601dea7265f8d3484199cb01415e6a785e7ba /lisp/dired-aux.el
parenta8f783b2195993d23955968bdff96b739f904b79 (diff)
downloademacs-7b2469aed79314f4a73dae64fbf1049c9133c4c7.tar.gz
entered into RCS
Diffstat (limited to 'lisp/dired-aux.el')
-rw-r--r--lisp/dired-aux.el13
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index 3b66c68598f..ad154f9dea1 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -478,12 +478,13 @@ and use this command with a prefix argument (the value does not matter)."
;; Return the name of the compressed or uncompressed file.
;; Rerurn nil if no change in files.
(let (handler (handlers file-name-handler-alist))
- (while (and (consp handlers) (null handler))
- (if (and (consp (car handlers))
- (stringp (car (car handlers)))
- (string-match (car (car handlers)) file))
- (setq handler (cdr (car handlers))))
- (setq handlers (cdr handlers)))
+ (save-match-data
+ (while (and (consp handlers) (null handler))
+ (if (and (consp (car handlers))
+ (stringp (car (car handlers)))
+ (string-match (car (car handlers)) file))
+ (setq handler (cdr (car handlers))))
+ (setq handlers (cdr handlers))))
(cond (handler
(funcall handler 'dired-compress-file file))
((file-symlink-p file)