(completion-at-point) brings up menu, but I can't do any with it #381
Replies: 4 comments 7 replies
-
Happens on Linux too. This does not happen if the popup appears automatically due to |
Beta Was this translation helpful? Give feedback.
-
Hi, I've seen such "useless popups" before, but not for a long time. Iirc these were caused by some problems with input/window focus of the child frame, but these issues have been fixed. I cannot reproduce this on my current installation with emacs -Q (Emacs 29.1 X11/Lucid). I enter and evaluate the following in the scratch buffer and Corfu works as expected: (package-initialize)
(global-corfu-mode)
(def<M-TAB> I cannot test on Windows but your report is also the first one about problems there. Please try to create a minimal recipe ideally under Linux. Which Emacs version, window manager (kde, gnome, i3, xmonad, ...) and window toolkit do you use (X11+gtk, X11+lucid, X11+notoolkit, X11+pgtk, Wayland+pgtk, ...)? It could be that this issue occurs only under certain special configurations with certain window managers.´ |
Beta Was this translation helpful? Give feedback.
-
I used this config to reproduce the problem: (use-package corfu
:ensure t
:init
(global-corfu-mode))
(use-package cape
:ensure t
:init
(add-to-list 'completion-at-point-functions #'cape-dabbrev)
(add-to-list 'completion-at-point-functions #'cape-file))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages '(corfu)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
) Version and system details
This problem only occurs if completion-at-point is called interactively ( |
Beta Was this translation helpful? Give feedback.
-
OMG! thank you so much to both of you !! kartikynwa, thank you so much for explaining it and helping to get to the bottom of the issue ! and, minad, thanks for your great packages ! y'all have made my day !! |
Beta Was this translation helpful? Give feedback.
-
when I call (completion-at-point) interactively, I get a menu, but I can't do anything with it.
the menu is stuck and doesn't do anything. the same thing happened with my real init (the one in the pic is super minimal (just for testing. the only package I have on it is corfu)). I want to call
completion-at-point
in a function, but I can't get it to work.I'm using windows 10. I have not tested it on linux yet. have you seen something like this before ?
I tested it on wsl, and the result is the same:
completion-at-point
gives me a useless menuBeta Was this translation helpful? Give feedback.
All reactions