From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Timur Aydin Newsgroups: gmane.emacs.help Subject: xcscope setup Date: Wed, 20 May 2015 15:11:41 +0300 Message-ID: <555C79FD.9040805@taydin.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1432123932 5750 80.91.229.3 (20 May 2015 12:12:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 May 2015 12:12:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 20 14:12:07 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yv2r1-00052q-G4 for geh-help-gnu-emacs@m.gmane.org; Wed, 20 May 2015 14:12:07 +0200 Original-Received: from localhost ([::1]:51658 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv2r0-0006yO-QF for geh-help-gnu-emacs@m.gmane.org; Wed, 20 May 2015 08:12:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv2qk-0006vh-24 for help-gnu-emacs@gnu.org; Wed, 20 May 2015 08:11:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yv2qe-0004hT-DI for help-gnu-emacs@gnu.org; Wed, 20 May 2015 08:11:50 -0400 Original-Received: from bonsai.taydin.org ([213.14.134.124]:34710 helo=mail.taydin.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv2qe-0004gt-5q for help-gnu-emacs@gnu.org; Wed, 20 May 2015 08:11:44 -0400 Original-Received: from [127.0.0.1] (mail.taydin.org [127.0.0.1]) by mail.taydin.org (Postfix) with ESMTPSA id C3F83440032 for ; Wed, 20 May 2015 15:11:41 +0300 (EEST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 213.14.134.124 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104494 Archived-At: 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