aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-09-01 13:27:47 +0000
committerRichard M. Stallman2002-09-01 13:27:47 +0000
commitca66efd171d96397b9f07240b91ea70d662af095 (patch)
tree98389a5f36e884d3dcb0cae2f46a41a101c1ef3f
parent68890d7ebc567261df925bf1032e512ccdece661 (diff)
downloademacs-ca66efd171d96397b9f07240b91ea70d662af095.tar.gz
emacs-ca66efd171d96397b9f07240b91ea70d662af095.zip
(defgroup dired): Use `files' as parent.
(dired-get-filename): Ignore handler if it has safe-magic prop.
-rw-r--r--lisp/dired.el21
1 files changed, 14 insertions, 7 deletions
diff --git a/lisp/dired.el b/lisp/dired.el
index ba19f047347..eef78d94805 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -39,7 +39,7 @@
39 39
40(defgroup dired nil 40(defgroup dired nil
41 "Directory editing." 41 "Directory editing."
42 :group 'environment) 42 :group 'files)
43 43
44(defgroup dired-mark nil 44(defgroup dired-mark nil
45 "Handling marks in Dired." 45 "Handling marks in Dired."
@@ -1471,16 +1471,23 @@ Optional arg NO-ERROR-IF-NOT-FILEP means return nil if no filename on
1471 ((and (eq localp 'no-dir) already-absolute) 1471 ((and (eq localp 'no-dir) already-absolute)
1472 (file-name-nondirectory file)) 1472 (file-name-nondirectory file))
1473 (already-absolute 1473 (already-absolute
1474 (if (find-file-name-handler file nil) 1474 (let ((handler (find-file-name-handler file nil)))
1475 (concat "/:" file) 1475 ;; check for safe-magic property so that we won't
1476 file)) 1476 ;; put /: for names that don't really need them.
1477 (if (and handler (not (get handler 'safe-magic)))
1478 (concat "/:" file)
1479 file)))
1477 ((eq localp 'no-dir) 1480 ((eq localp 'no-dir)
1478 file) 1481 file)
1479 ((equal (dired-current-directory) "/") 1482 ((equal (dired-current-directory) "/")
1480 (setq file (concat (dired-current-directory localp) file)) 1483 (setq file (concat (dired-current-directory localp) file))
1481 (if (find-file-name-handler file nil) 1484 (let ((handler (find-file-name-handler file nil)))
1482 (concat "/:" file) 1485 ;; check for safe-magic property so that we won't
1483 file)) 1486 ;; put /: for names that don't really need them.
1487 ;; For instance, .gz files when auto-compression-mode is on.
1488 (if (and handler (not (get handler 'safe-magic)))
1489 (concat "/:" file)
1490 file)))
1484 (t 1491 (t
1485 (concat (dired-current-directory localp) file))))) 1492 (concat (dired-current-directory localp) file)))))
1486 1493