elpy icon indicating copy to clipboard operation
elpy copied to clipboard

elpy-multiedit-python-symbol-at-point continues to edit symbol resulting in unexpected edits

Open cammil opened this issue 8 years ago • 2 comments

After calling elpy-multiedit-python-symbol-at-point it appears that, the usages of that symbol may continue to edit long after I would expect them not to.

For example, after editing, and then navigating elsewhere (off the symbol) does not cancel the edit. It seems that C-g also does not cancel the edit. The result is that any later editing of the text of the symbol continues to affect other uses. This is very confusing and has caused unexpected changes to my code.

I do not know how to cancel the multiedit except for perhaps calling it again.

Perhaps I am not cancelling the active multiedit, but if so, it is not clear from the documentation how one should do that. Perhaps there is something else I should know, but that too is not evident from the documentation.

Not sure if this is a bug, documentation issue, or my misunderstanding!

cammil avatar Mar 25 '17 18:03 cammil

I do not know how to cancel the multiedit except for perhaps calling it again.

Yes, multiedit remains active (and should highlight all affected locations) until you call the command again to disable these regions. Does that solve the confusion?

jorgenschaefer avatar Apr 01 '17 14:04 jorgenschaefer

call the command again to disable these regions.

That is undocumented behavior.

andravin avatar Dec 02 '21 20:12 andravin