|
From: | Dmitry Gutov |
Subject: | bug#28051: Multiline Statement Indentation Error in Inferior Python Mode |
Date: | Sun, 27 Aug 2017 19:42:43 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Thunderbird/56.0 |
On 8/22/17 4:36 AM, npostavs@users.sourceforge.net wrote:
Hmm, when using company-mode the error message is sent repeatedly, which seems pretty annoying. But silently returning no matches could be confusing. Dimitri, any advice?
Use a python-specific global variable and only show the warning one time? Or at most once in XX seconds?
There's no existing diagnostic UI for this in company-mode. And the idea for completion-at-point-functions is to not signal errors during normal operation (an error means there's a bug to be fixed, and bugging the user in that case seems okay).
In this particular case, though, I'd simply return no completions. We do the same in inf-ruby anyway (no completion on continuation lines). Add a warning message once a session, if you prefer.
[Prev in Thread] | Current Thread | [Next in Thread] |