unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#58814: Python.el major mode syntax highlighting not working
@ 2022-10-27  6:18 Stan Staykov
  2022-11-13 14:17 ` Laurence Warne
  0 siblings, 1 reply; 6+ messages in thread
From: Stan Staykov @ 2022-10-27  6:18 UTC (permalink / raw)
  To: 58814


[-- Attachment #1.1: Type: text/plain, Size: 807 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1409 bytes --]

[-- Attachment #2: Screenshot from 2022-10-26 17-28-42.png --]
[-- Type: image/png, Size: 81283 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#58814: Python.el major mode syntax highlighting not working
  2022-10-27  6:18 bug#58814: Python.el major mode syntax highlighting not working Stan Staykov
@ 2022-11-13 14:17 ` Laurence Warne
  2022-11-13 15:23   ` Stan Staykov
  0 siblings, 1 reply; 6+ messages in thread
From: Laurence Warne @ 2022-11-13 14:17 UTC (permalink / raw)
  To: 58814, id


[-- Attachment #1.1: Type: text/plain, Size: 233 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 389 bytes --]

[-- Attachment #2: python-emacs29.png --]
[-- Type: image/png, Size: 133574 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#58814: Python.el major mode syntax highlighting not working
  2022-11-13 14:17 ` Laurence Warne
@ 2022-11-13 15:23   ` Stan Staykov
  2022-11-15  4:01     ` Stefan Kangas
  0 siblings, 1 reply; 6+ messages in thread
From: Stan Staykov @ 2022-11-13 15:23 UTC (permalink / raw)
  To: Laurence Warne, 58814

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





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#58814: Python.el major mode syntax highlighting not working
  2022-11-13 15:23   ` Stan Staykov
@ 2022-11-15  4:01     ` Stefan Kangas
  2022-11-21 15:17       ` Stan Staykov
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Kangas @ 2022-11-15  4:01 UTC (permalink / raw)
  To: Stan Staykov, Laurence Warne, 58814

tags 58814 + moreinfo
thanks

Stan Staykov <id@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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#58814: Python.el major mode syntax highlighting not working
  2022-11-15  4:01     ` Stefan Kangas
@ 2022-11-21 15:17       ` Stan Staykov
  2022-11-24 19:51         ` Stefan Kangas
  0 siblings, 1 reply; 6+ messages in thread
From: Stan Staykov @ 2022-11-21 15:17 UTC (permalink / raw)
  To: Stefan Kangas, Laurence Warne, 58814

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@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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#58814: Python.el major mode syntax highlighting not working
  2022-11-21 15:17       ` Stan Staykov
@ 2022-11-24 19:51         ` Stefan Kangas
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Kangas @ 2022-11-24 19:51 UTC (permalink / raw)
  To: Stan Staykov; +Cc: Laurence Warne, 58814-done

Stan Staykov <id@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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-11-24 19:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-27  6:18 bug#58814: Python.el major mode syntax highlighting not working Stan Staykov
2022-11-13 14:17 ` Laurence Warne
2022-11-13 15:23   ` Stan Staykov
2022-11-15  4:01     ` Stefan Kangas
2022-11-21 15:17       ` Stan Staykov
2022-11-24 19:51         ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).