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: How to configure xcscope Date: Wed, 06 May 2009 09:14:46 +0200 Organization: aich tea tea pea dicky riley dot net 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 1241595730 15808 80.91.229.12 (6 May 2009 07:42:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 May 2009 07:42:10 +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 06 09:42:01 2009 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 1M1blN-000280-G7 for geh-help-gnu-emacs@m.gmane.org; Wed, 06 May 2009 09:41:58 +0200 Original-Received: from localhost ([127.0.0.1]:55896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1blN-00079v-0t for geh-help-gnu-emacs@m.gmane.org; Wed, 06 May 2009 03:41:57 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!feeder.news-service.com!feeder.news-service.com!85.214.71.121.MISMATCH!eternal-september.org!feeder.motzarella.org!motzarella.org!news.motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 49 Original-X-Trace: news.eternal-september.org U2FsdGVkX19KY0sZDoWOqJYu1Ze9AVY2yjbsNaTGfSnF0+4RejsTKdJ3fdX9VsWVuYTF7sa6Wj3QljVdf6vEEjle+bjc13Bh8CcO7U8RK0fVxAx7WP3xsprOGwdZI6oeAICBkV2Rp9K6TMUkhraszA== Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Wed, 6 May 2009 07:14:48 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1/NuIegWBR4889eSQco9TK4bO4Nq39kkw34OdDjiaQ1Ow== Cancel-Lock: sha1:ggAbCT2uuAirsOaT1vmXp5SEvUE= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:168929 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:64201 Archived-At: Lucius Fox writes: > Hi, > > I am following this link http://frodo.syminet.com/~deep/emacside.html > in setting up cscope with emacs. > > But how can I configure it so that it looks at *.mm files when > building the cscope database? > > Symbol Lookup with cscope > > Download cscope program, and xcscope.el and cscope-indexer from an OSS > repository. Save the xcscope.el onto some directory in Emacs' > load-path. Edit your ~/.emacs as follows: > (require 'xcscope) > > Thank you. > > I dont know what an .mm file is but you can see my working setup here in case it helps you or some others. http://richardriley.net/projects/emacs/dotprogramming#sec-1.2 (FWIW, just listing key strokes without the name of the commands is not a good thing since key strokes can and do change) With this setup I also have some code to generate cscope databases: ,---- | SRC=~/programming | cd $SRC | ctags-exuberant -e --recurse=yes --links=yes --verbose=no > /dev/null | find -L $SRC -name "*.[chxsS]" -print > cscope.files | cscope -b -q -u | | SRC=~/programming/c | cd $SRC | ctags-exuberant -e --recurse=yes --links=yes --verbose=no > /dev/null | find -L $SRC -name "*.[chxsS]" -print > cscope.files | cscope -b -q -u `---- (The Linux kernel has a cscope target in it's Makefile) Cscope is a nice tool.