From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: Fwd: Guile's SCM_DEFINE and Semantic mode Date: Mon, 03 Nov 2014 00:12:50 +0100 Message-ID: <87wq7dgpsd.fsf@gnu.org> References: <5454F895.9050005@gnu.org> <5456B125.3050509@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1414970132 2517 80.91.229.3 (2 Nov 2014 23:15:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Nov 2014 23:15:32 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Nov 03 00:15:24 2014 Return-path: Envelope-to: guile-user@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 1Xl4Ml-0008OQ-IW for guile-user@m.gmane.org; Mon, 03 Nov 2014 00:15:23 +0100 Original-Received: from localhost ([::1]:59649 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl4Ml-0000xN-5Z for guile-user@m.gmane.org; Sun, 02 Nov 2014 18:15:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53049) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl4MY-0000xE-7w for guile-user@gnu.org; Sun, 02 Nov 2014 18:15:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xl4MS-0006Og-Cz for guile-user@gnu.org; Sun, 02 Nov 2014 18:15:10 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:34949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl4MS-0006NQ-73 for guile-user@gnu.org; Sun, 02 Nov 2014 18:15:04 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xl4MR-0008IE-2t for guile-user@gnu.org; Mon, 03 Nov 2014 00:15:03 +0100 Original-Received: from reverse-83.fdn.fr ([80.67.176.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Nov 2014 00:15:03 +0100 Original-Received: from ludo by reverse-83.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Nov 2014 00:15:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: reverse-83.fdn.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 13 Brumaire an 223 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.130011 (Ma Gnus v0.11) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:v3ccWxkGL8N4h5xUmmv58MPvK3M= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:11618 Archived-At: Bruno Félix Rezende Ribeiro skribis: > I'm working on a libguile-based project. All function definitions that > are exported from C code to the Guile interpreter are define like this: > (meta-variables between '<' and '>') > > SCM_DEFINE (, , > , , , > , > ) > { > > } > > At C preprocessing time the 'SCM_DEFINE (...)' function header gets > expanded to: > > SCM > > > Unfortunately Semantic doesn't recognize it as a function definition. > How can I make Semantic recognize it as such? I don’t know about Semantic, but I know that GNU GLOBAL doesn’t have any problems dealing with SCM_DEFINE’d functions. So perhaps the simplest way is to use xgtags.el or similar, or to tell Semantic to use GLOBAL as its back-end (info "(semantic) SymRef")? Ludo’.