help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cscope, xcscope.el on Mac OS X 10.2


From: Steve Madsen
Subject: Re: cscope, xcscope.el on Mac OS X 10.2
Date: 7 Nov 2003 17:47:19 -0800

I have found a work-around for this problem.  It appears that the
cscope that comes with OS X and version 15.5 refuses to search
recursively for source files, even if the database was built
recursively.  I haven't had trouble with this in the past, but perhaps
I've just been lucky.

I should also mention that I upgraded to 10.3 since I posted the
original query.  I don't know if that is a factor in this now working
for me.

In any case, my work-around is to make a couple of changes to
xcscope.el.  The first is to add the -R option to the cscope
invocation, so it searches recursively.  This is the key thing.  The
second fix is more convenience for me.  My Microsoft Intellimouse
won't pass the middle mouse click through unmolested, so I moved the
click to select a cscope entry to the right mouse button.

The "right" thing to do is to only add -R when
cscope-index-recursively is non-nil, but I just wanted to get this
working.

--- xcscope.el.orig  Thu Jun 20 08:48:59 2002
+++ xcscope.el      Fri Nov  7 17:36:29 2003
@@ -913,7 +913,7 @@
   ;; The following section does not appear in the "Cscope" menu.
   (if cscope-running-in-xemacs
       (define-key cscope-list-entry-keymap [button2]
'cscope-mouse-select-entry-other-window)
-    (define-key cscope-list-entry-keymap [mouse-2]
'cscope-mouse-select-entry-other-window))
+    (define-key cscope-list-entry-keymap [mouse-3]
'cscope-mouse-select-entry-other-window))
   (define-key cscope-list-entry-keymap [return]
'cscope-select-entry-other-window)
   (define-key cscope-list-entry-keymap " "
'cscope-show-entry-other-window)
   (define-key cscope-list-entry-keymap "o"
'cscope-select-entry-one-window)
@@ -1908,7 +1908,7 @@
     (save-excursion
       (catch 'finished
        (set-buffer outbuf)
-       (setq options '("-L"))
+       (setq options '("-LR"))
        (while (and (not done) cscope-search-list)
          (setq next-item (car cscope-search-list)
                cscope-search-list (cdr cscope-search-list)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]