From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Volkan YAZICI Newsgroups: gmane.emacs.help Subject: Re: Emacs for browsing c code Date: Sun, 18 Apr 2010 03:18:19 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1273010099 22340 80.91.229.12 (4 May 2010 21:54:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 21:54:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 04 23:54:58 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1O9Q4w-0001TK-51 for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 23:54:58 +0200 Original-Received: from localhost ([127.0.0.1]:43830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9Q4v-0005Qu-Hf for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 17:54:57 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!x12g2000yqx.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 56 Original-NNTP-Posting-Host: 139.179.138.96 Original-X-Trace: posting.google.com 1271585899 16353 127.0.0.1 (18 Apr 2010 10:18:19 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 18 Apr 2010 10:18:19 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x12g2000yqx.googlegroups.com; posting-host=139.179.138.96; posting-account=xozGQQoAAAD99EQH9srmwM1ajggyokYW User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.80 (X11; Linux i686; U; en) Presto/2.2.15 Version/10.10,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:177763 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:73209 Archived-At: On Apr 18, 4:59=A0am, "Daniel (Youngwhan)" wrote: > I really like Emacs to edit and browse a c/c++ code with cscope so > far. I have used CEDET and ECB, but they were too complicated and not > for me at this time. So, I decided to use cscope only. > > However, one of what I miss features is browsing function names in a > certain window. Source Insight / Eclipse or other tools supports that > when a function name is clicked in a certain window, it jumps to the > position. I am addicted to cscope as well. I don't know if it is what you're looking for, but below are my xcscope.el configurations. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;= ;;;;; ;;; ;;; C Mode ;;; (defun my-c-mode () (interactive) (hide-ifdef-mode) (c-set-style "bsd") (setq indent-tabs-mode t tab-width 4 c-basic-offset 4 c-backslash-max-column fill-column c-backslash-column c-backslash-max-column) ;; Cscope Bindings (define-key c-mode-map (kbd "C-c . i") 'cscope-find-files-including- file) (define-key c-mode-map (kbd "C-c . f") 'cscope-find-called- functions) (define-key c-mode-map (kbd "C-c . c f") 'cscope-find-functions- calling-this-function) (define-key c-mode-map (kbd "C-c . g") 'cscope-find-global- definition) (define-key c-mode-map (kbd "C-c . s") 'cscope-find-this-symbol) (define-key c-mode-map (kbd "C-c . t") 'cscope-find-this-text- string) (define-key c-mode-map (kbd "C-c . x") 'cscope-index-files)) (add-hook 'c-mode-hook 'my-c-mode) ;;; xcscope.el (load "~/elisp/xcscope.el") (require 'xcscope) It doesn't provide a separate window for stuff, but I'm happy with "C- x 0", "C-x 1", "C-x 2", "C-x 3", and "C-x b" so far. I hope it works for you as well. Regards.