mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-19 03:17:36 +00:00
(command-line-normalize-file-name):
Don't collapse // at start of file name.
This commit is contained in:
parent
a478a9ce32
commit
aeab376f9f
1 changed files with 3 additions and 1 deletions
|
|
@ -911,7 +911,9 @@ Type \\[describe-distribution] for information on getting the latest version."))
|
|||
|
||||
(defun command-line-normalize-file-name (file)
|
||||
"Collapse multiple slashes to one, to handle non-Emacs file names."
|
||||
(while (string-match "//+" file)
|
||||
;; Use arg 1 so that we don't collapse // at the start of the file name.
|
||||
;; That is significant on some systems.
|
||||
(while (string-match "//+" file 1)
|
||||
(setq file (replace-match "/" t t file)))
|
||||
file)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue