Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window focus issue when using counsel-M-x #176

kaushalmodi opened this issue Jul 22, 2015 · 1 comment

Window focus issue when using counsel-M-x #176

kaushalmodi opened this issue Jul 22, 2015 · 1 comment


Copy link

I recently noticed that I get window focus issue only when using counsel-M-x, not when using smex or execute-extended-command.

Here's an example:

If I do M-x counsel-M-x calc RET, the Calculator buffer opens but then the focus switches back to the window from where I executed that M-x counsel-M-x.

To test it out, do the below binding:

(global-set-key (kbd "C-c :") #'counsel-M-x)

and then do C-c : calc RET.

This issue does not occur when I do M-x smex calc RET or M-x execute-extended-command calc RET.

[my counsel setup]

Copy link

abo-abo commented Jul 22, 2015

Thanks, it's a very strange bug. I don't quite understand it: a combination of with-selected-window and execute-extended-command leads to failure. I'm not sure it should.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

2 participants