Function: pr-standard-file-name

pr-standard-file-name is a byte-compiled function defined in printing.el.gz.

Signature

(pr-standard-file-name FILENAME)

Documentation

Ensure the proper directory separator depending on the OS.

That is, if Emacs is running on DOS/Windows, ensure dos/windows-style directory separator; otherwise, ensure unix-style directory separator.

Source Code

;; Defined in /usr/src/emacs/lisp/printing.el.gz
(defun pr-standard-file-name (filename)
  "Ensure the proper directory separator depending on the OS.
That is, if Emacs is running on DOS/Windows, ensure dos/windows-style directory
separator; otherwise, ensure unix-style directory separator."
  ;; FIXME: Why not use pr-dosify-file-name?
  (if (or pr-cygwin-system lpr-windows-system)
      (subst-char-in-string ?/ ?\\ filename)
    filename))