unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* cscope, xcscope.el on Mac OS X 10.2
@ 2003-10-31 21:20 Steve Madsen
  2003-11-08  1:47 ` Steve Madsen
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Madsen @ 2003-10-31 21:20 UTC (permalink / raw)


I'm having some trouble getting Darryl Okahata's xcscope.el working
with Carbon Emacs 21.3.50.1 on Mac OS X 10.2.8.  In a nutshell, the
indexing works, but no results are ever returned from a query.  I can
run the same query from a shell and it works fine.

I've tried both pre-built binaries from earlier this year as well as
building my own from CVS.  I've played around with
process-connection-type with no success.

It sounds like cscope is being invoked based on my disk chittering
away, but no results are ever returned in the cscope buffer.  The
search time also varies depending on the particular query I'm running.

I've tried the cscope binary that ships with OS X as well as my own
compiled version of 15.5.

I'm not sure what to try next.  Any suggestions will be greatly
appreciated.  (For example, I'd like to make xcscope.el put whatever
it gets back from cscope in a buffer I can examine, but I don't know
nearly enough Lisp to do it.)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: cscope, xcscope.el on Mac OS X 10.2
  2003-10-31 21:20 cscope, xcscope.el on Mac OS X 10.2 Steve Madsen
@ 2003-11-08  1:47 ` Steve Madsen
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Madsen @ 2003-11-08  1:47 UTC (permalink / raw)


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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-08  1:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-31 21:20 cscope, xcscope.el on Mac OS X 10.2 Steve Madsen
2003-11-08  1:47 ` Steve Madsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).