face of print

Bug #1298328 reported by Andreas Roehler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
Medium
Andreas Roehler

Bug Description

Am 24.03.2014 16:11, schrieb Barry Warsaw:>
> On Mar 21, 2014, at 06:11 PM, Andreas Röhler wrote:
>
>> Function "print" currently gets font-lock-keyword-face, which doesn't seem
>> correct. IMO it should get py-builtins-face, right?
>
> I guess this is dependent on whether you're editing Python 2 or Python 3
> code. I always bring up python-mode in Python 3 by default (most visibly by
> defaulting pyflakes to Python 3) so I do see some discrepancies when editing
> Python 2 code.
>
> Not sure how to handle this. I'd prefer "Python 3 mode" to be the default,
> and thus it probably makes more sense for print to be py-builtins-face. OTOH,
> it's a little jarring to me to see print in that face, but I guess no more
> jarring than training myself to wrap its arguments in parens.
>
> I really hate to add another config variable for this. Maybe print should be
> in its own face, defaulting to whatever makes sense for the Python 2 or 3
> version being edited?
>
> -Barry
>

Changed in python-mode:
importance: Undecided → Medium
assignee: nobody → Andreas Roehler (a-roehler)
milestone: none → 6.2.0
Changed in python-mode:
status: New → In Progress
Changed in python-mode:
status: In Progress → Fix Committed
Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.