After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 659340 - Renaming variables and functions
Renaming variables and functions
Status: RESOLVED WONTFIX
Product: reinteract
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: reinteract-maint
reinteract-maint
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2011-09-17 19:02 UTC by Owen Taylor
Modified: 2018-07-10 22:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Owen Taylor 2011-09-17 19:02:06 UTC
Originally filed as http://www.reinteract.org/trac/ticket/43

It should be pretty simple to add a useful name <Right Click>/Rename... if someone wants to rename a NAME token (not following a DOT token), you just scan through the buffer and replace all other copies of the NAME token not following a DOT token.

Bonus points:

 * If the first usage of the token is in an import statement, rewrite 'import <oldname>' to 'import <oldname> as <newname>' 

 * Try to detect usage of the name as local variables and not rewrite those. 

 * If the rename would cause a conflict with other NAME tokens in the buffer not followed a DOT token, warn but allow the user to continue. 

Misrenaming is not a disaster, the user can always undo and do it manually, so even a rough version is better than nothing.
Comment 1 André Klapper 2018-07-10 22:05:37 UTC
Reinteract is not under active development anymore and had its last code changes
in early 2012: http://git.fishsoup.net/cgit/reinteract/log/

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Please feel free to reopen this ticket (or rather transfer the project
to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the
responsibility for active development again.