1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

* lisp/dired.el (dired-safe-switches-p): New function. (Bug#3230)

This commit is contained in:
Stefan Monnier 2011-02-28 19:10:11 -08:00 committed by Glenn Morris
parent 6640b281f3
commit 75da6eb972
2 changed files with 7 additions and 0 deletions

View file

@ -249,6 +249,9 @@ Local to each dired buffer. May be a list, in which case the car is the
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.")