help-gnu-emacs
[Top][All Lists]
Advanced

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

xcscope setup


From: Timur Aydin
Subject: xcscope setup
Date: Wed, 20 May 2015 15:11:41 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

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,

-- 
Timur Aydin



reply via email to

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