aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1997-10-19 20:34:22 +0000
committerKarl Heuer1997-10-19 20:34:22 +0000
commitfe4d985204906d5e9bd557b68eb05620b793bfb6 (patch)
tree1dababaa859647d2ee97a7f680aab24f7d365e43
parentd6e8ea6f54806a0e94f637d6ca037c96a4ec4580 (diff)
downloademacs-fe4d985204906d5e9bd557b68eb05620b793bfb6.tar.gz
emacs-fe4d985204906d5e9bd557b68eb05620b793bfb6.zip
(file-name-non-special): If "/:" is the entire file
name, make it "/" after stripping.
-rw-r--r--lisp/files.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/files.el b/lisp/files.el
index ad4e7708ebf..01712f58e7b 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -3104,10 +3104,13 @@ With prefix arg, silently save all file-visiting buffers, then kill."
3104 ;; Strip off the /: from the file names that have this handler. 3104 ;; Strip off the /: from the file names that have this handler.
3105 (save-match-data 3105 (save-match-data
3106 (while (consp file-arg-indices) 3106 (while (consp file-arg-indices)
3107 (and (nth (car file-arg-indices) arguments) 3107 (let ((pair (nthcdr (car file-arg-indices) arguments)))
3108 (string-match "\\`/:" (nth (car file-arg-indices) arguments)) 3108 (and (car pair)
3109 (setcar (nthcdr (car file-arg-indices) arguments) 3109 (string-match "\\`/:" (car pair))
3110 (substring (nth (car file-arg-indices) arguments) 2))) 3110 (setcar pair
3111 (if (= (length (car pair)) 2)
3112 "/"
3113 (substring (car pair) 2)))))
3111 (setq file-arg-indices (cdr file-arg-indices)))) 3114 (setq file-arg-indices (cdr file-arg-indices))))
3112 (if (eq file-arg-indices 'identity) 3115 (if (eq file-arg-indices 'identity)
3113 (car arguments) 3116 (car arguments)