diff options
author | João Távora <joaotavora@gmail.com> | 2017-10-05 22:23:24 +0100 |
---|---|---|
committer | João Távora <joaotavora@gmail.com> | 2017-10-06 00:07:03 +0100 |
commit | 03eab7a05e663dcd5ea07b45e83be1f7fd3d7ade (patch) | |
tree | caad42c9b7d65737dae8985d1f019074eb173b16 | |
parent | db893ab863770ef3f89102d6837cd3eb021429ba (diff) | |
download | emacs-03eab7a05e663dcd5ea07b45e83be1f7fd3d7ade.tar.gz emacs-03eab7a05e663dcd5ea07b45e83be1f7fd3d7ade.tar.bz2 emacs-03eab7a05e663dcd5ea07b45e83be1f7fd3d7ade.zip |
Delete a Flymake obsolete alias that can't possibly work
The function `flymake-ler-make-ler' can't possibly work as an backward
compatible interface to existing extensinos (even purely hypothetical
ones, since none are known). This is because every diagnostic
considered by Flymake has to passed to a report-fn function.
* lisp/progmodes/flymake.el (flymake-ler-make-ler): Delete.
-rw-r--r-- | lisp/progmodes/flymake.el | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index acc0637ec35..f61face25bf 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el @@ -223,17 +223,6 @@ TYPE is a key to `flymake-diagnostic-types-alist' and TEXT is a description of the problem detected in this region." (flymake--diag-make :buffer buffer :beg beg :end end :type type :text text)) -(defun flymake-ler-make-ler (file line type text &optional full-file) - (let* ((file (or full-file file)) - (buf (find-buffer-visiting file))) - (unless buf (flymake-error "No buffer visiting %s" file)) - (pcase-let* ((`(,beg . ,end) - (with-current-buffer buf - (flymake-diag-region line nil)))) - (flymake-make-diagnostic buf beg end type text)))) - -(make-obsolete 'flymake-ler-make-ler 'flymake-make-diagnostic "26.1") - (cl-defun flymake--overlays (&key beg end filter compare key) "Get flymake-related overlays. If BEG is non-nil and END is nil, consider only `overlays-at' |