From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: gtags-find-tag and gtags-find-rtag in C-code Date: Tue, 2 Jun 2015 22:09:41 +0300 Message-ID: <556DFF75.5030800@yandex.ru> References: <87vbf65jem.fsf@free.fr> <83h9qqrvys.fsf@gnu.org> <877frm5caz.fsf@roche-blanche.net> <83a8wirsve.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1433272229 23034 80.91.229.3 (2 Jun 2015 19:10:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Jun 2015 19:10:29 +0000 (UTC) To: Eli Zaretskii , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 02 21:10:28 2015 Return-path: Envelope-to: geh-help-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 1YzrZv-0000EF-1M for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Jun 2015 21:10:23 +0200 Original-Received: from localhost ([::1]:60496 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzrZu-0000X1-7q for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Jun 2015 15:10:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzrZf-0000UO-1B for help-gnu-emacs@gnu.org; Tue, 02 Jun 2015 15:10:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YzrZb-0005n5-2L for help-gnu-emacs@gnu.org; Tue, 02 Jun 2015 15:10:06 -0400 Original-Received: from mail-wg0-x234.google.com ([2a00:1450:400c:c00::234]:36011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzrZa-0005e4-RN; Tue, 02 Jun 2015 15:10:02 -0400 Original-Received: by wgbgq6 with SMTP id gq6so148308634wgb.3; Tue, 02 Jun 2015 12:09:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=jzg6s9YkzH+mlXA4liXzc1Lm5I9C4/EJSHm7apb+fFs=; b=o/KQFIuuygb+jqUsPzQ6oSSZuQ6eagvHK3bwei9k3tOJJF10nYkMZeZg0vGogHOUJE hXLAcLALLhuYLSV7GGMT1CPKx22Wqqz/OZ+wFELyLglRR9m348GstPYXY7PThPOBpWhI MNqcFdwdz0Eqi5lHerF9jml34IBkgcUYaLndS5b0u2NrJHPPc/KUdZJtlHSz3dK3DFje HYfjUwhGGBcp7r7RppfX39el5rwT3+SL9TWt0JyWp44XHoPxhHNyUvdaV5mdSRsWxZTa CgEB+gVMwpXESnjktYw+VefqgXk/Red+fPO6pv/XKnKu0LsjobJEXqO3WhGpHwKa/MoD b8jQ== X-Received: by 10.194.24.70 with SMTP id s6mr2015869wjf.25.1433272183888; Tue, 02 Jun 2015 12:09:43 -0700 (PDT) Original-Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id i6sm28224411wjf.29.2015.06.02.12.09.42 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jun 2015 12:09:43 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: <83a8wirsve.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::234 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104717 Archived-At: On 06/02/2015 07:13 PM, Eli Zaretskii wrote: >> Is there support for pushing and popping the locations (for jumping >> back and forth)? > > The development sources for Emacs have that via xref, I think. xref doesn't have a bundled backend for id-utils, or gtags, or etc. So xref-find-definitions will use etags, if available, but xref-find-references can use id-utils, or cscope, or gtags, but purely as an optimization over grep, which it will fall back to in the absence or other tools (or index files generated by them). >> Shouldn't gtags do the job, just with the right setup, that I am >> probably missing? > > I don't use gtags, but isn't it just for definitions? gtags can do a lot of things. Users interested in it should try https://github.com/leoliu/ggtags, also available via GNU ELPA (no integration with xref, though).