diff options
| author | Stefan Monnier | 2011-02-28 19:10:11 -0800 |
|---|---|---|
| committer | Glenn Morris | 2011-02-28 19:10:11 -0800 |
| commit | 75da6eb97218018fcc0290529149cb1d2c1ceede (patch) | |
| tree | aad592d7f8d8c02c8170802d186ab12d74d0ac46 | |
| parent | 6640b281f372aebe09d0e323b79a9aa7c311fcc2 (diff) | |
| download | emacs-75da6eb97218018fcc0290529149cb1d2c1ceede.tar.gz emacs-75da6eb97218018fcc0290529149cb1d2c1ceede.zip | |
* lisp/dired.el (dired-safe-switches-p): New function. (Bug#3230)
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/dired.el | 3 |
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 @@ | |||
| 1 | 2011-03-01 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * dired.el (dired-safe-switches-p): New function. | ||
| 4 | |||
| 1 | 2011-03-01 Glenn Morris <rgm@gnu.org> | 5 | 2011-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 | |||
| 249 | directory name and the cdr is the list of files to mention. | 249 | directory name and the cdr is the list of files to mention. |
| 250 | The directory name must be absolute, but need not be fully expanded.") | 250 | The 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 | ||