* Emacs for browsing c code
@ 2010-04-18 1:59 Daniel (Youngwhan)
2010-04-18 6:12 ` Tim X
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Daniel (Youngwhan) @ 2010-04-18 1:59 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
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 tried to google, but no luck to find it.
Does anybody know that kind of feature is possible in emacs not using
CEDET/ECB to make simple?
Thanks,
Daniel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Emacs for browsing c code
2010-04-18 1:59 Emacs for browsing c code Daniel (Youngwhan)
@ 2010-04-18 6:12 ` Tim X
2010-04-18 10:18 ` Volkan YAZICI
2010-05-04 22:07 ` Drew Adams
2 siblings, 0 replies; 6+ messages in thread
From: Tim X @ 2010-04-18 6:12 UTC (permalink / raw)
To: help-gnu-emacs
"Daniel (Youngwhan)" <breadncup@gmail.com> writes:
> Hi,
>
> 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 tried to google, but no luck to find it.
>
> Does anybody know that kind of feature is possible in emacs not using
> CEDET/ECB to make simple?
>
> Thanks,
>
You should be able to do that using a tags file and speedbar.
Tim
--
tcross (at) rapttech dot com dot au
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Emacs for browsing c code
2010-04-18 1:59 Emacs for browsing c code Daniel (Youngwhan)
2010-04-18 6:12 ` Tim X
@ 2010-04-18 10:18 ` Volkan YAZICI
2010-04-19 6:43 ` Daniel (Youngwhan)
2010-05-04 22:07 ` Drew Adams
2 siblings, 1 reply; 6+ messages in thread
From: Volkan YAZICI @ 2010-04-18 10:18 UTC (permalink / raw)
To: help-gnu-emacs
On Apr 18, 4:59 am, "Daniel (Youngwhan)" <breadn...@gmail.com> 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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Emacs for browsing c code
2010-04-18 10:18 ` Volkan YAZICI
@ 2010-04-19 6:43 ` Daniel (Youngwhan)
0 siblings, 0 replies; 6+ messages in thread
From: Daniel (Youngwhan) @ 2010-04-19 6:43 UTC (permalink / raw)
To: help-gnu-emacs
On Apr 18, 3:18 am, Volkan YAZICI <volkan.yaz...@gmail.com> wrote:
> On Apr 18, 4:59 am, "Daniel (Youngwhan)" <breadn...@gmail.com> 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.
Thanks Guys,
Speedbar is sort of working for me at this time. :)
Thank you!
Daniel
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Emacs for browsing c code
2010-04-18 1:59 Emacs for browsing c code Daniel (Youngwhan)
2010-04-18 6:12 ` Tim X
2010-04-18 10:18 ` Volkan YAZICI
@ 2010-05-04 22:07 ` Drew Adams
2010-05-05 6:17 ` Daniel (Youngwhan) Song
2 siblings, 1 reply; 6+ messages in thread
From: Drew Adams @ 2010-05-04 22:07 UTC (permalink / raw)
To: 'Daniel (Youngwhan)', help-gnu-emacs
> 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.
>
> Does anybody know that kind of feature is possible in emacs not using
> CEDET/ECB to make simple?
In vanilla Emacs, imenu and tags (a tags file) are good ways to navigate to
function etc. definitions.
If you use Icicles, then you can use both of them with completion in various
ways. And you can use imenu across multiple files or buffers (vanilla imenu is
single-buffer).
http://www.emacswiki.org/emacs/Icicles_-_Tags_Enhancements
http://www.emacswiki.org/emacs/Icicles_-_Other_Search_Commands#IciclesImenu
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Emacs for browsing c code
2010-05-04 22:07 ` Drew Adams
@ 2010-05-05 6:17 ` Daniel (Youngwhan) Song
0 siblings, 0 replies; 6+ messages in thread
From: Daniel (Youngwhan) Song @ 2010-05-05 6:17 UTC (permalink / raw)
To: Drew Adams; +Cc: help-gnu-emacs
On 5/4/10 3:07 PM, Drew Adams 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.
>>
>> Does anybody know that kind of feature is possible in emacs not using
>> CEDET/ECB to make simple?
>>
> In vanilla Emacs, imenu and tags (a tags file) are good ways to navigate to
> function etc. definitions.
>
> If you use Icicles, then you can use both of them with completion in various
> ways. And you can use imenu across multiple files or buffers (vanilla imenu is
> single-buffer).
>
> http://www.emacswiki.org/emacs/Icicles_-_Tags_Enhancements
>
>
> http://www.emacswiki.org/emacs/Icicles_-_Other_Search_Commands#IciclesImenu
>
>
Thank you for the suggest, Drew.
I will take a look.
Thank you!
Daniel
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-05-05 6:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-18 1:59 Emacs for browsing c code Daniel (Youngwhan)
2010-04-18 6:12 ` Tim X
2010-04-18 10:18 ` Volkan YAZICI
2010-04-19 6:43 ` Daniel (Youngwhan)
2010-05-04 22:07 ` Drew Adams
2010-05-05 6:17 ` Daniel (Youngwhan) Song
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.