]> code.delx.au - gnu-emacs/blobdiff - lisp/dirtrack.el
(lazy-lock-install-hooks): Remove make-local-hook.
[gnu-emacs] / lisp / dirtrack.el
index 0769013dbaa8c575375c573fe57d3421514741af..572435d357bae1fc1f07f0792935e5e45e06b178 100644 (file)
@@ -186,7 +186,7 @@ be on a single line."
 (defcustom dirtrack-directory-change-hook nil
   "Hook that is called when a directory change is made."
   :group 'dirtrack
-  :type 'function
+  :type 'hook
   )
 
 
@@ -319,7 +319,7 @@ You can enable directory tracking by adding this function to
                (if (file-accessible-directory-p prompt-path)
                    ;; Change directory
                    (and (shell-process-cd prompt-path)
-                        (run-hooks dirtrack-directory-change-hook)
+                        (run-hooks 'dirtrack-directory-change-hook)
                         dirtrack-debug
                         (dirtrack-debug-message 
                          (format "Changing directory to %s" prompt-path)))