diff options
author | João Távora <joaotavora@gmail.com> | 2023-03-02 22:55:31 +0000 |
---|---|---|
committer | João Távora <joaotavora@gmail.com> | 2023-04-13 17:42:37 +0100 |
commit | d45f450cff757ed520a7ee36c632ab62387c7bc9 (patch) | |
tree | 7ce124c795aa77a80780c741de48ce36855ffbe5 /etc | |
parent | d590af749f18ea3b82e46bb498568c77a2640d29 (diff) | |
download | emacs-d45f450cff757ed520a7ee36c632ab62387c7bc9.tar.gz |
Flymake: add new flymake-show-diagnostics-at-end-of-line option
Some editors have this. Depending on your preference, this can either
be wildly distracting and easily confused with actual code, or a
significant early aid that relieves you from moving around or reaching
for the mouse to consult an error message. To be safe, hide this
behind a customization variable and keep it disabled.
Personally, I find it less obstrusive and more helpful than expected.
* lisp/progmodes/flymake.el (flymake--delete-overlay): New helper.
(flymake--highlight-line): Handle flymake-show-diagnostics-at-end-of-line.
(flymake--clear-foreign-diags): Use flymake--delete-overlay.
(flymake--publish-diagnostics): Use flymake--delete-overlay.
(flymake-mode): Use flymake--delete-overlay.
(flymake-error-echo)
(flymake-warning-echo, flymake-note-echo): New faces.
(flymake-show-diagnostics-at-end-of-line): New option.
(Version): Bump to 1.3.4
* doc/misc/flymake.texi:
(Finding diagnostics): Mention flymake-show-diagnostics-at-end-of-line.
(Customizable variables): Mention
flymake-show-diagnostics-at-end-of-line and a few more relevant faces.
* etc/NEWS (Flymake): Mention flymake-show-diagnostics-at-end-of-line.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/NEWS | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -259,13 +259,21 @@ following to your init file: #'shortdoc-help-fns-examples-function) ** Package - --- *** New user option 'package-vc-register-as-project'. When non-nil, it will automatically register every package as a project, that you can quickly select using 'project-switch-project' ('C-x p p'). +** Flymake ++++ +*** New user option 'flymake-show-diagnostics-at-end-of-line'. +When non-nil, Flymake shows summarized descriptions of diagnostics at +the end of the line. Depending on your preference, this can either be +distracting and easily confused with actual code, or a significant +early aid that relieves you from moving the buffer or reaching for the +mouse to consult an error message. + * New Modes and Packages in Emacs 30.1 |