ace-popup-menu icon indicating copy to clipboard operation
ace-popup-menu copied to clipboard

Problems when using mouse in M-x customize

Open abo-abo opened this issue 6 years ago • 6 comments

When I mouse-click on e.g. the "State" button in a customize buffer, I get the error:

cond: No such candidate, (mouse-1 ...)

If I disable ace-popup-menu-mode, a GTK menu is displayed at the mouse location.

abo-abo avatar Oct 28 '17 18:10 abo-abo

I'll take a look at this soon, thanks for opening the issue!

mrkkrp avatar Oct 30 '17 15:10 mrkkrp

No problem. I'm used for opening a PR for the issues I report, but lately I'm drowning in my backlog.

Anyway, thanks for the package - it's super-useful with flyspell.

abo-abo avatar Oct 30 '17 15:10 abo-abo

Hmm, I'm getting "zero candidates" instead.

mrkkrp avatar Nov 01 '17 12:11 mrkkrp

It's possible to get "zero candidates" depending on which button you click.

Try customize-group org and click on "State" button for "Org Export Backends".

abo-abo avatar Nov 01 '17 12:11 abo-abo

Yeah, I can reproduce it now.

mrkkrp avatar Nov 01 '17 13:11 mrkkrp

In the *messages* buffer I get this:

avy-handler-default: No such candidate, (mouse-1 (#<window 288 on *Customize Group: Org*> 1337 (42 . 569) 35317506 nil 1337 (5 . 32) nil (0 . 5) (8 . 21)))

It looks like mouse click event does something inside avy--process. ace-popup-menu is a tiny wrapper around avy-menu these days, and here is the relevant code:

https://github.com/mrkkrp/avy-menu/blob/master/avy-menu.el#L92-L102

Do you (as the author of avy) know what is going on?

mrkkrp avatar Nov 01 '17 13:11 mrkkrp