aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)