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 question about gtags in Emacs Date: Wed, 16 Dec 2009 12:16:34 +0800 Message-ID: <87r5qvzh7h.fsf@ymail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1261099934 27483 80.91.229.12 (18 Dec 2009 01:32:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Dec 2009 01:32:14 +0000 (UTC) To: emacs-help Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 18 02:32:06 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 1NLRhL-0004yU-Pw for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Dec 2009 02:32:04 +0100 Original-Received: from localhost ([127.0.0.1]:50811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLRhL-0002DY-Qa for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Dec 2009 20:32:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NKlJd-0003aw-AS for help-gnu-emacs@gnu.org; Tue, 15 Dec 2009 23:16:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NKlJZ-0003aT-Qd for help-gnu-emacs@gnu.org; Tue, 15 Dec 2009 23:16:45 -0500 Original-Received: from [199.232.76.173] (port=37122 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NKlJZ-0003aQ-L4 for help-gnu-emacs@gnu.org; Tue, 15 Dec 2009 23:16:41 -0500 Original-Received: from n13a.bullet.mail.mud.yahoo.com ([68.142.207.51]:40720) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NKlJZ-0001df-9l for help-gnu-emacs@gnu.org; Tue, 15 Dec 2009 23:16:41 -0500 Original-Received: from [68.142.200.221] by n13.bullet.mail.mud.yahoo.com with NNFMP; 16 Dec 2009 04:16:40 -0000 Original-Received: from [68.142.201.245] by t9.bullet.mud.yahoo.com with NNFMP; 16 Dec 2009 04:16:40 -0000 Original-Received: from [127.0.0.1] by omp406.mail.mud.yahoo.com with NNFMP; 16 Dec 2009 04:16:40 -0000 X-Yahoo-Newman-Id: 747698.76320.bm@omp406.mail.mud.yahoo.com Original-Received: (qmail 64970 invoked from network); 16 Dec 2009 04:16:40 -0000 Original-Received: from (WaterLin@119.131.176.18 with plain) by smtp113.plus.mail.sp1.yahoo.com with SMTP; 15 Dec 2009 20:16:39 -0800 PST X-Yahoo-SMTP: WO0n3HuswBDnl_ztuyphhXhZfQT6Knh0FlxZ177rGQ-- X-YMail-OSG: Ju1t5.kVM1krBE6CcPyu7LDFGGvMlFCk72Mz5zZU3onKoLobmoKu5M2l4pliYGokaW7s0Eea6O4yEGUV15cOxg51XHdV8ON5E_iQ.rzAQfhgxzgV_GfB2gY1HpGR9aDlhG4QYIkzSiW5Y26OgdNlh8KnsTlgBcWYne7l1RgZk5mSa3oWJYTkdAUvgCQVUqyKUdGUHm9hoT2JD1sp53UG92_IhIapRxQHeGghPUhqzWomE0SCf7ikOL7KqnW40KvlD6gJXEyd4P4cUMF54xxkMqnh9p1zCtuBxflezb1k1rFdMjYm9OXfr6nRpiqsPL.nXxOkvCl.3GleAfsyzWJldOEAn4d88S1CgZ96bJYQw3UzQFaT0sNH4dkVigmDmneAGdY5iVxRrHfwaFD2icc9be3Yq99SEGRW2w-- X-Yahoo-Newman-Property: ymail-3 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-Mailman-Approved-At: Thu, 17 Dec 2009 20:27:04 -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:70719 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 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com