Discussion:
Emacs 26.1 RC1 -- flymake-err-info is no longer available
(too old to reply)
Da Zhang
2018-04-25 18:31:31 UTC
Permalink
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<pre>Hello --

I am a long term Emacs user and I use flymake together with flymake-cursor on a daily basis.

Starting Emacs 26.1, I noticed that flyamke was redesigned and no longer has the var flymake-err-info that contains the error info reported by the backend syntax checker.

This makes flymake-cursor and code like the following not work:

(defun elpy-flymake-error-at-point ()
"Return the flymake error at point, or nil if there is none."
(when (boundp 'flymake-err-info)
(let* ((lineno (line-number-at-pos))
(err-info (car (flymake-find-err-info flymake-err-info
lineno))))
(when err-info
(mapconcat #'flymake-ler-text
err-info
", ")))))

I believe this is a potential issue and wonder if someone could direct me to any alternatives to flymake-err-info in the newly designed flyamke.</pre>
<div class="moz-forward-container">Thanks for your attention. <br>
<br>
Dave<br>
<br>
-------- Forwarded Message --------
<table class="moz-email-headers-table" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">Subject:
</th>
<td>Re: Emacs 26.1 RC1 -- flymake-err-info is no longer
available</td> </tr> <tr> <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Date: </th> <td>Wed, 25 Apr 2018 20:59:15 +0300</td> </tr> <tr> <th nowrap="nowrap" valign="BASELINE" align="RIGHT">From: </th> <td>Eli Zaretskii <a class="moz-txt-link-rfc2396E" href="mailto:***@gnu.org">&lt;***@gnu.org&gt;</a></td> </tr> <tr> <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Reply-To: </th> <td>Eli Zaretskii <a class="moz-txt-link-rfc2396E" href="mailto:***@gnu.org">&lt;***@gnu.org&gt;</a></td> </tr> <tr> <th nowrap="nowrap" valign="BASELINE" align="RIGHT">To: </th> <td>Da Zhang <a class="moz-txt-link-rfc2396E" href="mailto:***@gmail.com">&lt;***@gmail.com&gt;</a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>From: Da Zhang &lt;<a class="moz-txt-link-abbreviated" href="mailto:***@gmail.comDate">***@gmail.comDate</a>: Wed, 25 Apr 2018 13:26:14 -0400

I am a long term Emacs user and I use flymake together with flymake-cursor a lot.

Starting Emacs 26.1, I noticed that flyamke no longer has the var flymake-err-info that contains the error info
reported by the backend syntax checker.

This makes flymake-cursor and code like the following not work:

(defun elpy-flymake-error-at-point ()
"Return the flymake error at point, or nil if there is none."
(when (boundp 'flymake-err-info)
(let* ((lineno (line-number-at-pos))
(err-info (car (flymake-find-err-info flymake-err-info
lineno))))
(when err-info
(mapconcat #'flymake-ler-text
err-info
", ")))))

I believe this is a potential issue and wonder if you could direct me to any alternatives to flymake-err-info in the
newly written flyamke.

Please ask this question on emacs-devel. Flymake was redesigned, and
I hope someone who knows more than I do about Flymake will be able to
help you find the replacement for flymake-err-info.
</pre>
</div>
</body>
</html>
Stefan Monnier
2018-04-26 03:25:57 UTC
Permalink
Post by Da Zhang
Hello --
I am a long term Emacs user and I use flymake together with flymake-cursor on a daily basis.
Starting Emacs 26.1, I noticed that flyamke was redesigned and no longer has the var flymake-err-info that contains the error info reported by the backend syntax checker.
Could you please make a bug report for that?


Stefan

Loading...