[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 03eab7a 1/2: Delete a Flymake obsolete alias that
From: |
João Távora |
Subject: |
[Emacs-diffs] emacs-26 03eab7a 1/2: Delete a Flymake obsolete alias that can't possibly work |
Date: |
Thu, 5 Oct 2017 19:09:23 -0400 (EDT) |
branch: emacs-26
commit 03eab7a05e663dcd5ea07b45e83be1f7fd3d7ade
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
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.
---
lisp/progmodes/flymake.el | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index acc0637..f61face 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'