[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: xcscope setup
From: |
Vaidheeswaran C |
Subject: |
Re: xcscope setup |
Date: |
Thu, 21 May 2015 07:55:06 +0530 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.3.0 |
On Wednesday 20 May 2015 05:41 PM, Timur Aydin wrote:
> Hello,
>
> I am trying to get xcscope to work with emacs version (GNU Emacs
> 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.6)
> of 2014-12-29 on mail))
>
> I have first installed the xcscope from the ELPA. Then, according to the
> package documentation, I have added (cscope-setup) into my .emacs.el
>
> But when I do that, emacs fails to start up with this error:
>
> Warning (initialization): An error occurred while loading
> `/home/ta/.emacs.el':
>
> Symbol's function definition is void: cscope-setup
>
> I played around with this for a while and finally got it to work by
> adding (cscope-setup) into a c-initialization-hook:
>
> (defun my-c-initialization-hook ()
> (cscope-setup)
> )
>
> (add-hook 'c-initialization-hook 'my-c-initialization-hook)
>
> This seems to work correctly, but I haven't seen it done this way
> anywhere. So, why isn't it working according to the documentation? And
> why is the hook method working? And is this the proper way of this this?
>
> Cheers,
>
CEDET (bundled with stock GNU Emacs) ships with an interface to
cscope. You may want to try it out instead. The advantage with this
is that you longer have to depend on an external dependency. YMMV
though.
lisp/cedet/cedet-cscope.el
lisp/cedet/semantic/symref/cscope.el
- xcscope setup, Timur Aydin, 2015/05/20
- RE: xcscope setup, Doug Lewan, 2015/05/20
- Re: xcscope setup, Timur Aydin, 2015/05/20
- Re: xcscope setup, Michael Heerdegen, 2015/05/20
- Re: xcscope setup, Timur Aydin, 2015/05/20
- Re: xcscope setup, Michael Heerdegen, 2015/05/20
- Re: xcscope setup, Timur Aydin, 2015/05/20
Re: xcscope setup, Dmitry Gutov, 2015/05/20
Re: xcscope setup,
Vaidheeswaran C <=