summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/cursor-sensor.el
diff options
context:
space:
mode:
authorJoão Távora <joaotavora@gmail.com>2017-09-23 18:15:40 +0100
committerJoão Távora <joaotavora@gmail.com>2017-10-03 13:52:24 +0100
commitb2f8b8b47ad6fe1550a183c5e96896ff587cd5f0 (patch)
tree2e25b6982afc5c8b1d7585a2116fd1c5f7df0df7 /lisp/emacs-lisp/cursor-sensor.el
parentb0bb181f9359aff07b09b919b8af397ef39d6784 (diff)
downloademacs-b2f8b8b47ad6fe1550a183c5e96896ff587cd5f0.tar.gz
emacs-b2f8b8b47ad6fe1550a183c5e96896ff587cd5f0.tar.bz2
emacs-b2f8b8b47ad6fe1550a183c5e96896ff587cd5f0.zip
More Flymake cleanup before advancing to backend redesign
Diagnostics are reported for buffers, not necessarily files. It’s the backend’s responsibility to compute the buffer where the diagnostic is applicable. For now, this has to match the buffer where flymake-mode is active and which is at the origin of the backend call. flymake.el knows nothing about line/column diagnostics (except for backward-compatible flymake-ler-make-ler, which must yet be tested). It’s also the backend’s reponsibility to compute a BEG and END positions for the diagnostic in the relevant buffer. * lisp/progmodes/flymake-proc.el (flymake-proc--diagnostics-for-pattern): Convert LINE/COL to region here. Check file buffer here. (flymake-proc--process-sentinel): Don’t kill output buffer if high enough log level. * lisp/progmodes/flymake.el (flymake-diag-region): Make this a utility function. (flymake--highlight-line): Diagnostic has region now. (flymake-popup-current-error-menu): Don’t add file and line numbers to already this silly menu. (flymake--fix-line-numbers): Remove. (flymake-report): No need to fix diagnostics here.
Diffstat (limited to 'lisp/emacs-lisp/cursor-sensor.el')
0 files changed, 0 insertions, 0 deletions