bug-global
[Top][All Lists]
Advanced

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

RE: Keybinding Patch gtags.el


From: Stan Moore
Subject: RE: Keybinding Patch gtags.el
Date: Wed, 4 Sep 2013 20:58:52 -0400

 From: Shigio YAMAGUCHI [mailto:address@hidden
 Sent: Wednesday, September 04, 2013 2:21 AM
> On Mon, 2 Sep 2013 22:58:55 -0400
> "Stan Moore" <address@hidden> wrote:
> 
> Hello,
> Thank you for the patch.
> 
> > (gtags-mode t)
> > (gtags-suggested-key-mapping t)
> 
> Isn't it a simply wrong usage?

Yes, it is wrong.  But this is what turns up when you google for a way to
get the keybindings to work. The original code only works when you use the
emacs customize interface. Many people don't use customize, either by choice
or ignorance, and attempt to set things up in .emacs. The docs didn't make
this situation clear so I spent some time trying to get to keybindings setup
with little success.  I actually spent more time googling for a solution
than I did reading the code and generating the patch.
 
> > After the patch either
> >
> >   (setq gtags-suggested-key-mapping t)
> >   (gtags-mode t)
> >
> > Or
> >
> >  (gtags-mode t)
> >  (setq gtags-suggested-key-mapping t)
> >  (gtags-bind-custom-keys)
> >
> > Will enable the keybindings.
> 
> What is the latter merit?

No real merit I can think of, but it does provide a method to allow you to
establish keybindings even after you have entered gtags-mode.

> Is it a genric custom in emacs?

Not that I'm aware of. Gtags-bind-custom-keys could easily be an internal
routine or simply unadvertised; any public benefit is at best trivial.

Stan

 




reply via email to

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