Concel and Ownsyntax patch FINALLY updated...

classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

Concel and Ownsyntax patch FINALLY updated...

Vince Negri-4

Morning all:

patch updated to 7.2.141 here:

http://vince.negri.googlepages.com/conceal-ownsyntax.diff


Phew..

Vince


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

RE: Concel and Ownsyntax patch FINALLY updated...

JohnBeckett

> patch updated to 7.2.141 here:
> http://vince.negri.googlepages.com/conceal-ownsyntax.diff

Thanks Vince. I haven't used the Conceal patch, but I have noticed that
it has some very interesting features, including 'cursorbind' which I
think I want.

Someone (I think Yakov Lerner) put a lot of care into
rewriting this tip:
http://vim.wikia.com/wiki/Patch_to_conceal_parts_of_lines

I guess this page does not need to be changed:
http://groups.google.com/group/vim_dev/web/vim-patches

Please have a look and fix what needs to be updated!

John


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

RE: Concel and Ownsyntax patch FINALLY updated...

Vince Negri-4

The page on google groups needs a small update to fix the reference to 7.0.35.

I believe the new patch should fix the compile error referred to in "appendix C"
on the wikia page (the previous patch had a missing piece.) Obviously the page needs
to be updated now that the patch is based on 7.2.

-----Original Message-----
From: [hidden email] [mailto:[hidden email]]On
Behalf Of John Beckett
Sent: 17 March 2009 21:48
To: [hidden email]
Subject: RE: Concel and Ownsyntax patch FINALLY updated...



> patch updated to 7.2.141 here:
> http://vince.negri.googlepages.com/conceal-ownsyntax.diff

Thanks Vince. I haven't used the Conceal patch, but I have noticed that
it has some very interesting features, including 'cursorbind' which I
think I want.

Someone (I think Yakov Lerner) put a lot of care into
rewriting this tip:
http://vim.wikia.com/wiki/Patch_to_conceal_parts_of_lines

I guess this page does not need to be changed:
http://groups.google.com/group/vim_dev/web/vim-patches

Please have a look and fix what needs to be updated!

John




--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: Concel and Ownsyntax patch FINALLY updated...

Jürgen Krämer-4
In reply to this post by Vince Negri-4


Hello Vince,

Vince Negri wrote:
> Morning all:
>
> patch updated to 7.2.141 here:
>
> http://vince.negri.googlepages.com/conceal-ownsyntax.diff

thanks for the update. I have built a version for Windows and it works
fine, but I think there is still a small problem. If I execute

  gvim -d -u NONE --cmd "set so=99" old-version.txt new-version.txt

and move the cursor down to the first line of a block that is missing
from new-version.txt the dashes representing the missing block are
displayed above the block in old-version.txt, e.g., with the cursor on
the "t" of "these lines" the display looks something like this:

  line 19      |  line 21
  line 20      |  line 22
  line 21      |  -------------
  line 22      |  -------------
  these lines  |  line 25
  are missing  |  line 26
  line 25      |  line 27
  line 26      |  line 28
  line 27      |  line 29

This only happens when moving with <j> or <down> from "line 22" or when
the cursor is set with the mouse. Coming from "line 25" with <k> or <up>
everything is OK.

As soon as at least in one window 'cursorbind' is reset or 'scrolloff'
is set to some smaller value, the behaviour is OK, too. It seems with
'cursorbind' set the cursor in the right window is put on the line below
the missing block. If this line is at most 'scrolloff' lines from the
bottom the display is shifted upwards.

This is just a minor inconvenience, because the display can be brought
into sync again by moving the cursor one line down und up, but I would
be nice if you could have a look at it.

Regards,
Jürgen

--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

RE: Concel and Ownsyntax patch FINALLY updated...

JohnBeckett
In reply to this post by Vince Negri-4

Vince Negri wrote:
> The page on google groups needs a small update to fix the
> reference to 7.0.35.

Good point, but please tell me exactly what text would be appropriate.
It currently reads:

Status: works, but only in Vim 6.4.10 and 7.0.35

Will we just mention the most recent patch? How about:

Status: works, patch based on Vim 7.2.141

I'm hoping Yakov will update the wiki tip in due course:
http://vim.wikia.com/wiki/Patch_to_conceal_parts_of_lines

John


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: Concel and Ownsyntax patch FINALLY updated...

Charles E Campbell Jr

John Beckett wrote:

> Vince Negri wrote:
>  
>> The page on google groups needs a small update to fix the
>> reference to 7.0.35.
>>    
>
> Good point, but please tell me exactly what text would be appropriate.
> It currently reads:
>
> Status: works, but only in Vim 6.4.10 and 7.0.35
>
> Will we just mention the most recent patch? How about:
>
> Status: works, patch based on Vim 7.2.141
>
> I'm hoping Yakov will update the wiki tip in due course:
> http://vim.wikia.com/wiki/Patch_to_conceal_parts_of_lines
>  
Yakov said something in that tip about AnsiEsc that needs correcting --
AnsiEsc handles ansi escape sequences with conceal if your vim supports
it; it uses Ignore highlighting otherwise.  Should I correct it or let
Yakov do it?

Regards,
Chip Campbell


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: Concel and Ownsyntax patch FINALLY updated...

Markus Heidelberg
In reply to this post by Vince Negri-4

Vince Negri, 17.03.2009:
>
> Morning all:
>
> patch updated to 7.2.141 here:
>
> http://vince.negri.googlepages.com/conceal-ownsyntax.diff

The link to tex2.vim [1] doesn't work any more, have you removed the file?

Markus

[1] http://vince.negri.googlepages.com/tex2.vim


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

RE: Concel and Ownsyntax patch FINALLY updated...

JohnBeckett
In reply to this post by Charles E Campbell Jr

Charles E. Campbell, Jr. wrote:
>> I'm hoping Yakov will update the wiki tip in due course:
>> http://vim.wikia.com/wiki/Patch_to_conceal_parts_of_lines
>
> Yakov said something in that tip about AnsiEsc that needs
> correcting -- AnsiEsc handles ansi escape sequences with
> conceal if your vim supports it; it uses Ignore highlighting
> otherwise.  Should I correct it or let Yakov do it?

Please fix what you can. Others can easily use the History tab to see
what you have changed, if needed.

It might be worth putting a temporary section at the top, something
like:

==Update==
The Conceal patch was recently
[http://vince.negri.googlepages.com/conceal-ownsyntax.diff updated] for
Vim 7.2.141. This tip needs to be updated to describe the new patch.

Naturally you would either edit in Vim and paste into your browser, or
you would occasionally copy the text out of the browser to somewhere
safe in case the edit is lost, and you would use "Show preview" to see
how it looks. The "[http:.... updated]" should render as "updated" with
a link to the URL.

John


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

RE: Concel and Ownsyntax patch FINALLY updated...

Vince Negri-4
In reply to this post by Markus Heidelberg

Not intentionally, I shall look into it. Did the link ever work?

-----Original Message-----
From: [hidden email] [mailto:[hidden email]]On
Behalf Of Markus Heidelberg
Sent: 19 March 2009 01:10
To: [hidden email]
Subject: Re: Concel and Ownsyntax patch FINALLY updated...



Vince Negri, 17.03.2009:
>
> Morning all:
>
> patch updated to 7.2.141 here:
>
> http://vince.negri.googlepages.com/conceal-ownsyntax.diff

The link to tex2.vim [1] doesn't work any more, have you removed the file?

Markus

[1] http://vince.negri.googlepages.com/tex2.vim




--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

RE: Concel and Ownsyntax patch FINALLY updated...

Vince Negri-4
In reply to this post by Jürgen Krämer-4

Hi Jürgen

I don't understand the description of the problem. You say you run

  gvim -d -u NONE --cmd "set so=99" old-version.txt new-version.txt

But that is setting scrolloffset, not cursorbind. I don't see where
cursorbind is being enabled.

That said, I never used cursorbind in conjunction with scrolloffset (I never
use scrolloffset :-)  so it wouldn't surprise me if they weren't compatible :)


-----Original Message-----
From: [hidden email] [mailto:[hidden email]]On
Behalf Of Jürgen Krämer
Sent: 18 March 2009 14:37
To: [hidden email]
Subject: Re: Concel and Ownsyntax patch FINALLY updated...




Hello Vince,

Vince Negri wrote:
> Morning all:
>
> patch updated to 7.2.141 here:
>
> http://vince.negri.googlepages.com/conceal-ownsyntax.diff

thanks for the update. I have built a version for Windows and it works
fine, but I think there is still a small problem. If I execute

  gvim -d -u NONE --cmd "set so=99" old-version.txt new-version.txt

and move the cursor down to the first line of a block that is missing
from new-version.txt the dashes representing the missing block are
displayed above the block in old-version.txt, e.g., with the cursor on
the "t" of "these lines" the display looks something like this:

  line 19      |  line 21
  line 20      |  line 22
  line 21      |  -------------
  line 22      |  -------------
  these lines  |  line 25
  are missing  |  line 26
  line 25      |  line 27
  line 26      |  line 28
  line 27      |  line 29

This only happens when moving with <j> or <down> from "line 22" or when
the cursor is set with the mouse. Coming from "line 25" with <k> or <up>
everything is OK.

As soon as at least in one window 'cursorbind' is reset or 'scrolloff'
is set to some smaller value, the behaviour is OK, too. It seems with
'cursorbind' set the cursor in the right window is put on the line below
the missing block. If this line is at most 'scrolloff' lines from the
bottom the display is shifted upwards.

This is just a minor inconvenience, because the display can be brought
into sync again by moving the cursor one line down und up, but I would
be nice if you could have a look at it.

Regards,
Jürgen

--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)



--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

RE: Concel and Ownsyntax patch FINALLY updated...

Vince Negri-4
In reply to this post by JohnBeckett

I think you should say

Status: works, patch based on Vim 7.2.141
 (patch also available for Vim 6.4.10)

Vince

-----Original Message-----
From: [hidden email] [mailto:[hidden email]]On
Behalf Of John Beckett


Will we just mention the most recent patch? How about:

Status: works, patch based on Vim 7.2.141

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

RE: Concel and Ownsyntax patch FINALLY updated...

Vince Negri-4
In reply to this post by Vince Negri-4

Should be ok now. The file tex2.vim is provided with no warranty :-)

-----Original Message-----
From: [hidden email] [mailto:[hidden email]]On
Behalf Of Markus Heidelberg
Sent: 19 March 2009 01:10
To: [hidden email]
Subject: Re: Concel and Ownsyntax patch FINALLY updated...



Vince Negri, 17.03.2009:
>
> Morning all:
>
> patch updated to 7.2.141 here:
>
> http://vince.negri.googlepages.com/conceal-ownsyntax.diff

The link to tex2.vim [1] doesn't work any more, have you removed the file?

Markus

[1] http://vince.negri.googlepages.com/tex2.vim






--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: Concel and Ownsyntax patch FINALLY updated...

Jürgen Krämer-4
In reply to this post by Vince Negri-4

Hi Vince,

Vince Negri wrote:
>
> I don't understand the description of the problem. You say you run
>
>   gvim -d -u NONE --cmd "set so=99" old-version.txt new-version.txt
>
> But that is setting scrolloffset, not cursorbind. I don't see where
> cursorbind is being enabled.

it seems cursorbind was set by invoking gvim with the -d flag. You can
check this with the attached files. After executing the above command

  :windo verbose setlocal cursorbind?

shows

    cursorbind
    cursorbind

If you replace the -d flag with -O, the :windo command shows

  nocursorbind
  nocursorbind

With the attached files you can also reproduce the behaviour mentioned
in my first mail. It seems so=99 is not necessary for this, just run

  gvim -d -u NONE old-version.txt new-version.txt

and enter

  22j

The cursor is now on the last line in the left window ("these lines")
and the right window has been scrolled upwards by two lines, showing
the missing lines (represented by dashes) above the corresponding block
of the left window. This does not happen if cursorbind is reset in at
least one of the windows.

Regards,
Jürgen

--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---


line  1
line  2
line  3
line  4
line  5
line  6
line  7
line  8
line  9
line 10
line 11
line 12
line 13
line 14
line 15
line 16
line 17
line 18
line 19
line 20
line 21
line 22
these lines
are missing
line 23
line 24
line 25
line 26
line 27
line 28
line 29
line 30
line 31
line 32
line 33
line 34
line 35
line 36
line 37
line 38
line 39
line 40
line 41
line 42
line 43
line 44
line 45
line 46
line 47
line 48
line 49
line 50

line  1 modified
line  2 modified
line  3 modified
line  4 modified
line  5 modified
line  6 modified
line  7 modified
line  8 modified
line  9 modified
line 10 modified
line 11 modified
line 12 modified
line 13 modified
line 14 modified
line 15 modified
line 16 modified
line 17 modified
line 18 modified
line 19
line 20
line 21
line 22
line 23
line 24
line 25
line 26
line 27
line 28
line 29
line 30 modified
line 31 modified
line 32 modified
line 33 modified
line 34 modified
line 35 modified
line 36 modified
line 37 modified
line 38 modified
line 39 modified
line 40 modified
line 41 modified
line 42 modified
line 43 modified
line 44 modified
line 45 modified
line 46 modified
line 47 modified
line 48 modified
line 49 modified
line 50 modified
Reply | Threaded
Open this post in threaded view
|

RE: Concel and Ownsyntax patch FINALLY updated...

JohnBeckett
In reply to this post by Vince Negri-4

Vince Negri wrote:
> I think you should say
>
> Status: works, patch based on Vim 7.2.141  (patch also
> available for Vim 6.4.10)

Done -- I have updated following:
http://groups.google.com/group/vim_dev/web/vim-patches

John


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

RE: Concel and Ownsyntax patch FINALLY updated...

Vince Negri-4
In reply to this post by Jürgen Krämer-4

Thanks for the clarification.

I think this behaviour can't be avoided..

In your example, when you go 22j you end up on line 23 in the old file.
The cursorbind code asks Vim for the corresponding line in the new file,
and since the line no longer exists the "corresponding line" is returned
as the one after the deleted block.

Since Vim does not allow the cursor to journey outside the window, this
causes the "new" window to jump up a few lines.

The "old" window won't also jump to compensate since it's the active
window. I worry that making the old window adjust its position after
adjusting the cursor in the slave windows could lead to strange infinite
loop situations....

Vince

-----Original Message-----
From: [hidden email] [mailto:[hidden email]]On
Behalf Of Jürgen Krämer
Sent: 19 March 2009 09:17
To: [hidden email]
Subject: Re: Concel and Ownsyntax patch FINALLY updated...



Hi Vince,

Vince Negri wrote:
>
> I don't understand the description of the problem. You say you run
>
>   gvim -d -u NONE --cmd "set so=99" old-version.txt new-version.txt
>
> But that is setting scrolloffset, not cursorbind. I don't see where
> cursorbind is being enabled.

it seems cursorbind was set by invoking gvim with the -d flag. You can
check this with the attached files. After executing the above command

  :windo verbose setlocal cursorbind?

shows

    cursorbind
    cursorbind

If you replace the -d flag with -O, the :windo command shows

  nocursorbind
  nocursorbind

With the attached files you can also reproduce the behaviour mentioned
in my first mail. It seems so=99 is not necessary for this, just run

  gvim -d -u NONE old-version.txt new-version.txt

and enter

  22j

The cursor is now on the last line in the left window ("these lines")
and the right window has been scrolled upwards by two lines, showing
the missing lines (represented by dashes) above the corresponding block
of the left window. This does not happen if cursorbind is reset in at
least one of the windows.

Regards,
Jürgen

--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)



--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: Concel and Ownsyntax patch FINALLY updated...

Markus Heidelberg
In reply to this post by Vince Negri-4

Vince Negri, 19.03.2009:
>
> Not intentionally, I shall look into it. Did the link ever work?

I thougt I have tested it with it several months ago, but now looking at
the at that time downloaded tex2.vim, it is not the vim syntax file, but
a html file containing the 404 error. Maybe I have downloaded it later
again and overwritten the real syntax file from a former download, where
the link worked!?

Markus


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---