From: Matzi Kratzi <matzikratzi@gmail.com>
To: emacs-pretest-bug@gnu.org
Subject: bug#2544: 23.0.60; Could etags please try find a local tag first?
Date: Mon, 2 Mar 2009 22:36:40 +0100 [thread overview]
Message-ID: <7f9b11c90903021336o775a3f75i8bd89f3ae4540cb7@mail.gmail.com> (raw)
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 <stdio.h>
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 <stdio.h>
#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:
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<delete> <delete> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
h e l p _ f u n c <delete> <delete> <delete> <delete>
<delete> <delete> <delete> C-SPC <left> <left> <left>
<left> <left> <left> <left> <left> <left> M-w <down>
<down> <down> <down> <left> <left> <left> <left> <left>
<left> <left> <left> <left> <left> <left> <right> C-y
M-d <down> <down> <down> <down> <down> <down> C-a C-SPC
<down> <down> <down> <down> <down> M-; <up> <up> <up>
<up> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> h e
M-/ M-d C-x C-s <up> <up> <up> <up> <up> <up> <up>
<up> <down> <down> <tab> <down> <tab> <up> <tab> <up>
C-x C-s <up> <up> <up> <end> ; C-x C-s <help-echo>
<down-mouse-1> <mouse-movement> <mouse-movement> <drag-mouse-1>
<help-echo> <down-mouse-2> <mouse-2> M-d <down-mouse-2>
<mouse-2> M-/ M-/ <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> h e
M-/ M-d C-x C-s M-x C-g C-g C-x 5 2 <switch-frame>
M-x s h e l l <return> <help-echo> <down-mouse-1> <mouse-movement>
<mouse-1> c d SPC C-y <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <return>
c d SPC <help-echo> <down-mouse-1> <mouse-movement>
<mouse-movement> <drag-mouse-1> <help-echo> <down-mouse-2>
<mouse-2> <kp-enter> <up> <down> <C-up> <C-up> C-a
<delete> <delete> <delete> <end> e t a g s SPC a .
c SPC <backspace> <backspace> * SPC b * <backspace>
. * <return> C-x C-f T A G S <return> C-x k <return>
<C-up> <left> <left> <left> <left> <left> c SPC a .
h SPC <delete> <delete> <right> <right> <delete> c
<return> C-x C-f <up> <return> C-x k <return> <help-echo>
<switch-frame> <help-echo> <help-echo> <down-mouse-1>
<drag-mouse-1> <down-mouse-1> <mouse-1> <help-echo>
<down-mouse-1> <mouse-1> <down-mouse-1> <mouse-1> M-.
<return> <return> M-* M-x r e p o r t SPC e m a SPC
<tab> <return>
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
next reply other threads:[~2009-03-02 21:36 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-02 21:36 Matzi Kratzi [this message]
2021-07-19 14:48 ` bug#2544: 23.0.60; Could etags please try find a local tag first? Lars Ingebrigtsen
2021-07-19 15:56 ` Eli Zaretskii
2021-07-19 23:00 ` Dmitry Gutov
2021-07-20 11:51 ` Lars Ingebrigtsen
2021-07-20 16:15 ` Dmitry Gutov
2021-07-20 11:54 ` Eli Zaretskii
2021-07-20 16:22 ` Dmitry Gutov
2021-07-20 16:56 ` Eli Zaretskii
2021-07-20 22:36 ` Dmitry Gutov
2021-07-21 10:39 ` Lars Ingebrigtsen
2021-07-26 23:15 ` Dmitry Gutov
2021-07-28 15:49 ` Lars Ingebrigtsen
2021-08-02 2:11 ` Dmitry Gutov
2021-08-02 11:36 ` Eli Zaretskii
2021-08-06 0:17 ` Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7f9b11c90903021336o775a3f75i8bd89f3ae4540cb7@mail.gmail.com \
--to=matzikratzi@gmail.com \
--cc=2544@emacsbugs.donarmstrong.com \
--cc=emacs-pretest-bug@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).