alexmurray / flycheck-posframe

Show flycheck errors via posframe.el
60 stars 9 forks source link

Posframe does not show up when using flycheck-next-error #20

Closed fredmorcos closed 4 years ago

fredmorcos commented 4 years ago

When using flycheck-next-error (bound to M-n), flycheck-posframe doesn't show up, I have to move the cursor somewhere else then back on the error/warning area (without using flycheck-next-error or M-n) to get posframe to show up.

Here is a small config to reproduce it:

;;; init --- Emacs configuration -*- lexical-binding: t; -*-
;;; Commentary:
;;; Code:

;; flycheck
(eval-when-compile (defvar flycheck-mode-map))
(autoload 'flycheck-next-error     "flycheck")
(autoload 'flycheck-previous-error "flycheck")
(add-hook 'flycheck-mode-hook
 (lambda ()
  (define-key flycheck-mode-map (kbd "M-n") #'flycheck-next-error)
  (define-key flycheck-mode-map (kbd "M-p") #'flycheck-previous-error)))

(add-hook 'prog-mode-hook #'flycheck-mode)

;; flycheck-posframe
(add-hook 'flycheck-mode-hook #'flycheck-posframe-mode)

(provide 'init)
;;; init ends here
alexmurray commented 4 years ago

Thanks for reporting this issue - I have a fix in the works that should be available for testing soon.

fredmorcos commented 4 years ago

I cannot wait to untrain my muscle memory.

alexmurray commented 4 years ago

Ok please see d9f97b008d1d13e046a31492ba57fc0b161bc1e7 which I just pushed :)

fredmorcos commented 4 years ago

Ok please see d9f97b0 which I just pushed :)

Works great, thank you!

alexmurray commented 4 years ago

No worries - closing this issue :)