bug-global
[Top][All Lists]
Advanced

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

Re: Keybinding Patch gtags.el


From: Shigio YAMAGUCHI
Subject: Re: Keybinding Patch gtags.el
Date: Wed, 11 Sep 2013 10:43:31 +0900

On Tue, 10 Sep 2013 18:13:35 -0400
"Stan Moore" <address@hidden> wrote:

Although I am sorry, I don't know well about the 'package'.
But we should follow the custom of emacs always.
If the custom is insufficient in a certain case, we should
change it or add a new one to it, I think.
Probably, It should be discussed in the emacs mailing list.

> The crux of the problem is timing. The variable must be set before the mode
> is active so you could set it anywhere prior to activating the mode. Lately
> I've been moving things into hooks to accommodate the package system. With
> packages, they aren't on the load path until AFTER .emacs is processed so
> autoloads can't work. I suppose there are options but I've been putting
> things into hooks that run after init; and in several I need to setup
> configuration variable status. 
> 
> In this case my personal preference was to get ahead of the curve and put
> the whole gtags setup in the hook. In the future, if gtags is added to the
> load path late I won't even notice because the c-mode hooks will always come
> after the "system" init is finished. The packages almost make "system" init
> a two stage process so this allows for that possibility and doesn’t have any
> real side effects of it is relatively harmless. 
> 
> At the moment I'm using a local copy of gtags but if a newer version was to
> show up in packages I would probably just add the package and that would
> break gtags if the variable wasn't set after the "system" init and before
> the mode is activated. The first time I had that happen with a different
> package it was nontrivial to figure out what was happening. When I found out
> that packages are added to the load path after .emacs it was a surprise. The
> packages system is causing many to dig through crufty old parts of .emacs
> and in the long run that's probably a good thing. 
> 
> The above notwithstanding, I wouldn't have any problem if the documentation
> examples set the variable globally and loaded the mode in the typical
> fashion. The keybindings work fine as long as the variable is set before the
> mode is activated.
> 
> Stan
-- 
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3



reply via email to

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