Fix: Warning: assignment to free variable `my-log-mode-map'.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 01 Mar 2015 13:39:23 +0200
changeset 1249 edb7f9210892
parent 1248 19234649ba68
child 1250 73c10c73c63f
Fix: Warning: assignment to free variable `my-log-mode-map'.
my-log-mode.el
--- a/my-log-mode.el	Sun Mar 01 13:38:37 2015 +0200
+++ b/my-log-mode.el	Sun Mar 01 13:39:23 2015 +0200
@@ -43,7 +43,7 @@
      )
     ))
 
-(setq my-log-mode-map (make-sparse-keymap))
+(defvar my-log-mode-map (make-sparse-keymap))
 (define-key my-log-mode-map (kbd "RET") 'my-log-goto)
 
 (require 'generic-x)