changeset 14716:f70d94fe685f

(command-line-normalize-file-name): Convert /// at beginning to just /.
author Richard M. Stallman <rms@gnu.org>
date Wed, 28 Feb 1996 23:30:24 +0000
parents 0bb2443dcc6d
children e299e3e3cf9d
files lisp/startup.el
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/startup.el	Wed Feb 28 23:25:27 1996 +0000
+++ b/lisp/startup.el	Wed Feb 28 23:30:24 1996 +0000
@@ -913,6 +913,9 @@
   "Collapse multiple slashes to one, to handle non-Emacs file names."
   ;; Use arg 1 so that we don't collapse // at the start of the file name.
   ;; That is significant on some systems.
+  ;; However, /// at the beginning is supposed to mean just /, not //.
+  (if (string-match "^///+" file)
+    (setq file (replace-match "/" t t file)))
   (while (string-match "//+" file 1)
     (setq file (replace-match "/" t t file)))
   file)