Function: dired--remove-b-switch
dired--remove-b-switch is a byte-compiled function defined in
dired.el.gz.
Signature
(dired--remove-b-switch)
Documentation
Remove all variants of the b switch from dired-actual-switches.
This removes not only all occurrences of the short form -b but also
the long forms --escape and --quoting-style=escape.
Source Code
;; Defined in /usr/src/emacs/lisp/dired.el.gz
(defun dired--remove-b-switch ()
"Remove all variants of the `b' switch from `dired-actual-switches'.
This removes not only all occurrences of the short form `-b' but also
the long forms `--escape' and `--quoting-style=escape'."
(let (switches)
(dolist (s (string-split dired-actual-switches))
(when (string-match "\\`-[^-]" s)
(setq s (remove ?b s)))
(unless (or (string= s "-")
(string-match "escape" s))
(cl-pushnew s switches :test 'equal)))
(mapconcat #'identity (nreverse switches) " ")))