diff options
| author | Richard M. Stallman | 2006-01-19 17:50:15 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-01-19 17:50:15 +0000 |
| commit | 5afea280d31037de0a33aa203f548873b8f5fb17 (patch) | |
| tree | 47a6adc00d67a64314c4550855e0814b06193c03 | |
| parent | d0600240da7152e8847e1e5f8aeb5b38cb197074 (diff) | |
| download | emacs-5afea280d31037de0a33aa203f548873b8f5fb17.tar.gz emacs-5afea280d31037de0a33aa203f548873b8f5fb17.zip | |
(dired-move-to-filename-regexp): Define as alias.
(dired-no-confirm): Use defcustom.
(dired-subdir-alist-pre-R): Put defvar at top level.
| -rw-r--r-- | lisp/dired.el | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/lisp/dired.el b/lisp/dired.el index 3cc83b29fdd..1679c6ca3c6 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -286,6 +286,9 @@ In simple cases, this list contains one element.") | |||
| 286 | This is an alist of the form (SUBDIR . SWITCHES).") | 286 | This is an alist of the form (SUBDIR . SWITCHES).") |
| 287 | (make-variable-buffer-local 'dired-switches-alist) | 287 | (make-variable-buffer-local 'dired-switches-alist) |
| 288 | 288 | ||
| 289 | (defvaralias 'dired-move-to-filename-regexp | ||
| 290 | 'directory-listing-before-filename-regexp) | ||
| 291 | |||
| 289 | (defvar dired-subdir-regexp "^. \\([^\n\r]+\\)\\(:\\)[\n\r]" | 292 | (defvar dired-subdir-regexp "^. \\([^\n\r]+\\)\\(:\\)[\n\r]" |
| 290 | "Regexp matching a maybe hidden subdirectory line in `ls -lR' output. | 293 | "Regexp matching a maybe hidden subdirectory line in `ls -lR' output. |
| 291 | Subexpression 1 is the subdirectory proper, no trailing colon. | 294 | Subexpression 1 is the subdirectory proper, no trailing colon. |
| @@ -2514,11 +2517,18 @@ if there are no flagged files." | |||
| 2514 | (set-window-start w2 1) | 2517 | (set-window-start w2 1) |
| 2515 | ))) | 2518 | ))) |
| 2516 | 2519 | ||
| 2517 | (defvar dired-no-confirm nil | 2520 | (defcustom dired-no-confirm nil |
| 2518 | "A list of symbols for commands Dired should not confirm. | 2521 | "A list of symbols for commands Dired should not confirm. |
| 2519 | Command symbols are `byte-compile', `chgrp', `chmod', `chown', `compress', | 2522 | Command symbols are `byte-compile', `chgrp', `chmod', `chown', `compress', |
| 2520 | `copy', `delete', `hardlink', `load', `move', `print', `shell', `symlink', | 2523 | `copy', `delete', `hardlink', `load', `move', `print', `shell', `symlink', |
| 2521 | `touch' and `uncompress'.") | 2524 | `touch' and `uncompress'." |
| 2525 | :group 'dired | ||
| 2526 | :type (set (const byte-compile) (const chgrp) | ||
| 2527 | (const chmod) (const chown) (const compress) | ||
| 2528 | (const copy) (const delete) (const hardlink) | ||
| 2529 | (const load) (const move) (const print) | ||
| 2530 | (const shell) (const symlink) (const touch) | ||
| 2531 | (const uncompress))) | ||
| 2522 | 2532 | ||
| 2523 | (defun dired-mark-pop-up (bufname op-symbol files function &rest args) | 2533 | (defun dired-mark-pop-up (bufname op-symbol files function &rest args) |
| 2524 | "Return FUNCTION's result on ARGS after showing which files are marked. | 2534 | "Return FUNCTION's result on ARGS after showing which files are marked. |
| @@ -3091,9 +3101,9 @@ With optional second arg NO-REVERT, don't refresh the listing afterwards." | |||
| 3091 | (if (eq major-mode 'dired-mode) (dired-sort-set-modeline)) | 3101 | (if (eq major-mode 'dired-mode) (dired-sort-set-modeline)) |
| 3092 | (or no-revert (revert-buffer))) | 3102 | (or no-revert (revert-buffer))) |
| 3093 | 3103 | ||
| 3094 | (make-variable-buffer-local | 3104 | (defvar dired-subdir-alist-pre-R nil |
| 3095 | (defvar dired-subdir-alist-pre-R nil | 3105 | "Value of `dired-subdir-alist' before -R switch added.") |
| 3096 | "Value of `dired-subdir-alist' before -R switch added.")) | 3106 | (make-variable-buffer-local dired-subdir-alist-pre-R)) |
| 3097 | 3107 | ||
| 3098 | (defun dired-sort-R-check (switches) | 3108 | (defun dired-sort-R-check (switches) |
| 3099 | "Additional processing of -R in ls option string SWITCHES. | 3109 | "Additional processing of -R in ls option string SWITCHES. |