At eob, ac-menu disappears when hitting the down arrow key twice under some condition. #207

Closed
stakemori opened this Issue Feb 3, 2013 · 3 comments

Projects

None yet

2 participants

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*"))
    (erase-buffer)
    (auto-complete-mode 1)
    (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.

(progn
  (test-ac-menu-disappear)
  (auto-complete))

But in the following two cases, ac-menu does not disappear.

;; Not expanded the common part.
(progn
  (test-ac-menu-disappear)
  (insert "-")
  (auto-complete))

;; Not at the end of buffer.
(progn
  (test-ac-menu-disappear)
  (save-excursion (insert " "))
  (auto-complete))
Owner
m2ym commented Mar 24, 2013

I think this problem is fixed in 0864aab. Please check it out.

@m2ym m2ym closed this Mar 24, 2013

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/")))
(package-initialize)
(require 'auto-complete-config)
(ac-config-default)
@m2ym m2ym pushed a commit that referenced this issue Mar 30, 2013
Tomohiro Matsuyama Fix losing keymap at eob #207 c1aaba0
Owner
m2ym commented Mar 30, 2013

Fixed in c1aaba0. Thank you for a good reproducible code. That helped a lot!

@m2ym m2ym reopened this Mar 30, 2013
@m2ym m2ym closed this Mar 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment