Function: mm-file-name-replace-whitespace

mm-file-name-replace-whitespace is a byte-compiled function defined in mm-decode.el.gz.

Signature

(mm-file-name-replace-whitespace FILE-NAME)

Documentation

Replace whitespace characters in FILE-NAME with underscores.

Set the option mm-file-name-replace-whitespace(var)/mm-file-name-replace-whitespace(fun) to any other string if you do not like underscores.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/mm-decode.el.gz
(defun mm-file-name-replace-whitespace (file-name)
  "Replace whitespace characters in FILE-NAME with underscores.
Set the option `mm-file-name-replace-whitespace' to any other
string if you do not like underscores."
  (let ((s (or mm-file-name-replace-whitespace "_")))
    (while (string-match "\\s-" file-name)
      (setq file-name (replace-match s t t file-name))))
  file-name)