|
38 | 38 | ;; The main interactive entry point is the `flymake-mode' minor mode,
|
39 | 39 | ;; which periodically and automatically initiates checks as the user
|
40 | 40 | ;; is editing the buffer. The variables `flymake-no-changes-timeout',
|
41 |
| -;; `flymake-start-on-newline' and `flymake-start-on-flymake-mode' |
42 |
| -;; give finer control over the events triggering a check, as does the |
43 |
| -;; interactive command `flymake-start', which immediately starts a check. |
| 41 | +;; `flymake-start-on-flymake-mode' give finer control over the events |
| 42 | +;; triggering a check, as does the interactive command `flymake-start', |
| 43 | +;; which immediately starts a check. |
44 | 44 | ;;
|
45 | 45 | ;; Shortly after each check, a summary of collected diagnostics should
|
46 | 46 | ;; appear in the mode-line. If it doesn't, there might not be a
|
@@ -177,17 +177,13 @@ See `flymake-error-bitmap' and `flymake-warning-bitmap'."
|
177 | 177 | (const right-fringe)
|
178 | 178 | (const :tag "No fringe indicators" nil)))
|
179 | 179 |
|
180 |
| -(define-obsolete-variable-alias 'flymake-start-syntax-check-on-newline |
181 |
| - 'flymake-start-on-newline "27.1") |
182 |
| - |
183 |
| -(defcustom flymake-start-on-newline t |
184 |
| - "Start syntax check if newline char was added/removed from the buffer." |
185 |
| - :type 'boolean) |
| 180 | +(make-obsolete-variable 'flymake-start-syntax-check-on-newline |
| 181 | + "can check on newline in post-self-insert-hook" |
| 182 | + "27.1") |
186 | 183 |
|
187 | 184 | (defcustom flymake-no-changes-timeout 0.5
|
188 | 185 | "Time to wait after last change before automatically checking buffer.
|
189 |
| -If nil, never start checking buffer automatically like this. |
190 |
| -You may also want to disable `flymake-start-on-newline'." |
| 186 | +If nil, never start checking buffer automatically like this." |
191 | 187 | :type '(choice (number :tag "Timeout in seconds")
|
192 | 188 | (const :tag "No check on timeout" nil)))
|
193 | 189 |
|
@@ -947,9 +943,8 @@ results.
|
947 | 943 |
|
948 | 944 | Flymake performs these checks while the user is editing.
|
949 | 945 | The customization variables `flymake-start-on-flymake-mode',
|
950 |
| -`flymake-no-changes-timeout' and `flymake-start-on-newline' |
951 |
| -determine the exact circumstances whereupon Flymake decides |
952 |
| -to initiate a check of the buffer. |
| 946 | +`flymake-no-changes-timeout' determine the exact circumstances |
| 947 | +whereupon Flymake decides to initiate a check of the buffer. |
953 | 948 |
|
954 | 949 | The commands `flymake-goto-next-error' and
|
955 | 950 | `flymake-goto-prev-error' can be used to navigate among Flymake
|
@@ -1043,9 +1038,6 @@ Do it only if `flymake-no-changes-timeout' is non-nil."
|
1043 | 1038 | START and STOP and LEN are as in `after-change-functions'."
|
1044 | 1039 | (let((new-text (buffer-substring start stop)))
|
1045 | 1040 | (push (list start stop new-text) flymake--recent-changes)
|
1046 |
| - (when (and flymake-start-on-newline (equal new-text "\n")) |
1047 |
| - (flymake-log :debug "starting syntax check as new-line has been seen") |
1048 |
| - (flymake-start t)) |
1049 | 1041 | (flymake--schedule-timer-maybe)))
|
1050 | 1042 |
|
1051 | 1043 | (defun flymake-after-save-hook ()
|
|
0 commit comments