Strange visual selection in scheme mode
Hi, I'm have odd behavior inside visual selection (actually when is going to be made comment block). In attachment is offending file. To reproduce it, open it, got to beginning, hit CTRL-V and start to go down (using down button). Now, the cursor will be stuck in line before '(define (coroutine-maker proc)...' I'm not sure what is happening with just that line, but if you skip it, selection will work without problems. I also noticed that selection line now became only partially visible; after reverting code to some older branch I keep for reference (b6fc1e2c8e5d488dabd3068417faf94b768115b9), that line behaves exactly as in vim: the first column will be always highlighted. Idea what could be wrong? I'm using emacs 24.1.1, daemonized in terminal. Regards, Sanel
On 2012-12-21, Sanel Zukan <[email protected]> wrote:
Hi,
I'm have odd behavior inside visual selection (actually when is going to be made comment block). In attachment is offending file.
To reproduce it, open it, got to beginning, hit CTRL-V and start to go down (using down button). Now, the cursor will be stuck in line before '(define (coroutine-maker proc)...' I'm not sure what is happening with just that line, but if you skip it, selection will work without problems.
Hm, I can't reproduce that (the cursor never stucks in that line). Though, there were some bugs in the highlighting code. They caused evil to highlight a wrong region sometimes. In particular, TAB characters caused some trouble because then not all visual positions are possible positions of (point) and the visible region has to take care of this. Anyhow, I commited some changes to the block highlighting code and to the code that executes commands on a block. Now the visual selection should match exactly the region that a command would work on. Maybe these changes fix your problem, too. It would be nice if you could check this. If the problem remains, we have to investigate further ... Ah, and happy new year everyone! Frank Btw, I think 1.0 could be release in the next days. At least, there are no pending issues left that really should go into 1.0, IMHO.
Anyhow, I commited some changes to the block highlighting code and to the code that executes commands on a block. Now the visual selection should match exactly the region that a command would work on.
Maybe these changes fix your problem, too. It would be nice if you could check this. If the problem remains, we have to investigate further ...
Did a quick check and works now :) But, there is small issue with cursor position; at http://www.flickr.com/photos/sanelz/8339060579/ I put comparison evil (left) and vim (right). In evil, during visual selection, when cursor is moved from left to right, selection box in line where is cursor, is 2-3 cursors ahead of cursor itself. Probably it has to do with indenting, as evil correctly calculates minimal selection box but cursor is moved behind indent bounds. In vim, cursor (in selection box) respects indent bounds.
Ah, and happy new year everyone!
I'm joining with best wishes in this year :)
Btw, I think 1.0 could be release in the next days. At least, there are no pending issues left that really should go into 1.0, IMHO.
Cool! Thanks for the info. Sanel
On 2013-01-03, Sanel Zukan <[email protected]> wrote:
Anyhow, I commited some changes to the block highlighting code and to the code that executes commands on a block. Now the visual selection should match exactly the region that a command would work on.
Maybe these changes fix your problem, too. It would be nice if you could check this. If the problem remains, we have to investigate further ...
Did a quick check and works now :) But, there is small issue with cursor position; at http://www.flickr.com/photos/sanelz/8339060579/ I put comparison evil (left) and vim (right).
The reason is that Vim shows the cursor on the last space covered by a TAB character and Emacs shows it on the first space (this has nothing to do with the highlighting itself). This is just a difference in the display engine, but has no influence otherwise. Best regards, Frank
Got it! Thanks for explanation. Sanel On 01/03/2013 05:44 PM, Frank Fischer wrote:
On 2013-01-03, Sanel Zukan <[email protected]> wrote:
Anyhow, I commited some changes to the block highlighting code and to the code that executes commands on a block. Now the visual selection should match exactly the region that a command would work on.
Maybe these changes fix your problem, too. It would be nice if you could check this. If the problem remains, we have to investigate further ... Did a quick check and works now :) But, there is small issue with cursor position; at http://www.flickr.com/photos/sanelz/8339060579/ I put comparison evil (left) and vim (right). The reason is that Vim shows the cursor on the last space covered by a TAB character and Emacs shows it on the first space (this has nothing to do with the highlighting itself). This is just a difference in the display engine, but has no influence otherwise.
Best regards, Frank
_______________________________________________ implementations-list mailing list [email protected] https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
participants (2)
-
Frank Fischer -
Sanel Zukan