Permalink
Browse files

Fixed ac-menu-map didn't enabled on ac-next

  • Loading branch information...
1 parent 31d7396 commit 0864aab1937fbbf47b293658fe09b4ebc3428b71 Tomohiro Matsuyama committed Feb 8, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 auto-complete.el
View
@@ -1437,17 +1437,19 @@ that have been made before in this function. When `buffer-undo-list' is
"Select next candidate."
(interactive)
(when (ac-menu-live-p)
+ (when (popup-hidden-p ac-menu)
+ (ac-show-menu))
(popup-next ac-menu)
- (setq ac-show-menu t)
(if (eq this-command 'ac-next)
(setq ac-dwim-enable t))))
(defun ac-previous ()
"Select previous candidate."
(interactive)
(when (ac-menu-live-p)
+ (when (popup-hidden-p ac-menu)
+ (ac-show-menu))
(popup-previous ac-menu)
- (setq ac-show-menu t)
(if (eq this-command 'ac-previous)
(setq ac-dwim-enable t))))

0 comments on commit 0864aab

Please sign in to comment.