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

Closed
kaushalmodi opened this Issue Jul 22, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@kaushalmodi
Contributor

kaushalmodi commented Jul 22, 2015

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]

@abo-abo abo-abo closed this in adad288 Jul 22, 2015

@abo-abo

This comment has been minimized.

Show comment
Hide comment
@abo-abo

abo-abo Jul 22, 2015

Owner

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.

Owner

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