unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: steve@moonglade.com (Steve Madsen)
Subject: Re: cscope, xcscope.el on Mac OS X 10.2
Date: 7 Nov 2003 17:47:19 -0800	[thread overview]
Message-ID: <cd7f7e22.0311071747.4edb9c0d@posting.google.com> (raw)
In-Reply-To: cd7f7e22.0310311320.33fd031f@posting.google.com

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	other threads:[~2003-11-08  1:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-31 21:20 cscope, xcscope.el on Mac OS X 10.2 Steve Madsen
2003-11-08  1:47 ` Steve Madsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cd7f7e22.0311071747.4edb9c0d@posting.google.com \
    --to=steve@moonglade.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).