unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#46233: 28.0.50; python-mode font-lock assignment issues
@ 2021-02-01 11:55 Михаил Панарин
  2021-02-01 13:01 ` Andrii Kolomoiets
  2022-06-14 13:43 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 6+ messages in thread
From: Михаил Панарин @ 2021-02-01 11:55 UTC (permalink / raw)
  To: 46233

[-- Attachment #1: Type: text/plain, Size: 789 bytes --]

emacs-version: "GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+
Version 3.24.24, cairo version 1.17.4)
 of 2021-01-22"

Sometimes assignments are not fontified or fontified incorrectly.
Steps to reproduce:
1. Create a python file with contents
> def foo(bar: int) -> str:
>     spam = bar
>     eggs = f'lkjahsd {spam}'
>     return eggs
>
>
> def foo2(bar: int):
>     spam = bar
>     eggs = f'lkjahsd {spam}'
>     return eggs
>
>
> def foo3(bar):
>     spam = bar
>     eggs = f'lkjahsd {spam}'
>     return eggs

2. Open the file with emacs -Q

You will see that variables `spam` and `bar` are highlighted differently
in all 3 cases.
`spam`:
  not highlighted at all in cases `foo` and `foo2`
`bar`:
  not highlighted correctly in cases `foo` and `foo3`

Best regards,
Mykhailo

[-- Attachment #2: Type: text/html, Size: 1041 bytes --]

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

* bug#46233: 28.0.50; python-mode font-lock assignment issues
  2021-02-01 11:55 bug#46233: 28.0.50; python-mode font-lock assignment issues Михаил Панарин
@ 2021-02-01 13:01 ` Andrii Kolomoiets
  2021-02-01 13:14   ` Михаил Панарин
  2022-06-14 13:43 ` Lars Ingebrigtsen
  1 sibling, 1 reply; 6+ messages in thread
From: Andrii Kolomoiets @ 2021-02-01 13:01 UTC (permalink / raw)
  To: Михаил Панарин
  Cc: 46233

Михаил Панарин <mykhailopanarin@gmail.com> writes:

> Sometimes assignments are not fontified or fontified incorrectly.

Is this the same bug as in Bug#45679?
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45679





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

* bug#46233: 28.0.50; python-mode font-lock assignment issues
  2021-02-01 13:01 ` Andrii Kolomoiets
@ 2021-02-01 13:14   ` Михаил Панарин
  2021-02-01 14:01     ` Михаил Панарин
  0 siblings, 1 reply; 6+ messages in thread
From: Михаил Панарин @ 2021-02-01 13:14 UTC (permalink / raw)
  To: Andrii Kolomoiets; +Cc: 46233

[-- Attachment #1: Type: text/plain, Size: 540 bytes --]

> Is this the same bug as in Bug#45679?

It certainly can be, yes.
Fixing one will probably fix the other. But I decided not to guess and file
this report as well, as the described case is a bit different

пн, 1 лют. 2021 о 15:01 Andrii Kolomoiets <andreyk.mad@gmail.com> пише:

> Михаил Панарин <mykhailopanarin@gmail.com> writes:
>
> > Sometimes assignments are not fontified or fontified incorrectly.
>
> Is this the same bug as in Bug#45679?
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45679
>

[-- Attachment #2: Type: text/html, Size: 1023 bytes --]

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

* bug#46233: 28.0.50; python-mode font-lock assignment issues
  2021-02-01 13:14   ` Михаил Панарин
@ 2021-02-01 14:01     ` Михаил Панарин
  2021-02-01 14:17       ` Михаил Панарин
  0 siblings, 1 reply; 6+ messages in thread
From: Михаил Панарин @ 2021-02-01 14:01 UTC (permalink / raw)
  Cc: 46233

[-- Attachment #1: Type: text/plain, Size: 205 bytes --]

> Is this the same bug as in Bug#45679?

It certainly can be, yes.
Fixing one will probably fix the other. But I decided not to guess and file
this report as well, as the described case is a bit different

[-- Attachment #2: Type: text/html, Size: 343 bytes --]

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

* bug#46233: 28.0.50; python-mode font-lock assignment issues
  2021-02-01 14:01     ` Михаил Панарин
@ 2021-02-01 14:17       ` Михаил Панарин
  0 siblings, 0 replies; 6+ messages in thread
From: Михаил Панарин @ 2021-02-01 14:17 UTC (permalink / raw)
  To: 46233

[-- Attachment #1: Type: text/plain, Size: 208 bytes --]

> Is this the same bug as in Bug#45679?

It certainly can be, yes.
Fixing one will probably fix the other. But I decided not to guess and file
this report as well, as the described case is a bit different

>

[-- Attachment #2: Type: text/html, Size: 504 bytes --]

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

* bug#46233: 28.0.50; python-mode font-lock assignment issues
  2021-02-01 11:55 bug#46233: 28.0.50; python-mode font-lock assignment issues Михаил Панарин
  2021-02-01 13:01 ` Andrii Kolomoiets
@ 2022-06-14 13:43 ` Lars Ingebrigtsen
  1 sibling, 0 replies; 6+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-14 13:43 UTC (permalink / raw)
  To: Михаил Панарин
  Cc: 46233

Михаил Панарин <mykhailopanarin@gmail.com> writes:

> 2. Open the file with emacs -Q
>
> You will see that variables `spam` and `bar` are highlighted differently
> in all 3 cases.
> `spam`:
>   not highlighted at all in cases `foo` and `foo2`
> `bar`:
>   not highlighted correctly in cases `foo` and `foo3`

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

I can reproduce this in Emacs 28, but not in Emacs 29, so it seems like
this has been fixed in the time since this was reported, and I'm
therefore closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2022-06-14 13:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-01 11:55 bug#46233: 28.0.50; python-mode font-lock assignment issues Михаил Панарин
2021-02-01 13:01 ` Andrii Kolomoiets
2021-02-01 13:14   ` Михаил Панарин
2021-02-01 14:01     ` Михаил Панарин
2021-02-01 14:17       ` Михаил Панарин
2022-06-14 13:43 ` Lars Ingebrigtsen

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