GNU bug report logs -
#33959
26.1.90; python.el font-lock buffer wreaks havoc when company is enabled
Previous Next
Reported by: Carlos Pita <carlosjosepita <at> gmail.com>
Date: Thu, 3 Jan 2019 02:10:02 UTC
Severity: normal
Tags: fixed, patch
Found in version 26.1.90
Fixed in version 27.1
Done: Noam Postavsky <npostavs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Carlos Pita <carlosjosepita <at> gmail.com> writes:
> Nevertheless I found the origin of the problem. Somehow when company
> is enabled in the shell buffer
> python-shell-font-lock-comint-output-filter-function is getting empty
> strings as output and then the ";; Otherwise just add a newline."
> clause is activated.
> 1. The first one (Avoid-spurious...) strictly fixes this issue by
> moving the not-empty condition to the top and doing everything else
> unless not-empty. Period. That works.
Hmm, I'm not sure if it's working here. My *Python* buffer looks like
this:
Python 3.7.0 (default, Sep 15 2018, 19:13:07)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.5.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: 1 + len('123') + 99 + len('aa')
In [13]: 1 + len('123') + 99 + len('aa')
Out[13]: 105
In [14]: 1 + len('123') + 99 + len('aa')
In [14]: 1 + len('123') + 99 + len('aa')
Out[14]: 105
In [15]: 1 + len('123') + 99 + len('aa')
In [21]: 1 + len('123') + 99 + len('aa')
Out[21]: 105
In [22]:
And my " *Python-font-lock*" looks like this:
1 + len('123') + 99 + len('aa')
1 + len(
1 + len('123'
1 + len('123') + 99 + len('aa')
The behaviour seems rather inconsistent. I think to solve this properly
we need some deterministic tests which reproduce the problem.
This bug report was last modified 5 years and 272 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.