bug#2544: 23.0.60; Could etags please try find a local tag first?
Matzi Kratzi <[email protected]>
| Newsgroups | gmane.emacs.bugs,gmane.emacs.pretest.bugs |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected] 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