Showmarks problems

576 views
Skip to first unread message

Tim Johnson

unread,
Aug 25, 2015, 7:23:34 PM8/25/15
to vim ML
-----------------------------------------------------------------
Version info
:version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 25 2015 13:38:04)
MacOS X (unix) version
Included patches: 1-729
Huge version without GUI.

NOTE : features set to +signs
NOTE : Upgrade via macports
-----------------------------------------------------------------
Message :
Error detected while processing CursorHold Auto commands for "*":
E11: Invalid in command-line window; <CR> executes, CTRL-C quits:
checktime
Error detected while processing function <SNR>60_ShowMarks:
line 39:
E885: Not possible to change sign ShowMark72
Error detected while processing function <SNR>60_ShowMarks:
line 39:
E885: Not possible to change sign ShowMark72
-----------------------------------------------------------------

I _am able_ to set marks and have them displayed in the signs
column, just wondering why the messages, this just started with this
upgrade

thanks
--
Tim
http://www.akwebsoft.com, http://www.tj49.com

Christian Brabandt

unread,
Aug 26, 2015, 12:22:11 AM8/26/15
to vim ML
On Di, 25 Aug 2015, Tim Johnson wrote:

> -----------------------------------------------------------------
> Version info
> :version
> VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 25 2015 13:38:04)
> MacOS X (unix) version
> Included patches: 1-729
> Huge version without GUI.
>
> NOTE : features set to +signs
> NOTE : Upgrade via macports

What was the previous version?

> -----------------------------------------------------------------
> Message :
> Error detected while processing CursorHold Auto commands for "*":
> E11: Invalid in command-line window; <CR> executes, CTRL-C quits:
> checktime
> Error detected while processing function <SNR>60_ShowMarks:
> line 39:
> E885: Not possible to change sign ShowMark72
> Error detected while processing function <SNR>60_ShowMarks:
> line 39:
> E885: Not possible to change sign ShowMark72
> -----------------------------------------------------------------
>
> I _am able_ to set marks and have them displayed in the signs
> column, just wondering why the messages, this just started with this
> upgrade

I think, this is caused by patch 7.4.275 and has been discussed here
before:
https://groups.google.com/d/msg/vim_use/ROKJV2Bt3GU/j2kyr6jGlMMJ

Looks like you have asked the same question before.

Best,
Christian
--
Wenige sind weise genug, fördernden Tadel trügendem Lobe vorzuziehen.
-- François de La Rochefoucault

Tim Johnson

unread,
Aug 26, 2015, 2:52:28 PM8/26/15
to vim...@googlegroups.com
* Christian Brabandt <cbl...@256bit.org> [150826 01:10]:
> On Di, 25 Aug 2015, Tim Johnson wrote:
>
> > -----------------------------------------------------------------
> > Version info
> > :version
> > VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 25 2015 13:38:04)
> > MacOS X (unix) version
> > Included patches: 1-729
> > Huge version without GUI.
> >
> > NOTE : features set to +signs
> > NOTE : Upgrade via macports
>
> What was the previous version?
I believe it was 7.4 with patch 258.1
> > -----------------------------------------------------------------
> > Message :
> > Error detected while processing CursorHold Auto commands for "*":
> > E11: Invalid in command-line window; <CR> executes, CTRL-C quits:
> > checktime
> > Error detected while processing function <SNR>60_ShowMarks:
> > line 39:
> > E885: Not possible to change sign ShowMark72
> > Error detected while processing function <SNR>60_ShowMarks:
> > line 39:
> > E885: Not possible to change sign ShowMark72
> > -----------------------------------------------------------------
> >
> > I _am able_ to set marks and have them displayed in the signs
> > column, just wondering why the messages, this just started with this
> > upgrade
>
> I think, this is caused by patch 7.4.275 and has been discussed here
> before:
> https://groups.google.com/d/msg/vim_use/ROKJV2Bt3GU/j2kyr6jGlMMJ
>
> Looks like you have asked the same question before.

You're correct. Thanks for reminding me. I had forgotten about
that because I just rolled back to the previous version.

From that previous discussion, I gather from other posters that
the original showmarks is probably not being actively maintained
and an alternative was presented by

https://github.com/jacquesbh/vim-showmarks
and
http://www.vim.org/scripts/script.php?script_id=2142

I'll give that a try.
cheers

Tim Johnson

unread,
Aug 26, 2015, 3:52:22 PM8/26/15
to vim...@googlegroups.com
* Tim Johnson <t...@akwebsoft.com> [150826 10:55]:
Replaced the following line :
exe 'sign place '.id.' name=ShowMark'.nm.' line='.ln.' buffer='.winbufnr(0)
by the following three lines

if ln > 0 " conditional which tests for the line number as greater than 0
exe 'sign place '.id.' name=ShowMark'.nm.' line='.ln.' buffer='.winbufnr(0)
endif " end conditional

Seems to be the easiest solution...
Reply all
Reply to author
Forward
0 new messages