GNU bug report logs - #15996
24.3.50; imenu inconsistencies

Previous Next

Package: emacs;

Reported by: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>

Date: Fri, 29 Nov 2013 07:46:01 UTC

Severity: minor

Tags: confirmed

Found in versions 25.0.95, 24.3.50

Full log


Message #11 received at 15996 <at> debbugs.gnu.org (full text, mbox):

From: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 15996 <at> debbugs.gnu.org
Subject: Re: bug#15996: 24.3.50; imenu inconsistencies
Date: Sun, 01 Dec 2013 09:11:34 +0100
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

>> (defvar foo)
> [...]
>> 1) var `foo' is not listed,
>
> That's on purpose.  Of course, it's not always the right choice, but
> imenu is supposed to let you go to the "definition" of something and
> this is not a definition.
>
>> 2) The "defun*" in var `baz' is detected as a function with name `.',
>> but is not, it is just an element of var `baz'.
>
> Yes, that's a false positive.  It's difficult/impossible to avoid all
> false positives and all false negatives.  We could try and recognize
> this particular case with ad-hoc code, but it wouldn't help in general.
>
>> 3) The function test defined with `defun*' from cl package is listed,
>> but the macro `test2' defined with `defmacro*' is not listed.
>> I expect the both listed if cl package is loaded or nothing listed if it
>> is not loaded.
>
> Agreed.

Here another one (Reported on helm issues):

here a file test.c:

--8<---------------cut here---------------start------------->8---
void foo(); // either item in the imenu list jumps here


void foo() {}
--8<---------------cut here---------------end--------------->8---

Imenu show only one "foo".

(semantic-mode 1)

Imenu show now the two "foo".

See:
https://github.com/emacs-helm/helm/issues/337

-- 
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 




This bug report was last modified 8 years and 353 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.