Commit 75da6eb9 authored by Stefan Monnier's avatar Stefan Monnier Committed by Glenn Morris
Browse files

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

parent 6640b281
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> 2011-03-01 Glenn Morris <rgm@gnu.org>
   
* files.el (dir-locals-collect-variables): * files.el (dir-locals-collect-variables):
......
...@@ -249,6 +249,9 @@ Local to each dired buffer. May be a list, in which case the car is the ...@@ -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. directory name and the cdr is the list of files to mention.
The directory name must be absolute, but need not be fully expanded.") 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 (defvar dired-actual-switches nil
"The value of `dired-listing-switches' used to make this buffer's text.") "The value of `dired-listing-switches' used to make this buffer's text.")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment