From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: Help needed to enable cscope Date: Wed, 03 Dec 2008 04:26:17 +0100 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1228275697 19338 80.91.229.12 (3 Dec 2008 03:41:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Dec 2008 03:41:37 +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 Dec 03 04:42:40 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L7idL-0001SP-Uy for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Dec 2008 04:42:40 +0100 Original-Received: from localhost ([127.0.0.1]:56747 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7icB-0008F7-N1 for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Dec 2008 22:41:27 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news.k-dsl.de!news.motzarella.org!motzarella.org!news.motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-X-Trace: news.motzarella.org U2FsdGVkX18Znzy3NYiPF58mTxfxetMuhNWz+pttqbOs+sBHsnm4EFis3L22ImkUPIMG5TCZ4MvwGgeCJ0tZZ/I5XeRlD6izwKZPVVJDqc67LD6ONksHHaGM7XA6pO39EiKb+0zUCe54Uhm/4csOng== Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Wed, 3 Dec 2008 03:27:11 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1/mKMMTGO6J5idZBURFtIG1D/00B9nXYBSKBHp6j4vlTA== Cancel-Lock: sha1:EP/vZXNLdTPFJN8GUa/0iNBQmGQ= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:165004 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60329 Archived-At: ZelluX writes: > Hi, all > > I'm new to emacs and now have some difficulty in enabling cscope in > emacs. > > I've installed cscope on my ArchLinux and downloaded xcscope.el and > cscope-indexer from cscope.sf.net > > Then i copied cscope-indexer to /usr/bin(with executable permission) > and xcscope.el to ~/emacs, and add lines to ~/.emacs like this: > > (setq load-path (cons "~/emacs" load-path)) > (require 'xcscope) > > But when i start emacs again, and press Ctrl-c s, it says 'C-c s is > undefined'. At first i thought it was because emacs couldnot find > xcscope, but when i renamed xcscope.el to xcscope1.el, the emacs said > 'cannot find xcscope', which didn't occur before renaming, so i think > the path is just right. > > Could you help me find out where the problem lies? Thanks for your > reply. Did you open a C file first? Is there a cscope menu item? Check the functions are available C-h f cscope-find-global-definition or M-x cscope Are functions defined? My set up for cscope can be seen here: http://richardriley.net/default/projects/emacs/dotprogramming#sec-1.2