# HG changeset patch # User Oleksandr Gavenko # Date 1459085730 -10800 # Node ID 4657b44ad9afa74467f5cf7568711f4d9781f7c8 # Parent 68d510b25621c444a2fd3ccd3584bdd7debfc513 Fix: Warning: reference to free variable `gadict-mode-map'. diff -r 68d510b25621 -r 4657b44ad9af contrib/gadict.el --- a/contrib/gadict.el Sun Mar 27 16:02:46 2016 +0300 +++ b/contrib/gadict.el Sun Mar 27 16:35:30 2016 +0300 @@ -138,7 +138,7 @@ (defun gadict-setup-keymap () "Setup gadict keymap." - (define-key gadict-mode-map [C-return] 'gadict-new-entry)) + (define-key (current-local-map) [C-return] 'gadict-new-entry)) ;;;###autoload (define-derived-mode gadict-mode fundamental-mode "gadict"