As in the title, ac-menu disappears when hitting the down arrow key twice under some condition.
To reproduce it, define a function.
(defun test-ac-menu-disappear ()
(let ((sym (gensym)))
(pop-to-buffer (get-buffer-create "*test-ac-menu-disappear*"))
(insert (format "%S-1\n" sym))
(insert (format "%S-2\n" sym))
(insert (format "%S" sym))))
Evaluate the following code, and hit the down (or up) arrow key twice, then ac-menu disappears.
But in the following two cases, ac-menu does not disappear.
;; Not expanded the common part.
;; Not at the end of buffer.
(save-excursion (insert " "))
I think this problem is fixed in 0864aab. Please check it out.
Thanks for your reply. But I think the problem is not fixed yet.
I downloaded the newest auto-complete (23579f9), tested the code above, hit the down arrow key twice and got the same results.
I tested it on Emacs 24.2 (Ubuntu) and Emacs 24.3 (Mac OS X).
My "~/.emacs.d/init.el" at that time is following (I installed popup.el by M-x list-packages).
(add-to-list 'load-path "~/.emacs.d/auto-complete")
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")))
Fix losing keymap at eob #207
Fixed in c1aaba0. Thank you for a good reproducible code. That helped a lot!