py-backward-into-nomenclature mishandles all-caps names

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

Bug Description

given:

return SOME_CONSTANT + blah

py-backward-into-nomenclature stops at every letter in the all-caps constant. That isn't very useful, it should stop only at the underscore. py-forward-into-nomenclature does this correctly.

Changed in python-mode:
milestone: none → 6.0.5
assignee: nobody → Andreas Roehler (a-roehler)
importance: Undecided → Medium
Revision history for this message
Andreas Roehler (a-roehler) wrote :

ooh, what the United Nations will rule out in that case? :)

Changed in python-mode:
status: New → Confirmed
Revision history for this message
Andreas Roehler (a-roehler) wrote :

Hi Georg,

please re-open, should anything being left

cheers,

Andreas

Changed in python-mode:
status: Confirmed → Fix Committed
Revision history for this message
Georg Brandl (gbrandl) wrote :

There seems to be: going backward in CamelCase words now stops *after* the capital, not *on*

e.g. for

except ValueError:

going backwards from the colon, point stops at "r" and "a" (and then again at V).

Changed in python-mode:
status: Fix Committed → In Progress
Revision history for this message
Andreas Roehler (a-roehler) wrote :

can you try again?

and re-open - same play

thanks

Changed in python-mode:
status: In Progress → Fix Committed
Revision history for this message
Georg Brandl (gbrandl) wrote :

Seems to work charmingly now, thanks!

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.