flycheck/flycheck — pull request #494 by tiborsimko (2014-09-24 10:30:06+00:00)
Title: flycheck-list-errors: keep buffer input focus

### Problem

After pressing `C-c ! l` (=`flycheck-list-errors`), the input focus is currently switched back to the original source code window. In my workflow, the main motivation behind `C-c ! l` is to be able to see the global picture of various findings and to be able to quickly jump around to even distant errors easily. Keeping input focus in the original source code window goes counter this use case.

### Proposal

This PR proposes to alter current behaviour in order to keep the focus in the `*Flycheck errors*` buffer, so that users could immediately navigate in the findings right after pressing `C-c ! l`.

This behaviour would seem more consistent with other usual goodies such as `C-x v g` (=`vc-annotate`), or various `magit` operations, that usually switch input focus to the new window. It would also ressemble to what `helm-flycheck` does.

### Note

If you don't like alterting default behaviour in this hard way, what about creating new custom settings that people could tweak? (say `flycheck-list-errors-keep-input-focus`)