The dot Command not able to repeat text inserted by "Auto-complete"

York Zhao gtdplatform at gmail.com
Fri Aug 19 19:15:44 CEST 2011


Thanks for the clarification and yes it is more useful for the "C-." to
behave in the way you explained.

However, there is still some problems I believe around here. After the 8
steps I listed in the previous email, and maybe keep pressing "C-." a few
more times, undo all the changes so far and restart the above 8 steps again,
this time when pressing the "C-." for the first time the line becomes
"aaaeeeaaa" which is good, however, pressing "C-." again would clear the
line as well as the "Buffer Modified Flag" (buffer indicated as "no change")
as opposed to changing the line to "aaaeeeeee", pressing "C-." the third
time would mess up the next line in the buffer.

Hope this helps.

York


On Fri, Aug 19, 2011 at 12:46 PM, Frank Fischer <
frank.fischer at mathematik.tu-chemnitz.de> wrote:
Am Fri, 19 Aug 2011 11:35:41 -0400
schrieb York Zhao <gtdplatform at gmail.com>:

> Ok, I've found new problems, here is the sequence to reproduce:
>
> 1. At the beginning of a empty line, I typed "i"
> 2. Type "aaa" and the line becomes "aaa"
> 3. "Esc"
> 4. "i"
> 5. "eee" and the line becomes "aaaeee"
> 6. "Esc"
> 7. Type "." and the line becomes "aaaeeeeee"
> 8. Type "C-." and the becomes "aaaeeeaaa" while it should be
> "aaaeeeeeeaaa"

No, it should be aaaeeeaaa. C-. is bound to `evil-pop-repeat' and it
replaces the just repeated command with the previously recorded one.
This is similar to Emacs' kill ring, where you can use C-y to paste
some yanked text and M-y the replace this text with previously yanked
text rotating the kill-ring. Evil arranges recorded commands similarly
in a "repeat-ring" and C-. cycles through that ring when used
immediately after a ".", hence the behavior you describe is by
intention. In order to get "aaaeeeeeeaaa" use . two times followed by a
C-.

Frank

_______________________________________________
implementations-list mailing list
implementations-list at lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ourproject.org/pipermail/implementations-list/attachments/20110819/eb9f91ba/attachment.htm 


More information about the implementations-list mailing list