Skip to main content
edited title
Link
Omar
  • 4.9k
  • 1
  • 19
  • 33

Why does multiple-cursors use the same char for all cursors with `iyiy-go-to-char`char, but not with `zapzap-up-to-char`char?

added 6 characters in body
Source Link
Omar
  • 4.9k
  • 1
  • 19
  • 33

Both iy-go-to-char and zap-up-to-char take a prefix argument and a character argument prompted for in the minibuffer. Both functions seems to implement this by using (interactive "p\ncPrompt string: "). But they behave very differently in multiple-cursors-mode: iy-go-to-char only prompts once for the character and uses that same one for every cursor; zap-up-to-char prompts for a character for each cursor.

I'd like to know why multiple-cursors treats them differently, but above all I'd like to have them both behave as iy-go-to-char does: single prompt, reuse that character for all cursors.

Both iy-go-to-char and zap-to-char take a prefix argument and a character argument prompted for in the minibuffer. Both functions seems to implement this by using (interactive "p\ncPrompt string: "). But they behave very differently in multiple-cursors-mode: iy-go-to-char only prompts once for the character and uses that same one for every cursor; zap-to-char prompts for a character for each cursor.

I'd like to know why multiple-cursors treats them differently, but above all I'd like to have them both behave as iy-go-to-char does: single prompt, reuse that character for all cursors.

Both iy-go-to-char and zap-up-to-char take a prefix argument and a character argument prompted for in the minibuffer. Both functions seems to implement this by using (interactive "p\ncPrompt string: "). But they behave very differently in multiple-cursors-mode: iy-go-to-char only prompts once for the character and uses that same one for every cursor; zap-up-to-char prompts for a character for each cursor.

I'd like to know why multiple-cursors treats them differently, but above all I'd like to have them both behave as iy-go-to-char does: single prompt, reuse that character for all cursors.

Source Link
Omar
  • 4.9k
  • 1
  • 19
  • 33

Why does multiple-cursors use the same char for all cursors with `iy-go-to-char`, but not with `zap-to-char`?

Both iy-go-to-char and zap-to-char take a prefix argument and a character argument prompted for in the minibuffer. Both functions seems to implement this by using (interactive "p\ncPrompt string: "). But they behave very differently in multiple-cursors-mode: iy-go-to-char only prompts once for the character and uses that same one for every cursor; zap-to-char prompts for a character for each cursor.

I'd like to know why multiple-cursors treats them differently, but above all I'd like to have them both behave as iy-go-to-char does: single prompt, reuse that character for all cursors.