From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Water Lin Newsgroups: gmane.emacs.help Subject: Two questions about Emacs gtags mode Date: Tue, 08 Dec 2009 18:14:46 +0800 Organization: A poorly-installed InterNetNews site Message-ID: <87my1t7ox5.fsf@ymail.invalid> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1260301926 17668 80.91.229.12 (8 Dec 2009 19:52:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Dec 2009 19:52:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 08 20:51:59 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NI66H-0004sQ-Na for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Dec 2009 20:51:57 +0100 Original-Received: from localhost ([127.0.0.1]:54165 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NI66H-0003sX-M3 for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Dec 2009 14:51:57 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!bloom-beacon.mit.edu!61.160.235.197.MISMATCH!www.shinco.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 46 Original-NNTP-Posting-Host: 119.131.176.18 Original-X-Trace: www.shinco.com 1260267283 3701 119.131.176.18 (8 Dec 2009 10:14:43 GMT) Original-X-Complaints-To: news@www.shinco.com Original-NNTP-Posting-Date: Tue, 8 Dec 2009 10:14:43 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:zqlTSYNQSqLz0WmrayRd7wPj/zA= Original-Xref: news.stanford.edu gnu.emacs.help:175419 X-Mailman-Approved-At: Tue, 08 Dec 2009 14:51:30 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70503 Archived-At: 1. My Emacs can't find tags I am trying to use Gtags mode in my Emacs to read source code. In my project folder, I use cammad $ gtags from shell to establish four necessary files like GPATH, GTAGS. I also use command $ gtags to establish index in my /usr/include folder, and I also add /usr/include to environment variable GTAGSLIBPATH. So now I can use command $ global timeval , and I will get output like: ----------- $ global timeval ../../../../../../usr/include/X11/Xos.h ../../../../../../usr/include/audio/Aos.h ../../../../../../usr/include/bits/time.h ../../../../../../usr/include/linux/time.h ----------- It seems that global works all right now. But when I use Emacs gtags-mode, I use M-. to check the declaration of timeval , Emacs prompts me that "timeval: tag not found [2 times]". Why my Emacs can't find this tag? 2. What is the difference between the Google-gtags and Emacs default gtags-mode? The Google-gtags link is: ----------- http://code.google.com/p/google-gtags/ ----------- Hope someone can help me! Thanks Water Lin -- Water Lin's notes and pencils: http://en.waterlin.org Email: WaterLin@ymail.com