* [gentoo-science] [patch] system-wide install of debug_gap.vim can not be overridden
@ 2011-06-05 9:48 P Purkayastha
2011-06-06 19:18 ` Francois Bissey
0 siblings, 1 reply; 6+ messages in thread
From: P Purkayastha @ 2011-06-05 9:48 UTC (permalink / raw
To: support, gentoo-science
[-- Attachment #1: Type: text/plain, Size: 861 bytes --]
Hi,
I installed sage and also gap via the sage-for-gentoo overlay on a
Gentoo linux system (64 bit installation). It turned out that gap
installed a plugin /usr/share/vim/vimfiles/plugin/gap_debug.vim where
some keybindings are defined to help debug gap programs.
First, I think this file should go under
/usr/share/vim/vimfiles/ftplugin directory since it applies only to gap
files. Secondly, the files define some keybindings without allowing for
the user to override those keybindings in ~/.vimrc.
I am attaching a patch which defines a global vim variable. If the user
sets that variable in ~/.vimrc, then this gap plugin will not be read.
This is one way I think the plugin can be made to not supersede user
settings.
If there is some other way of overriding that plugin file, please let me
know.
Thanks and regards,
Punarbasu.
[-- Attachment #2: debug_gap.patch.txt --]
[-- Type: text/plain, Size: 515 bytes --]
--- debug_gap.vim 2011-06-05 17:29:33.473985132 +0800
+++ debug_gap.vim.new 2011-06-05 17:35:51.686985062 +0800
@@ -6,6 +6,12 @@
"
" $Id: debug.vim,v 1.1 2003/04/07 17:06:17 gap Exp $
"
+if exists("g:debug_gap")
+ finish
+endif
+
+let g:debug_gap=1
+
map <f2> OError("Breakpoint #<esc>"apa");<esc>
map <f3> OPrint("Watchpoint #<esc>"apa\n");<esc>
map <f4> ODEBUG_LIST[<esc>"apa].count := DEBUG_LIST[<esc>"apa].count - 1;<cr>if DEBUG_LIST[<esc>"apa].count <= 0 then Error("Breakpoint #<esc>"apa"); fi;<esc>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-science] [patch] system-wide install of debug_gap.vim can not be overridden
2011-06-05 9:48 [gentoo-science] [patch] system-wide install of debug_gap.vim can not be overridden P Purkayastha
@ 2011-06-06 19:18 ` Francois Bissey
2011-06-07 4:19 ` P Purkayastha
0 siblings, 1 reply; 6+ messages in thread
From: Francois Bissey @ 2011-06-06 19:18 UTC (permalink / raw
To: gentoo-science
> Hi,
>
> I installed sage and also gap via the sage-for-gentoo overlay on a
> Gentoo linux system (64 bit installation). It turned out that gap
> installed a plugin /usr/share/vim/vimfiles/plugin/gap_debug.vim where
> some keybindings are defined to help debug gap programs.
>
> First, I think this file should go under
> /usr/share/vim/vimfiles/ftplugin directory since it applies only to gap
> files. Secondly, the files define some keybindings without allowing for
> the user to override those keybindings in ~/.vimrc.
>
> I am attaching a patch which defines a global vim variable. If the user
> sets that variable in ~/.vimrc, then this gap plugin will not be read.
> This is one way I think the plugin can be made to not supersede user
> settings.
>
> If there is some other way of overriding that plugin file, please let me
> know.
>
Hi,
thanks for the info. It looks like you have found something that is installed
by "automagic". Not being a fan of vi I don't have it installed and that vim
file is not installed here. We may need to put it under useflag control.
I think we may adopt your patch until someone more knowledgeable in vim
tell us that's the wrong way of doing things.
Francois
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-science] [patch] system-wide install of debug_gap.vim can not be overridden
2011-06-06 19:18 ` Francois Bissey
@ 2011-06-07 4:19 ` P Purkayastha
2011-06-07 4:37 ` fbissey
0 siblings, 1 reply; 6+ messages in thread
From: P Purkayastha @ 2011-06-07 4:19 UTC (permalink / raw
To: gentoo-science
On Tue, 07 Jun 2011 03:18:51 +0800, Francois Bissey
<fbissey@slingshot.co.nz> wrote:
>> Hi,
>>
>> I installed sage and also gap via the sage-for-gentoo overlay on a
>> Gentoo linux system (64 bit installation). It turned out that gap
>> installed a plugin /usr/share/vim/vimfiles/plugin/gap_debug.vim where
>> some keybindings are defined to help debug gap programs.
>>
>> First, I think this file should go under
>> /usr/share/vim/vimfiles/ftplugin directory since it applies only to gap
>> files. Secondly, the files define some keybindings without allowing for
>> the user to override those keybindings in ~/.vimrc.
>>
>> I am attaching a patch which defines a global vim variable. If the user
>> sets that variable in ~/.vimrc, then this gap plugin will not be read.
>> This is one way I think the plugin can be made to not supersede user
>> settings.
>>
>> If there is some other way of overriding that plugin file, please let me
>> know.
>>
> Hi,
>
> thanks for the info. It looks like you have found something that is
> installed
> by "automagic". Not being a fan of vi I don't have it installed and that
> vim
> file is not installed here. We may need to put it under useflag control.
> I think we may adopt your patch until someone more knowledgeable in vim
> tell us that's the wrong way of doing things.
>
> Francois
>
Hi Francois,
I am not surprised that the file debug_gap.vim is not installed in your
system. The installation of this file is handled by the vim-syntax
useflag. This useflag also handles the installation of other useful vim
files.
One option would be to introduce the debug useflag for gap and install
this debug_gap.vim file if both vim-syntax and debug flags are on. And,
during the src_prepare apply the patch to debug_gap.vim. I can provide you
an updated ebuild if you so desire.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-science] [patch] system-wide install of debug_gap.vim can not be overridden
2011-06-07 4:19 ` P Purkayastha
@ 2011-06-07 4:37 ` fbissey
2011-06-07 8:30 ` Christopher Schwan
0 siblings, 1 reply; 6+ messages in thread
From: fbissey @ 2011-06-07 4:37 UTC (permalink / raw
To: gentoo-science
Quoting P Purkayastha <ppurka@gmail.com>:
> On Tue, 07 Jun 2011 03:18:51 +0800, Francois Bissey
> <fbissey@slingshot.co.nz> wrote:
>
>>> Hi,
>>>
>>> I installed sage and also gap via the sage-for-gentoo overlay on a
>>> Gentoo linux system (64 bit installation). It turned out that gap
>>> installed a plugin /usr/share/vim/vimfiles/plugin/gap_debug.vim where
>>> some keybindings are defined to help debug gap programs.
>>>
>>> First, I think this file should go under
>>> /usr/share/vim/vimfiles/ftplugin directory since it applies only to gap
>>> files. Secondly, the files define some keybindings without allowing for
>>> the user to override those keybindings in ~/.vimrc.
>>>
>>> I am attaching a patch which defines a global vim variable. If the user
>>> sets that variable in ~/.vimrc, then this gap plugin will not be read.
>>> This is one way I think the plugin can be made to not supersede user
>>> settings.
>>>
>>> If there is some other way of overriding that plugin file, please let me
>>> know.
>>>
>> Hi,
>>
>> thanks for the info. It looks like you have found something that is
>> installed
>> by "automagic". Not being a fan of vi I don't have it installed and
>> that vim
>> file is not installed here. We may need to put it under useflag control.
>> I think we may adopt your patch until someone more knowledgeable in vim
>> tell us that's the wrong way of doing things.
>>
>> Francois
>>
>
> Hi Francois,
>
> I am not surprised that the file debug_gap.vim is not installed in your
> system. The installation of this file is handled by the vim-syntax
> useflag. This useflag also handles the installation of other useful vim
> files.
>
> One option would be to introduce the debug useflag for gap and install
> this debug_gap.vim file if both vim-syntax and debug flags are on. And,
> during the src_prepare apply the patch to debug_gap.vim. I can provide you
> an updated ebuild if you so desire.
Hi,
I need to take more care when I check the ebuilds before 8am. Yes of course
there is a vim-syntax flag! I don't think we need to overcomplicate
things with
an extra debug flag. On the other hand being able to override the plugin is a
very good idea. So unless something more refined can be done I think I'll just
adopt your patch.
Francois
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-science] [patch] system-wide install of debug_gap.vim can not be overridden
2011-06-07 4:37 ` fbissey
@ 2011-06-07 8:30 ` Christopher Schwan
2011-06-07 19:56 ` Francois Bissey
0 siblings, 1 reply; 6+ messages in thread
From: Christopher Schwan @ 2011-06-07 8:30 UTC (permalink / raw
To: gentoo-science; +Cc: fbissey
Hi,
what do you think about completely dropping the file ?
On Tuesday 07 June 2011 06:37:51 fbissey@slingshot.co.nz wrote:
> Quoting P Purkayastha <ppurka@gmail.com>:
> > On Tue, 07 Jun 2011 03:18:51 +0800, Francois Bissey
> >
> > <fbissey@slingshot.co.nz> wrote:
> >>> Hi,
> >>>
> >>> I installed sage and also gap via the sage-for-gentoo overlay on a
> >>>
> >>> Gentoo linux system (64 bit installation). It turned out that gap
> >>> installed a plugin /usr/share/vim/vimfiles/plugin/gap_debug.vim where
> >>> some keybindings are defined to help debug gap programs.
> >>>
> >>> First, I think this file should go under
> >>> /usr/share/vim/vimfiles/ftplugin directory since it applies only to gap
> >>> files. Secondly, the files define some keybindings without allowing for
> >>> the user to override those keybindings in ~/.vimrc.
> >>>
> >>> I am attaching a patch which defines a global vim variable. If the user
> >>> sets that variable in ~/.vimrc, then this gap plugin will not be read.
> >>> This is one way I think the plugin can be made to not supersede user
> >>> settings.
> >>>
> >>> If there is some other way of overriding that plugin file, please let
> >>> me know.
> >>
> >> Hi,
> >>
> >> thanks for the info. It looks like you have found something that is
> >> installed
> >> by "automagic". Not being a fan of vi I don't have it installed and
> >> that vim
> >> file is not installed here. We may need to put it under useflag control.
> >> I think we may adopt your patch until someone more knowledgeable in vim
> >> tell us that's the wrong way of doing things.
> >>
> >> Francois
> >
> > Hi Francois,
> >
> > I am not surprised that the file debug_gap.vim is not installed in
> > your
> >
> > system. The installation of this file is handled by the vim-syntax
> > useflag. This useflag also handles the installation of other useful vim
> > files.
> >
> > One option would be to introduce the debug useflag for gap and install
> >
> > this debug_gap.vim file if both vim-syntax and debug flags are on. And,
> > during the src_prepare apply the patch to debug_gap.vim. I can provide
> > you an updated ebuild if you so desire.
>
> Hi,
>
> I need to take more care when I check the ebuilds before 8am. Yes of course
> there is a vim-syntax flag! I don't think we need to overcomplicate
> things with
> an extra debug flag. On the other hand being able to override the plugin is
> a very good idea. So unless something more refined can be done I think
> I'll just adopt your patch.
>
> Francois
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-science] [patch] system-wide install of debug_gap.vim can not be overridden
2011-06-07 8:30 ` Christopher Schwan
@ 2011-06-07 19:56 ` Francois Bissey
0 siblings, 0 replies; 6+ messages in thread
From: Francois Bissey @ 2011-06-07 19:56 UTC (permalink / raw
To: gentoo-science
> Hi,
>
> what do you think about completely dropping the file ?
>
It's a bit drastic in my opinion. It sounds like something useful
if you are a vim user.
Francois
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-06-07 19:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-05 9:48 [gentoo-science] [patch] system-wide install of debug_gap.vim can not be overridden P Purkayastha
2011-06-06 19:18 ` Francois Bissey
2011-06-07 4:19 ` P Purkayastha
2011-06-07 4:37 ` fbissey
2011-06-07 8:30 ` Christopher Schwan
2011-06-07 19:56 ` Francois Bissey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox