artagnon <[email protected]> writes:

>  (define-derived-mode magit-log-edit-mode text-mode "Magit Log Edit"
>    (set (make-local-variable 'fill-paragraph-function)
>         'magit-log-fill-paragraph)
> -  (use-local-map magit-log-edit-map))
> +  (use-local-map magit-log-edit-map)
> +  (run-mode-hooks 'magit-log-edit-mode-hook))

define-derived-mode already takes care of providing a hook and
running the hook functions, you don't need to do that :) See
define-derived-mode documentation.

In fact, I believe that use-local-map expression is useless too.

-- 
Hannu

Reply via email to