aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Távora2018-06-17 12:41:24 +0100
committerJoão Távora2018-06-17 12:41:39 +0100
commitfa9679ca488a17b2b6b9f31299d69c190aa86642 (patch)
treec162c43d33be81e401cb2bccd9a90e88ea5ba38b
parent849631c1b7e9c5c4a90655208265de9db0854bb2 (diff)
downloademacs-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.el22
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.
470In any case, backend functions are expected to return quickly or 470In any case, backend functions are expected to return quickly or
471signal an error, in which case the backend is disabled. Flymake 471signal an error, in which case the backend is disabled. Flymake
472will not try disabled backends again for any future checks of 472will not try disabled backends again for any future checks of
473this buffer. Certain commands, like turning `flymake-mode' off 473this buffer. To reset the list of disabled backends, turn
474and 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
476If the function returns, Flymake considers the backend to be 477If 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...).
482Currently accepted values for REPORT-ACTION are: 483Currently 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.
839DEFERRED is a list of symbols designating conditions to wait for 843DEFERRED is a list of symbols designating conditions to wait for
840before actually starting the check. If it is nil (the list is 844before actually starting the check. If it is nil (the list is
841 empty), start it immediately, else defer the check to when those 845empty), start it immediately, else defer the check to when those
842conditions are met. Currently recognized conditions are 846conditions 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