summaryrefslogtreecommitdiff
path: root/lisp/dired.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-02-22 22:39:27 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2021-02-22 22:39:27 +0100
commit59698d924e541b1768a61caafd0dfa40b5ed4b34 (patch)
treec04cdde7d8fa9a1da8e86cc126c7046b82e4e816 /lisp/dired.el
parent77e194971c5370856a63cf02397d79f85d6b342b (diff)
downloademacs-59698d924e541b1768a61caafd0dfa40b5ed4b34.tar.gz
emacs-59698d924e541b1768a61caafd0dfa40b5ed4b34.tar.bz2
emacs-59698d924e541b1768a61caafd0dfa40b5ed4b34.zip
Mention the problems with newlines in Dired
* doc/emacs/dired.texi (Dired Enter): Mention newlines and what to do about them. * lisp/dired.el (dired-listing-switches): Mention newlines (bug#46705).
Diffstat (limited to 'lisp/dired.el')
-rw-r--r--lisp/dired.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/dired.el b/lisp/dired.el
index 553fb64da05..4f1c3ded092 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -60,10 +60,15 @@
May contain all other options that don't contradict `-l';
may contain even `F', `b', `i' and `s'. See also the variable
`dired-ls-F-marks-symlinks' concerning the `F' switch.
+
+If you have files with names with embedded newline characters, adding
+`b' to the switches will allow Dired to handle those files better.
+
Options that include embedded whitespace must be quoted
like this: \"--option=value with spaces\"; you can use
`combine-and-quote-strings' to produce the correct quoting of
each option.
+
On systems such as MS-DOS and MS-Windows, which use `ls' emulation in Lisp,
some of the `ls' switches are not supported; see the doc string of
`insert-directory' in `ls-lisp.el' for more details."