Function: dosified-file-name
dosified-file-name is a byte-compiled function defined in
dos-fns.el.gz.
Signature
(dosified-file-name FILE-NAME)
Documentation
Return a variant of FILE-NAME that is valid on MS-DOS filesystems.
This function is for those rare cases where dos-convert-standard-filename
does not do a job that is good enough, e.g. if you need to preserve the
file-name extension. It recognizes only certain specific file names
that are used in Emacs Lisp sources; any other file name will be
returned unaltered.
Source Code
;; Defined in /usr/src/emacs/lisp/dos-fns.el.gz
;; This is for the sake of standard file names elsewhere in Emacs that
;; are defined as constant strings or via defconst, and whose
;; conversion via `dos-convert-standard-filename' does not give good
;; enough results.
(defun dosified-file-name (file-name)
"Return a variant of FILE-NAME that is valid on MS-DOS filesystems.
This function is for those rare cases where `dos-convert-standard-filename'
does not do a job that is good enough, e.g. if you need to preserve the
file-name extension. It recognizes only certain specific file names
that are used in Emacs Lisp sources; any other file name will be
returned unaltered."
(cond
;; See files.el:dir-locals-file.
((string= file-name ".dir-locals")
"_dir-locals")
(t
file-name)))