From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.bugs Subject: bug#14455: 24.3.50; semantic-symref + cscope is problematic Date: Fri, 24 May 2013 00:42:59 +0530 Message-ID: <87ehcxpl1g.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369336459 28753 80.91.229.3 (23 May 2013 19:14:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 May 2013 19:14:19 +0000 (UTC) To: 14455@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 23 21:14:19 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ufaxt-0003TD-Hs for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 May 2013 21:14:17 +0200 Original-Received: from localhost ([::1]:44048 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufaxt-0007do-4C for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 May 2013 15:14:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufaxp-0007dY-0D for bug-gnu-emacs@gnu.org; Thu, 23 May 2013 15:14:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ufaxn-0006uk-O0 for bug-gnu-emacs@gnu.org; Thu, 23 May 2013 15:14:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufaxn-0006ug-KH for bug-gnu-emacs@gnu.org; Thu, 23 May 2013 15:14:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Ufayc-0001lE-Em for bug-gnu-emacs@gnu.org; Thu, 23 May 2013 15:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jambunathan K Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 May 2013 19:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14455 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13693364526666 (code B ref -1); Thu, 23 May 2013 19:15:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 May 2013 19:14:12 +0000 Original-Received: from localhost ([127.0.0.1]:58683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ufaxl-0001jP-Ms for submit@debbugs.gnu.org; Thu, 23 May 2013 15:14:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54673) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ufaxf-0001i9-Mr for submit@debbugs.gnu.org; Thu, 23 May 2013 15:14:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ufawj-0006Zb-Mo for submit@debbugs.gnu.org; Thu, 23 May 2013 15:13:07 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:53371) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufawj-0006ZU-Hl for submit@debbugs.gnu.org; Thu, 23 May 2013 15:13:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufawf-0005LW-6o for bug-gnu-emacs@gnu.org; Thu, 23 May 2013 15:13:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ufawd-0006Lj-39 for bug-gnu-emacs@gnu.org; Thu, 23 May 2013 15:13:01 -0400 Original-Received: from mail-pa0-f53.google.com ([209.85.220.53]:48633) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufawc-0006Jr-P6 for bug-gnu-emacs@gnu.org; Thu, 23 May 2013 15:12:58 -0400 Original-Received: by mail-pa0-f53.google.com with SMTP id kq12so3334901pab.40 for ; Thu, 23 May 2013 12:12:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=G5EauEqlRK818CIblZ1NZFV63p5ZFjjk3mll+G2dmOc=; b=vh3NXBSvx093KB2umC30wwlJvI7RIXq9TGeg7+yLBy+upXuaAfV+atRARF2JnuM8bZ bAZLI38uSGeYPCNoBib1voBUGKM2fpZEpZW0YY+ARBss6EEhfR8wwq8G91AEUHFBIOeZ OYB5GS6NwwAiDGdnb2U0p1YKC+cyYjZxsYN+D7joeFtjTHF/QQrTi4KYDcmnVwIdBWtL o7I+dryjV2w6ftnTGY8qkzz+jf2HFUWnIGJcBFSWTLImUQE3t3ysoCgXWi57FoF3BPTF xcu9KaBIpLLywfLtcN96g4kqNk3GssgQ9uqWby5BIO7aMQaUUZJ4IMOaLaNb9x77F+zl uBbg== X-Received: by 10.68.230.40 with SMTP id sv8mr14287630pbc.30.1369336377881; Thu, 23 May 2013 12:12:57 -0700 (PDT) Original-Received: from debian-6.05 ([115.242.133.33]) by mx.google.com with ESMTPSA id 3sm12740087pbj.46.2013.05.23.12.12.55 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Thu, 23 May 2013 12:12:57 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74508 Archived-At: 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@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