]> code.delx.au - gnu-emacs-elpa/commitdiff
counsel.el (counsel-tmm): Fix tmm free variable
authorOleh Krehel <ohwoeowho@gmail.com>
Tue, 19 Jan 2016 16:00:06 +0000 (17:00 +0100)
committerOleh Krehel <ohwoeowho@gmail.com>
Tue, 19 Jan 2016 16:00:06 +0000 (17:00 +0100)
Fixes #356

counsel.el

index 87ae97340eecff01d602927d564e4b32a43969d7..4a6e68f533f4ae5549af74552222940f6ecb7cc6 100644 (file)
@@ -1257,11 +1257,13 @@ INITIAL-INPUT can be given as the initial minibuffer input."
            (setq last-command-event chosen-string)
            (call-interactively choice)))))
 
+(defvar tmm-table-undef)
 (defun counsel-tmm ()
   "Text-mode emulation of looking and choosing from a menubar."
   (interactive)
   (require 'tmm)
   (run-hooks 'menu-bar-update-hook)
+  (setq tmm-table-undef nil)
   (counsel-tmm-prompt (tmm-get-keybind [menu-bar])))
 
 (defcustom counsel-yank-pop-truncate nil