From 01d58d4385bed77eb5c3002cf937a2c5f60f2156 Mon Sep 17 00:00:00 2001 From: Hannu Koivisto Date: Fri, 8 Jan 2010 20:32:56 +0200 Subject: [PATCH] Fix magit-log-edit-mode keymap definition and activation. Rely on the standard define-derived-mode functionality. --- magit.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/magit.el b/magit.el index cb9d38f1..ff33f7c0 100644 --- a/magit.el +++ b/magit.el @@ -2586,7 +2586,7 @@ branch." ;;; Log edit mode -(defvar magit-log-edit-map +(defvar magit-log-edit-mode-map (let ((map (make-sparse-keymap))) (define-key map (kbd "C-c C-c") 'magit-log-edit-commit) (define-key map (kbd "C-c C-a") 'magit-log-edit-toggle-amending) @@ -2612,8 +2612,7 @@ Prefix arg means justify as well." (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)) + 'magit-log-fill-paragraph)) (defun magit-log-edit-cleanup () (save-excursion