From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matzi Kratzi Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#2544: 23.0.60; Could etags please try find a local tag first? Date: Mon, 2 Mar 2009 22:36:40 +0100 Message-ID: <7f9b11c90903021336o775a3f75i8bd89f3ae4540cb7@mail.gmail.com> Reply-To: Matzi Kratzi , 2544@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1236031480 15308 80.91.229.12 (2 Mar 2009 22:04:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Mar 2009 22:04:40 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 02 23:05:56 2009 Return-path: Envelope-to: geb-bug-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 1LeGG6-0000ke-7K for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Mar 2009 23:05:50 +0100 Original-Received: from localhost ([127.0.0.1]:49111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LeGEl-0002se-5D for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Mar 2009 17:03:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LeGEh-0002sZ-Lq for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2009 17:03:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LeGEg-0002sN-5K for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2009 17:03:42 -0500 Original-Received: from [199.232.76.173] (port=44305 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LeGEf-0002sK-Vn for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2009 17:03:42 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50097) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LeGEf-0005dJ-6h for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2009 17:03:41 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n22M3cCB032320; Mon, 2 Mar 2009 14:03:39 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n22Lj3u7027552; Mon, 2 Mar 2009 13:45:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Matzi Kratzi Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 02 Mar 2009 21:45:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2544 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123602981326148 (code B ref -1); Mon, 02 Mar 2009 21:45:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 2 Mar 2009 21:36:53 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n22Lanbn026141 for ; Mon, 2 Mar 2009 13:36:50 -0800 Original-Received: from mx10.gnu.org ([199.232.76.166]:35261) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LeFmL-00048a-7C for emacs-pretest-bug@gnu.org; Mon, 02 Mar 2009 16:34:25 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LeFoc-00008a-Qs for emacs-pretest-bug@gnu.org; Mon, 02 Mar 2009 16:36:47 -0500 Original-Received: from fg-out-1718.google.com ([72.14.220.155]:60017) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LeFoc-00007T-7w for emacs-pretest-bug@gnu.org; Mon, 02 Mar 2009 16:36:46 -0500 Original-Received: by fg-out-1718.google.com with SMTP id l27so993532fgb.30 for ; Mon, 02 Mar 2009 13:36:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=joE549E7YkEZGKE6TLB3Wg6d3uLQ1OnDAsEJwcCrj+k=; b=p/jHk0kiKPEkGCssDDcVm5xyF9IGkhDTe73Q+bx0GzQ/x9JvJ9Sa+lJ+krTUPkYptu Dqm1cc3LCq2YHAxy34MN/Gi6275O2ll4YITHZhT0dTrdSv06IGGln3W4zUic3W4jEvHo rEUTVrNdHTvnbKZcvt6PQZd7l2u+J4K/0jHWA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=xfoEU6StD0HFWmTR5AL5EeBRQxhNaPNKq5lBmduuReOnQCC9M/g218xPoUi43mAN0K 5HjxXvwABRkVYlRW5cNm2aDZKh7njMShGfgRpDdaDO0Vkzl7iFrQ1y2rCEi9hMVQucDA zlnGZXrbgf843SVZB5gWXfMJLBEBpZ8Y58Is4= Original-Received: by 10.86.28.2 with SMTP id b2mr2159987fgb.75.1236029800680; Mon, 02 Mar 2009 13:36:40 -0800 (PST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 02 Mar 2009 17:03:42 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:25924 gmane.emacs.pretest.bugs:24042 Archived-At: Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Would it make sense, in general, for etags to first try to find a tag inside the current buffer? I am working in legacy code that has the same name for certain help functions in many files. I would like etags to first try find the tag inside the current buffer. Please consider the following files: a.c: #include static void help_func (void) { printf ("ad"); } void a_func (void) { help_func (); printf ("a\n"); } a.h: void a_func (void); b.c: #include #include "a.h" static void help_func (void); int main (void) { help_func (); a_func (); return 0; } static void help_func (void) { printf ("kalle\n"); } c:\src\example>C:\download\emacs-cvs\bin\etags a.c a.h b.c Then go to the line " help_func ();" in b.c and try find-tag. You will be taken to the function defined in a.c. I know about "C-u M-.", but that is not a very big help if there is a big number of files with different help_funcs. Best Regards Mats If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file c:/download/emacs-cvs/etc/DEBUG for instructions. In GNU Emacs 23.0.60.1 (i386-mingw-nt6.0.6001) of 2009-01-15 on LENNART-69DE564 Windowing system distributor `Microsoft Corp.', version 6.0.6001 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include -fno-crossjumping' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: SVE value of $XMODIFIERS: nil locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: C/l Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: h e l p _ f u n c C-SPC M-w C-y M-d C-a C-SPC M-; h e M-/ M-d C-x C-s C-x C-s ; C-x C-s M-d M-/ M-/ h e M-/ M-d C-x C-s M-x C-g C-g C-x 5 2 M-x s h e l l c d SPC C-y c d SPC C-a e t a g s SPC a . c SPC * SPC b * . * C-x C-f T A G S C-x k c SPC a . h SPC c C-x C-f C-x k M-. M-* M-x r e p o r t SPC e m a SPC Recent messages: Quit [2 times] Mark set c:/download/emacs-cvs/bin Mark set c:/download/src/a History item: 1 History item: 2 History item: 1 Starting a new list of tags tables Mark set