Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

using cscope inside emacs with mac os x

701 views
Skip to first unread message

F.-Y Wang

unread,
Jan 12, 2011, 6:02:09 AM1/12/11
to help-gn...@gnu.org
Hi,
I am trying to use cscope inside emacs 23.2. I am using xcscope.el for this.
I have created cscope.out, cscope.out.po, cscope.out.in and
cscope.files using cscope-indexer -r in mac os x. I have placed all
these cscope.* files in the root directory of my project tree. When I
try to use any of the cscope commands it throws me an error in
mini-buffer saying
"no such file or directory cscope".

Could some one please provide me some clue about what's going wrong
here.


Thanks a lot

Bernardo

unread,
Jan 15, 2011, 9:38:12 PM1/15/11
to help-gn...@gnu.org

is cscope on your path?
in Emacs, what does
C-h v cscope-program RET
report?

kaundin...@gmail.com

unread,
Jan 7, 2012, 2:28:19 PM1/7/12
to help-gn...@gnu.org, bernard...@pobox.com
Bernardo,

I am facing the same problem. C-h v cscope-program RET says that this does not exist

How can I fix this?

Please advice.

Best.
SK

kaundin...@gmail.com

unread,
Jan 7, 2012, 2:29:28 PM1/7/12
to help-gn...@gnu.org, bernard...@pobox.com
Bernardo,

I am facing the same problem. C-h v cscope-program RET says that this does not exist

How can I fix this? Cscope is in my Path.

Please advice.

Best.
SK

kaundin...@gmail.com

unread,
Jan 7, 2012, 2:29:28 PM1/7/12
to gnu.ema...@googlegroups.com, help-gn...@gnu.org
Bernardo,

I am facing the same problem. C-h v cscope-program RET says that this does not exist

gran...@gmail.com

unread,
Nov 11, 2013, 3:18:00 AM11/11/13
to
have the same problem and fixed.

1. Check the cscope path
2. Add the path into the emacs configuration file. For example, .emacs.d/init.el
;;; Mac OS X Setup
;;; The Mac may fail to find cscope
(when (eq system-type 'darwin)
;;; exec path
(setq exec-path (append '("/opt/local/bin")
exec-path)))

Andrew

unread,
Dec 3, 2020, 11:25:47 PM12/3/20
to
It works perfectly and better than another way using "csrutil disable" to create a soft link, cscope under /usr/bin.

Thanks a lot!
-Andrew
0 new messages