[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/flymake-refactor 74a4ad3: Fix docstring
From: |
João Távora |
Subject: |
[Emacs-diffs] scratch/flymake-refactor 74a4ad3: Fix docstring |
Date: |
Thu, 17 Aug 2017 10:40:04 -0400 (EDT) |
branch: scratch/flymake-refactor
commit 74a4ad3e4ad3cb7ad1bd52eb9d3e8b1436816fc0
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
Fix docstring
* lisp/progmodes/flymake-ui.el (flymake-backends): Fix docstring.
---
lisp/progmodes/flymake-ui.el | 22 +++++++++-------------
1 file changed, 9 insertions(+), 13 deletions(-)
diff --git a/lisp/progmodes/flymake-ui.el b/lisp/progmodes/flymake-ui.el
index 3fb1eca..bae9759 100644
--- a/lisp/progmodes/flymake-ui.el
+++ b/lisp/progmodes/flymake-ui.el
@@ -111,13 +111,11 @@ See `flymake-error-bitmap' and `flymake-warning-bitmap'."
(defcustom flymake-backends '()
"Ordered list of backends providing syntax check information for a buffer.
Value is an alist of conses (PREDICATE . CHECKER). Both PREDICATE
-and CHECKER are functions called with a single argument, the
-buffer in which `flymake-mode' was enabled. PREDICATE is expected
-to (quickly) return t or nil if the buffer can be syntax checked
-by CHECKER, which in can performs more morose operations,
-possibly asynchronously."
- :group 'flymake
- :type 'alist)
+and CHECKER are functions called without arguments and within the
+the buffer in which `flymake-mode' was enabled. PREDICATE is
+expected to (quickly) return t or nil if the buffer can be syntax
+checked by CHECKER, which can then performs more morose operations,
+possibly asynchronously." :group 'flymake :type 'alist)
(defvar-local flymake-timer nil
"Timer for starting syntax check.")
@@ -457,12 +455,10 @@ For the format of LINE-ERR-INFO, see
`flymake-ler-make-ler'."
"The currently active backend selected by `flymake-mode'")
(defun flymake--can-syntax-check-buffer (buffer)
- (let ((all flymake-backends)
- (candidate))
- (catch 'done
- (while (setq candidate (pop all))
- (when (with-current-buffer buffer (funcall (car candidate)))
- (throw 'done (cdr candidate)))))))
+ (catch 'done
+ (dolist (candidate flymake-backends)
+ (when (with-current-buffer buffer (funcall (car candidate)))
+ (throw 'done (cdr candidate))))))
(defun flymake--start-syntax-check ()
(funcall flymake--backend))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] scratch/flymake-refactor 74a4ad3: Fix docstring,
João Távora <=