aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2011-02-28 19:10:11 -0800
committerGlenn Morris2011-02-28 19:10:11 -0800
commit75da6eb97218018fcc0290529149cb1d2c1ceede (patch)
treeaad592d7f8d8c02c8170802d186ab12d74d0ac46
parent6640b281f372aebe09d0e323b79a9aa7c311fcc2 (diff)
downloademacs-75da6eb97218018fcc0290529149cb1d2c1ceede.tar.gz
emacs-75da6eb97218018fcc0290529149cb1d2c1ceede.zip
* lisp/dired.el (dired-safe-switches-p): New function. (Bug#3230)
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/dired.el3
2 files changed, 7 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5b8a5be8280..c4154b9a56e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12011-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * dired.el (dired-safe-switches-p): New function.
4
12011-03-01 Glenn Morris <rgm@gnu.org> 52011-03-01 Glenn Morris <rgm@gnu.org>
2 6
3 * files.el (dir-locals-collect-variables): 7 * files.el (dir-locals-collect-variables):
diff --git a/lisp/dired.el b/lisp/dired.el
index 625ed48eff4..4b9bc19c8d9 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -249,6 +249,9 @@ Local to each dired buffer. May be a list, in which case the car is the
249directory name and the cdr is the list of files to mention. 249directory name and the cdr is the list of files to mention.
250The directory name must be absolute, but need not be fully expanded.") 250The directory name must be absolute, but need not be fully expanded.")
251 251
252(defun dired-safe-switches-p (switches)
253 (string-match "\\`[- [:alnum:]]+\\'" switches))
254
252(defvar dired-actual-switches nil 255(defvar dired-actual-switches nil
253 "The value of `dired-listing-switches' used to make this buffer's text.") 256 "The value of `dired-listing-switches' used to make this buffer's text.")
254 257