all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* find-tag and duplicate tags
@ 2003-01-22 12:47 Richard Kettlewell
  2003-01-23  7:59 ` Richard Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Kettlewell @ 2003-01-22 12:47 UTC (permalink / raw)


This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.2.1 (i386-debian-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2002-03-22 on raven, modified by Debian
configured using `configure  i386-debian-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --with-x=yes --with-x-toolkit=athena --without-gif'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: 
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

I have a bunch of related C files which contain static functions, and
some of the functions in different files have the same name.

This is confusing enough for humans, and I'd rather the original
author of the code hadn't done it, but it's a disaster when I try to
use find-tag: if I ask for find-tag in one file, and there's a static
function of the right name in that file, I still get presented witht
the definition in some other file.

I think the best approach would be for find-tag to always choose the
"nearest" available version of a tag, for some suitable definition of
"near".  For instance, the currently visited file should always be
nearer than any other file; files in the same directory might be
nearer than files in another directory; etc.


Recent input:
s <return> <help-echo> <switch-frame> <down-mouse-1> 
<mouse-movement> <mouse-1> C-s f i n d <end> M-. f 
i n d <return> <switch-frame> <help-echo> <switch-frame> 
<down-mouse-1> <mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<drag-mouse-1> C-h k M-. <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar> 
<help-menu> <report-emacs-bug> f i n d 0 t a <backspace> 
<backspace> <backspace> t <backspace> - a C-g C-x o 
<help-echo> <down-mouse-1> <mouse-1> <down> <down> 
<right> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <up> <up> 
<up> <help-echo> C-x o M-x <up> C-g <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <menu-bar> <help-menu> <re
port-emacs-bug>

Recent messages:
Auto-saving...done
Mark set [3 times]
Auto-saving...done
Mark set
Mark saved where search started
Mark set [2 times]
Loading /usr/lib/emacs/21.2/i386-debian-linux-gnu/fns-21.2.1.el (source)...done
Type C-x 1 to remove help window.  C-M-v to scroll the help.
Loading emacsbug...done
byte-code: Quit
call-interactively: Quit

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: find-tag and duplicate tags
  2003-01-22 12:47 find-tag and duplicate tags Richard Kettlewell
@ 2003-01-23  7:59 ` Richard Stallman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2003-01-23  7:59 UTC (permalink / raw)
  Cc: emacs-devel

    I think the best approach would be for find-tag to always choose the
    "nearest" available version of a tag, for some suitable definition of
    "near".  For instance, the currently visited file should always be
    nearer than any other file; files in the same directory might be
    nearer than files in another directory; etc.

That is a good idea.  Would you (or someone) like to implement it?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-23  7:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-22 12:47 find-tag and duplicate tags Richard Kettlewell
2003-01-23  7:59 ` Richard Stallman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.