]> git.eshelyaron.com Git - emacs.git/commit
Simplify Flymake diagnostics buffer UX
authorMark Oteiza <mvoteiza@udel.edu>
Sun, 8 Oct 2017 21:42:31 +0000 (22:42 +0100)
committerJoão Távora <joaotavora@gmail.com>
Tue, 10 Oct 2017 16:20:01 +0000 (17:20 +0100)
commit0e83f5f279b1b2c42dc214c512c0fa0a9b27af35
tree150479bc87fb7ffc832d8faa57be95085d10d40e
parentcf4a15b9b6be8201b53fff063a378b41ec44ede9
Simplify Flymake diagnostics buffer UX

Don't create text-buttons unnecessarily, just bind RET and SPC in the
diagnostics buffer to a command that figures out which diagnostic it
was invoked on.

* lisp/progmodes/flymake.el
(flymake--diagnostics-buffer-mode-keymap): Renamed from
flymake--diagnostics-buffer-button-keymap.
(flymake-show-diagnostic-at-point): Don't take a button.
(flymake-goto-diagnostic-at-point): Don't pass button to
flymake-show-diagnostic-at-point.
(flymake--diagnostics-buffer-entries): Simplify.
lisp/progmodes/flymake.el