diff options
| author | Eli Zaretskii | 2002-02-04 19:40:08 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2002-02-04 19:40:08 +0000 |
| commit | c2792945cb9de15fc98c00f0aabe2592f4eebe10 (patch) | |
| tree | c589e9f8c87dc520fdffd0b933bd106cc1cba6c1 | |
| parent | 7718638cead692352bde8e2650bac6c9feb2a267 (diff) | |
| download | emacs-c2792945cb9de15fc98c00f0aabe2592f4eebe10.tar.gz emacs-c2792945cb9de15fc98c00f0aabe2592f4eebe10.zip | |
(dired-load-hook, dired-mode-hook)
(dired-before-readin-hook, dired-after-readin-hook): Defcustom.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/dired.el | 24 |
2 files changed, 21 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ae035d0f860..24209670259 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2002-02-04 Simon Josefsson <jas@extundo.com> | ||
| 2 | |||
| 3 | * dired.el (dired-load-hook, dired-mode-hook) | ||
| 4 | (dired-before-readin-hook, dired-after-readin-hook): Defcustom. | ||
| 5 | |||
| 1 | 2002-02-03 Colin Walters <walters@verbum.org> | 6 | 2002-02-03 Colin Walters <walters@verbum.org> |
| 2 | 7 | ||
| 3 | * ibuf-ext.el (ibuffer-filter-format-alist, | 8 | * ibuf-ext.el (ibuffer-filter-format-alist, |
diff --git a/lisp/dired.el b/lisp/dired.el index d3f657c4005..43d03627a98 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -164,20 +164,28 @@ The target is used in the prompt for file copy, rename etc." | |||
| 164 | 164 | ||
| 165 | ;;; Hook variables | 165 | ;;; Hook variables |
| 166 | 166 | ||
| 167 | (defvar dired-load-hook nil | 167 | (defcustom dired-load-hook nil |
| 168 | "Run after loading dired. | 168 | "Run after loading dired. |
| 169 | You can customize key bindings or load extensions with this.") | 169 | You can customize key bindings or load extensions with this." |
| 170 | :group 'dired | ||
| 171 | :type 'hook) | ||
| 170 | 172 | ||
| 171 | (defvar dired-mode-hook nil | 173 | (defcustom dired-mode-hook nil |
| 172 | "Run at the very end of dired-mode.") | 174 | "Run at the very end of dired-mode." |
| 175 | :group 'dired | ||
| 176 | :type 'hook) | ||
| 173 | 177 | ||
| 174 | (defvar dired-before-readin-hook nil | 178 | (defcustom dired-before-readin-hook nil |
| 175 | "This hook is run before a dired buffer is read in (created or reverted).") | 179 | "This hook is run before a dired buffer is read in (created or reverted)." |
| 180 | :group 'dired | ||
| 181 | :type 'hook) | ||
| 176 | 182 | ||
| 177 | (defvar dired-after-readin-hook nil | 183 | (defcustom dired-after-readin-hook nil |
| 178 | "Hook run after each time a file or directory is read by Dired. | 184 | "Hook run after each time a file or directory is read by Dired. |
| 179 | After each listing of a file or directory, this hook is run | 185 | After each listing of a file or directory, this hook is run |
| 180 | with the buffer narrowed to the listing.") | 186 | with the buffer narrowed to the listing." |
| 187 | :group 'dired | ||
| 188 | :type 'hook) | ||
| 181 | ;; Note this can't simply be run inside function `dired-ls' as the hook | 189 | ;; Note this can't simply be run inside function `dired-ls' as the hook |
| 182 | ;; functions probably depend on the dired-subdir-alist to be OK. | 190 | ;; functions probably depend on the dired-subdir-alist to be OK. |
| 183 | 191 | ||