GNU bug report logs - #58814
Python.el major mode syntax highlighting not working

Previous Next

Package: emacs;

Reported by: Stan Staykov <id <at> stanstaykov.com>

Date: Thu, 27 Oct 2022 08:32:02 UTC

Severity: normal

Tags: moreinfo

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 58814 in the body.
You can then email your comments to 58814 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#58814; Package emacs. (Thu, 27 Oct 2022 08:32:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stan Staykov <id <at> stanstaykov.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 27 Oct 2022 08:32:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Stan Staykov <id <at> stanstaykov.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Python.el major mode syntax highlighting not working
Date: Thu, 27 Oct 2022 09:18:13 +0300
[Message part 1 (text/plain, inline)]
Using emacs 28.2 on Arch Linux.
Syntax highlighting using the default python-mode (python.el) is 
inconsistent.
Multiple users in the #emacs channel who all tested this with the -Q 
option all report the same results.

Please see attached image for the first example.

Notice how the variable 'money' for example is randomly highlighted.

Full code here: Paste.rs <https://paste.rs/K2r.py>

For the above code, when opened in emacs -Q if you go to the last 
instance of 'money' where it says 'money += bet * 2' and press RETURN 
after the end of that line, suddenly it gets highlighted, and then if 
you go to the previous instance of that and do the same, the 
highlighting of the one below disappears.

The same was confirmed by multiple users from the #emacs channel.

Please advise.

Best regards,
Stan
[Message part 2 (text/html, inline)]
[Screenshot from 2022-10-26 17-28-42.png (image/png, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58814; Package emacs. (Sun, 13 Nov 2022 14:18:01 GMT) Full text and rfc822 format available.

Message #8 received at 58814 <at> debbugs.gnu.org (full text, mbox):

From: Laurence Warne <laurencewarne <at> gmail.com>
To: 58814 <at> debbugs.gnu.org, id <at> stanstaykov.com
Subject: Python.el major mode syntax highlighting not working
Date: Sun, 13 Nov 2022 14:17:13 +0000
[Message part 1 (text/plain, inline)]
Hi,

I think this could be fixed already on master (possibly by the patch in
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51362).  I've attached an
image of what your snippet looks like on Emacs built ~1 hour ago.

Thanks, Laurence
[Message part 2 (text/html, inline)]
[python-emacs29.png (image/png, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58814; Package emacs. (Mon, 14 Nov 2022 09:13:03 GMT) Full text and rfc822 format available.

Message #11 received at 58814 <at> debbugs.gnu.org (full text, mbox):

From: Stan Staykov <id <at> stanstaykov.com>
To: Laurence Warne <laurencewarne <at> gmail.com>, 58814 <at> debbugs.gnu.org
Subject: Re: Python.el major mode syntax highlighting not working
Date: Sun, 13 Nov 2022 17:23:15 +0200
Good to know. Thanks for the update.

On 11/13/22 16:17, Laurence Warne wrote:
> Hi,
>
> I think this could be fixed already on master (possibly by the patch 
> in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51362). I've attached 
> an image of what your snippet looks like on Emacs built ~1 hour ago.
>
> Thanks, Laurence




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58814; Package emacs. (Tue, 15 Nov 2022 04:02:01 GMT) Full text and rfc822 format available.

Message #14 received at 58814 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Stan Staykov <id <at> stanstaykov.com>, Laurence Warne <laurencewarne <at> gmail.com>,
 58814 <at> debbugs.gnu.org
Subject: Re: bug#58814: Python.el major mode syntax highlighting not working
Date: Mon, 14 Nov 2022 20:01:24 -0800
tags 58814 + moreinfo
thanks

Stan Staykov <id <at> stanstaykov.com> writes:

> Good to know. Thanks for the update.
>
> On 11/13/22 16:17, Laurence Warne wrote:
>> Hi,
>>
>> I think this could be fixed already on master (possibly by the patch
>> in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51362). I've attached
>> an image of what your snippet looks like on Emacs built ~1 hour ago.
>>
>> Thanks, Laurence

Does the above image match your expectations of how this should be
fontified?  If so, I think this bug should be closed.




Added tag(s) moreinfo. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 15 Nov 2022 04:02:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58814; Package emacs. (Tue, 22 Nov 2022 01:29:11 GMT) Full text and rfc822 format available.

Message #19 received at 58814 <at> debbugs.gnu.org (full text, mbox):

From: Stan Staykov <id <at> stanstaykov.com>
To: Stefan Kangas <stefankangas <at> gmail.com>,
 Laurence Warne <laurencewarne <at> gmail.com>, 58814 <at> debbugs.gnu.org
Subject: Re: bug#58814: Python.el major mode syntax highlighting not working
Date: Mon, 21 Nov 2022 17:17:00 +0200
Hello,
Sorry for the late reply.
Yes that seems fine.
Alternatively you can leave variables completely unstyled.

Cheers,
Stan

On 11/15/22 06:01, Stefan Kangas wrote:
> tags 58814 + moreinfo
> thanks
>
> Stan Staykov <id <at> stanstaykov.com> writes:
>
>> Good to know. Thanks for the update.
>>
>> On 11/13/22 16:17, Laurence Warne wrote:
>>> Hi,
>>>
>>> I think this could be fixed already on master (possibly by the patch
>>> in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51362). I've attached
>>> an image of what your snippet looks like on Emacs built ~1 hour ago.
>>>
>>> Thanks, Laurence
> Does the above image match your expectations of how this should be
> fontified?  If so, I think this bug should be closed.




Reply sent to Stefan Kangas <stefankangas <at> gmail.com>:
You have taken responsibility. (Thu, 24 Nov 2022 19:57:02 GMT) Full text and rfc822 format available.

Notification sent to Stan Staykov <id <at> stanstaykov.com>:
bug acknowledged by developer. (Thu, 24 Nov 2022 19:57:02 GMT) Full text and rfc822 format available.

Message #24 received at 58814-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Stan Staykov <id <at> stanstaykov.com>
Cc: Laurence Warne <laurencewarne <at> gmail.com>, 58814-done <at> debbugs.gnu.org
Subject: Re: bug#58814: Python.el major mode syntax highlighting not working
Date: Thu, 24 Nov 2022 11:51:03 -0800
Stan Staykov <id <at> stanstaykov.com> writes:

> Hello,
> Sorry for the late reply.
> Yes that seems fine.
> Alternatively you can leave variables completely unstyled.

Thanks, I'm therefore closing this bug report.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 23 Dec 2022 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 200 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.