From unknown Sun Jun 22 04:12:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14455: 24.3.50; semantic-symref + cscope is problematic 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: To: 14455@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13693364526666 (code B ref -1); Thu, 23 May 2013 19:15:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 May 2013 19:14:12 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-100.7 required=5.0 tests=BAYES_40,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID,USER_IN_WHITELIST autolearn=disabled version=3.3.2 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 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 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 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 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) 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) From: Jambunathan K Date: Fri, 24 May 2013 00:42:59 +0530 Message-ID: <87ehcxpl1g.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain 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-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) 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 From unknown Sun Jun 22 04:12:36 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Jambunathan K Subject: bug#14455: closed (Re: bug#14455: 24.3.50; semantic-symref + cscope is problematic) Message-ID: References: <87sn9qyl2t.fsf@gmail.com> <87ehcxpl1g.fsf@gmail.com> X-Gnu-PR-Message: they-closed 14455 X-Gnu-PR-Package: emacs Reply-To: 14455@debbugs.gnu.org Date: Fri, 15 Nov 2013 03:52:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1384487522-30558-1" This is a multi-part message in MIME format... ------------=_1384487522-30558-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #14455: 24.3.50; semantic-symref + cscope is problematic which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 14455@debbugs.gnu.org. --=20 14455: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D14455 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1384487522-30558-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 14455-done) by debbugs.gnu.org; 15 Nov 2013 03:51:50 +0000 Received: from localhost ([127.0.0.1]:52976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VhARh-0007wM-Cs for submit@debbugs.gnu.org; Thu, 14 Nov 2013 22:51:49 -0500 Received: from mail-pb0-f44.google.com ([209.85.160.44]:58493) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VhARg-0007w7-1p for 14455-done@debbugs.gnu.org; Thu, 14 Nov 2013 22:51:48 -0500 Received: by mail-pb0-f44.google.com with SMTP id rp16so2994544pbb.17 for <14455-done@debbugs.gnu.org>; Thu, 14 Nov 2013 19:51:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=9Y/aZhyl2LAS9ATrBhtvd27mDdZzboM5RumgaeyJWww=; b=kTw6/gkgWxzioHJvq+y35M5nQ86CsNLjqFN3N28K85t3LRz74y5qQPREcnq8nQyB2b DHKtU9NZ1mt1TUPaDBkefVlvIvKpsj6srs8LDcxrmL8R8uYiu52C/7y+WRV8245H12MS R1Hn0CQuCoaBI/tjuj0J8IjvPxiZ4MPU0zxkakFdjmLUnXnuzUEy+EQvUVgTGowobpFV 73JgHGeg8XbpaYYB9o1yhHZGuzGfLIVF8y19oZx4soABjH0PRqO4NLie0rhNaxUZ9UVo QYtW1gUnBJFe0GLp6M1+Ryc36X8Lbz6ImafIX4Z5Gtf3JPTxwQQx6F6EQNorREgOou9V ZD8A== X-Received: by 10.66.119.136 with SMTP id ku8mr4750504pab.121.1384487502239; Thu, 14 Nov 2013 19:51:42 -0800 (PST) Received: from debian-6.05 ([101.63.165.167]) by mx.google.com with ESMTPSA id 8sm1193231pbv.0.2013.11.14.19.51.40 for <14455-done@debbugs.gnu.org> (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Thu, 14 Nov 2013 19:51:41 -0800 (PST) From: Jambunathan K To: 14455-done@debbugs.gnu.org Subject: Re: bug#14455: 24.3.50; semantic-symref + cscope is problematic References: <87ehcxpl1g.fsf@gmail.com> Date: Tue, 01 Jan 2002 05:54:42 +0530 In-Reply-To: <87ehcxpl1g.fsf@gmail.com> (Jambunathan K.'s message of "Fri, 24 May 2013 00:42:59 +0530") Message-ID: <87sn9qyl2t.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: I have a local fix that works for me. So closing it. [...] Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (kjambunathan[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.44 listed in list.dnswl.org] 2.1 DATE_IN_PAST_96_XX Date: is 96 hours or more before Received: date -0.0 SPF_PASS SPF: sender matches SPF record 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Debbugs-Envelope-To: 14455-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: I have a local fix that works for me. So closing it. [...] Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.44 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (kjambunathan[at]gmail.com) 2.1 DATE_IN_PAST_96_XX Date: is 96 hours or more before Received: date -0.0 SPF_PASS SPF: sender matches SPF record 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid I have a local fix that works for me. So closing it. ------------=_1384487522-30558-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 23 May 2013 19:14:12 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-100.7 required=5.0 tests=BAYES_40,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID,USER_IN_WHITELIST autolearn=disabled version=3.3.2 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 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 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 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 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) 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) From: Jambunathan K To: bug-gnu-emacs@gnu.org Subject: 24.3.50; semantic-symref + cscope is problematic Date: Fri, 24 May 2013 00:42:59 +0530 Message-ID: <87ehcxpl1g.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain 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-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) 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 ------------=_1384487522-30558-1--