diff options
| author | João Távora | 2018-06-17 12:41:24 +0100 |
|---|---|---|
| committer | João Távora | 2018-06-17 12:41:39 +0100 |
| commit | fa9679ca488a17b2b6b9f31299d69c190aa86642 (patch) | |
| tree | c162c43d33be81e401cb2bccd9a90e88ea5ba38b | |
| parent | 849631c1b7e9c5c4a90655208265de9db0854bb2 (diff) | |
| download | emacs-fa9679ca488a17b2b6b9f31299d69c190aa86642.tar.gz emacs-fa9679ca488a17b2b6b9f31299d69c190aa86642.zip | |
Minor Flymake docstring fixes
* lisp/progmodes/flymake.el (flymake-diagnostic-functions):
Clarify meaning of :region in docstring.
(flymake-start): Fix broken docstring.
| -rw-r--r-- | lisp/progmodes/flymake.el | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index eb0eebf672b..e8bb3355a03 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el | |||
| @@ -452,11 +452,11 @@ Currently, Flymake may provide these keyword-value pairs: | |||
| 452 | at all (i.e. it's not merely nil). | 452 | at all (i.e. it's not merely nil). |
| 453 | 453 | ||
| 454 | Each element is in the form (BEG END TEXT) where BEG and END | 454 | Each element is in the form (BEG END TEXT) where BEG and END |
| 455 | are buffer positions, and text is a string containing the text | 455 | are buffer positions, and TEXT is a string containing the text |
| 456 | contained between those positions (if any) after the change was | 456 | contained between those positions (if any) after the change was |
| 457 | performed. | 457 | performed. |
| 458 | 458 | ||
| 459 | * `:changes-start' and `:changes-end' the minimum and maximum | 459 | * `:changes-start' and `:changes-end', the minimum and maximum |
| 460 | buffer positions touched by the recent changes. These are only | 460 | buffer positions touched by the recent changes. These are only |
| 461 | provided if `:recent-changes' is also provided. | 461 | provided if `:recent-changes' is also provided. |
| 462 | 462 | ||
| @@ -470,8 +470,9 @@ asynchronous processes or other asynchronous mechanisms. | |||
| 470 | In any case, backend functions are expected to return quickly or | 470 | In any case, backend functions are expected to return quickly or |
| 471 | signal an error, in which case the backend is disabled. Flymake | 471 | signal an error, in which case the backend is disabled. Flymake |
| 472 | will not try disabled backends again for any future checks of | 472 | will not try disabled backends again for any future checks of |
| 473 | this buffer. Certain commands, like turning `flymake-mode' off | 473 | this buffer. To reset the list of disabled backends, turn |
| 474 | and on again, reset the list of disabled backends. | 474 | `flymake-mode' off and on again, or interactively call |
| 475 | `flymake-start' with a prefix argument. | ||
| 475 | 476 | ||
| 476 | If the function returns, Flymake considers the backend to be | 477 | If the function returns, Flymake considers the backend to be |
| 477 | \"running\". If it has not done so already, the backend is | 478 | \"running\". If it has not done so already, the backend is |
| @@ -482,8 +483,9 @@ pairs in the form (:REPORT-KEY VALUE :REPORT-KEY2 VALUE2...). | |||
| 482 | Currently accepted values for REPORT-ACTION are: | 483 | Currently accepted values for REPORT-ACTION are: |
| 483 | 484 | ||
| 484 | * A (possibly empty) list of diagnostic objects created with | 485 | * A (possibly empty) list of diagnostic objects created with |
| 485 | `flymake-make-diagnostic', causing Flymake to annotate the | 486 | `flymake-make-diagnostic', causing Flymake to delete all |
| 486 | buffer with this information. | 487 | previous diagnostic annotations in the buffer and create new |
| 488 | ones from this list. | ||
| 487 | 489 | ||
| 488 | A backend may call REPORT-FN repeatedly in this manner, but | 490 | A backend may call REPORT-FN repeatedly in this manner, but |
| 489 | only until Flymake considers that the most recently requested | 491 | only until Flymake considers that the most recently requested |
| @@ -506,8 +508,10 @@ Currently accepted REPORT-KEY arguments are: | |||
| 506 | consider the report even if it was somehow unexpected. | 508 | consider the report even if it was somehow unexpected. |
| 507 | 509 | ||
| 508 | * `:region': a cons (BEG . END) of buffer positions indicating | 510 | * `:region': a cons (BEG . END) of buffer positions indicating |
| 509 | that the report applies to that region and that previous | 511 | that the report applies to that region only. Specifically, |
| 510 | reports targeting other buffer regions are still valid.") | 512 | this means that Flymake will only delete diagnostic annotations |
| 513 | of past reports if they intersect the region by at least one | ||
| 514 | character.") | ||
| 511 | 515 | ||
| 512 | (put 'flymake-diagnostic-functions 'safe-local-variable #'null) | 516 | (put 'flymake-diagnostic-functions 'safe-local-variable #'null) |
| 513 | 517 | ||
| @@ -838,7 +842,7 @@ with a report function." | |||
| 838 | "Start a syntax check for the current buffer. | 842 | "Start a syntax check for the current buffer. |
| 839 | DEFERRED is a list of symbols designating conditions to wait for | 843 | DEFERRED is a list of symbols designating conditions to wait for |
| 840 | before actually starting the check. If it is nil (the list is | 844 | before actually starting the check. If it is nil (the list is |
| 841 | empty), start it immediately, else defer the check to when those | 845 | empty), start it immediately, else defer the check to when those |
| 842 | conditions are met. Currently recognized conditions are | 846 | conditions are met. Currently recognized conditions are |
| 843 | `post-command', for waiting until the current command is over, | 847 | `post-command', for waiting until the current command is over, |
| 844 | `on-display', for waiting until the buffer is actually displayed | 848 | `on-display', for waiting until the buffer is actually displayed |