From: João Távora Date: Thu, 5 Oct 2017 21:23:24 +0000 (+0100) Subject: Delete a Flymake obsolete alias that can't possibly work X-Git-Tag: emacs-26.0.90~45^2~18 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=03eab7a05e663dcd5ea07b45e83be1f7fd3d7ade;p=emacs.git 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. --- 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'