Function: dired--filename-with-newline-p
dired--filename-with-newline-p is a byte-compiled function defined in
dired.el.gz.
Signature
(dired--filename-with-newline-p)
Documentation
Check whether a file name in this Dired buffer has a newline.
Return non-nil if at least one file name in this Dired buffer (including
any Dired subdirectories in the buffer) contains a newline character
(regardless of whether Dired displays the character as a literal newline
or as "\\n").
Source Code
;; Defined in /usr/src/emacs/lisp/dired.el.gz
(defun dired--filename-with-newline-p ()
"Check whether a file name in this Dired buffer has a newline.
Return non-nil if at least one file name in this Dired buffer (including
any Dired subdirectories in the buffer) contains a newline character
(regardless of whether Dired displays the character as a literal newline
or as \"\\n\")."
(if (length> dired-subdir-alist 1)
(let (res)
(catch 'found
(dolist (subdir dired-subdir-alist res)
(setq res (directory-files (car subdir) nil "\n"))
(and res (throw 'found res)))))
(directory-files default-directory nil "\n")))