bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gtags: cannot open shared object '/usr/local/lib/gtags/pygments-pars


From: Leo Liu
Subject: Re: gtags: cannot open shared object '/usr/local/lib/gtags/pygments-parser.la'
Date: Sun, 05 Oct 2014 08:29:52 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (CentOS 6.5)

On 2014-10-04 17:56 +0900, Shigio YAMAGUCHI wrote:
> Surely hard coded path names are hard to use it.
> How about enabling use of shell style variables
> in the configuration file?
>
> * Variable 'libdir' has a default value.
>
> :gtags_parser=C\:$libdir/gtags/exuberant-ctags.la:\
>
> * You can change the default value freely.
>
> :libdir=/tmp/var/lib:\
> :gtags_parser=C\:$libdir/gtags/exuberant-ctags.la:\
>
> * Of course, the followings usage is acceptable.
>
> :ctagslib=$libdir/gtags/exuberant-ctags.la:\
> :gtags_parser=C\:$ctagslib:\
>
> * Syntax ${...} is also acceptable.
>
> Any comment?

It seems this would make it easier to change the value of the plugin
path by consolidating them in one place. i.e. it is an improvement.

I wonder if it can be made even better without leaking the plugin path
to user's configuration file (.globalrc). So instead of

   :gtags_parser=c\:/usr/local/unix/global/lib/gtags/user-custom.la:
   :gtags_parser=Asm\:/usr/local/unix/global/lib/gtags/exuberant-ctags.la:

we write:

   :gtags_parser=user-custom:
   :gtags_parser=exuberant-ctags:

Leave the job to `global', `gtags' and whatnot to figure out where to
find it. What do you think?

Thanks,
Leo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]