+2011-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * dired.el (dired-safe-switches-p): New function.
+
2011-03-01 Glenn Morris <rgm@gnu.org>
* files.el (dir-locals-collect-variables):
directory name and the cdr is the list of files to mention.
The directory name must be absolute, but need not be fully expanded.")
+(defun dired-safe-switches-p (switches)
+ (string-match "\\`[- [:alnum:]]+\\'" switches))
+
(defvar dired-actual-switches nil
"The value of `dired-listing-switches' used to make this buffer's text.")