GNU bug report logs - #14455
24.3.50; semantic-symref + cscope is problematic

Previous Next

Package: emacs;

Reported by: Jambunathan K <kjambunathan <at> gmail.com>

Date: Thu, 23 May 2013 19:15:02 UTC

Severity: normal

Found in version 24.3.50

Done: Jambunathan K <kjambunathan <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14455 in the body.
You can then email your comments to 14455 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#14455; Package emacs. (Thu, 23 May 2013 19:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jambunathan K <kjambunathan <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 23 May 2013 19:15:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jambunathan K <kjambunathan <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; semantic-symref + cscope is problematic
Date: Fri, 24 May 2013 00:42:59 +0530

STEP 1: Create cscope xref
======

$ cd ~/src/emacs/trunk/src (This is a Bzr checkout)
$ find . -name '*.[ch]' > cscope.files
$ cscope -b

$ ls -al cscope.*
-rw-r--r-- 1 kjambunathan kjambunathan    2159 May 24 00:20 cscope.files
-rw-r--r-- 1 kjambunathan kjambunathan 8346136 May 24 00:20 cscope.out

STEP 2: Enable semantic
======

emacs -Q

Tools->Source code parsers(Semantic)->ON

STEP 3: Visit some C file in Emacs src.  Make sure cscope is used as symref tool
======

C-x C-f ~/src/emacs/trunk/src/buffer.c

STEP 4: Lookup definition of `set_interval_object'
======

C-c , J 

The above command would have loaded symref tool.  Make sure cscope
(and not grep) is the one that is used.

M-: (semantic-symref-calculate-rootdir)
    => "/home/kjambunathan/src/emacs/trunk/src/"

M-: (semantic-symref-detect-symref-tool)
    => cscope

STEP 5: Position the cursor over `INTERVAL' in it's signature
======

static void
set_interval_object (INTERVAL i, Lisp_Object obj)
                         ^
                         |
                         |
C-c , J


STEP 6: Expected Behaviour
======

I expect that 'INTTERVAL' be offered at the prompt.  Note the bug. `INTERVAL' is a symbol right.

Just type INTERVAL out.  Now semantic refuses to proceed ahead saying no match.


STEP 7:  Check that the native cscope looks up INTERVAL just fine.
=====

$ cscope
$ C-n (Cursor should be in Find this global definition)
$ Type out INTERVAL

cscope will take you to lisp.h with cursor at

     typedef struct interval *INTERVAL;


STEP 8: Can semantic do the right thing when I lookup INTERVAL?
======


----------------------------------------------------------------


In GNU Emacs 24.3.50.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2013-05-20 on debian-6.05
Bzr revision: 112643 mituharu <at> math.s.chiba-u.ac.jp-20130520031520-pq1c1qjertan94kq
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
Important settings:
  value of $LANG: en_IN
  locale-coding-system: iso-latin-1-unix
  default enable-multibyte-characters: t





Reply sent to Jambunathan K <kjambunathan <at> gmail.com>:
You have taken responsibility. (Fri, 15 Nov 2013 03:52:02 GMT) Full text and rfc822 format available.

Notification sent to Jambunathan K <kjambunathan <at> gmail.com>:
bug acknowledged by developer. (Fri, 15 Nov 2013 03:52:02 GMT) Full text and rfc822 format available.

Message #10 received at 14455-done <at> debbugs.gnu.org (full text, mbox):

From: Jambunathan K <kjambunathan <at> gmail.com>
To: 14455-done <at> debbugs.gnu.org
Subject: Re: bug#14455: 24.3.50; semantic-symref + cscope is problematic
Date: Tue, 01 Jan 2002 05:54:42 +0530
I have a local fix that works for me.  So closing it.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 13 Dec 2013 12:24:22 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 192 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.