]> git.eshelyaron.com Git - emacs.git/commitdiff
Delete a Flymake obsolete alias that can't possibly work
authorJoão Távora <joaotavora@gmail.com>
Thu, 5 Oct 2017 21:23:24 +0000 (22:23 +0100)
committerJoão Távora <joaotavora@gmail.com>
Thu, 5 Oct 2017 23:07:03 +0000 (00:07 +0100)
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.

lisp/progmodes/flymake.el

index acc0637ec350574ac916a74d91411f6649c4092c..f61face25bf9bccc1e7b2c278a6a8be2efaf5721 100644 (file)
@@ -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'