From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#15996: 24.3.50; imenu inconsistencies Date: Sun, 01 Dec 2013 09:11:34 +0100 Organization: Emacs Helm Message-ID: <87ob51ng7d.fsf@gmail.com> References: <87bo134ppg.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1385885531 16116 80.91.229.3 (1 Dec 2013 08:12:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Dec 2013 08:12:11 +0000 (UTC) Cc: 15996@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 01 09:12:16 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vn28W-00029c-6i for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Dec 2013 09:12:16 +0100 Original-Received: from localhost ([::1]:54676 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vn28V-0004Do-P2 for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Dec 2013 03:12:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vn28O-0004Ck-FW for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2013 03:12:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vn28J-000496-FD for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2013 03:12:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38478) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vn28J-000490-Bb for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2013 03:12:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vn28I-0006ax-Ip for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2013 03:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Dec 2013 08:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15996 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15996-submit@debbugs.gnu.org id=B15996.138588551425336 (code B ref 15996); Sun, 01 Dec 2013 08:12:02 +0000 Original-Received: (at 15996) by debbugs.gnu.org; 1 Dec 2013 08:11:54 +0000 Original-Received: from localhost ([127.0.0.1]:52497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vn288-0006aZ-Uc for submit@debbugs.gnu.org; Sun, 01 Dec 2013 03:11:53 -0500 Original-Received: from mail-wi0-f173.google.com ([209.85.212.173]:55361) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vn284-0006aE-3q for 15996@debbugs.gnu.org; Sun, 01 Dec 2013 03:11:50 -0500 Original-Received: by mail-wi0-f173.google.com with SMTP id hm4so3494767wib.6 for <15996@debbugs.gnu.org>; Sun, 01 Dec 2013 00:11:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=aXxdxKgpSOskImI3zMcBfh7QpkMfXzk/PvyBQ0wKdoc=; b=Rv5jTm5I1TfKI9ta/d2bPSWJvfVYtnWc00AXeLZEh+T8zutx8t1PlNhJYGi29FBDqW CvFhLzlNgzFSm4WFFDaquG47ZYLhJowyosPxgs3dVrM+ZNkp6DNbEKhAYmlsZtadPQo/ AJsoWTQAoxL2PzYoFuXBcmkubNlsXp0sA93+WcX7UFuA4yJ6dN/eUzrC40g6W3NC8LDT V5vGkYacvTGzDS3kgJHOJdIvuVHxsURXtcb01KcVQC2AbiUROvsJsZ+KZ9VipTFNFAnL 4yXKAgP2n5fT6+kXBSmMqp/YPUlmGB1BU4jqFhLUPu15+zxdqEiEADRD79DMHFFpE3Wj LxCw== X-Received: by 10.194.240.129 with SMTP id wa1mr47996993wjc.31.1385885502298; Sun, 01 Dec 2013 00:11:42 -0800 (PST) Original-Received: from dell-14z (lbe83-2-78-243-104-167.fbx.proxad.net. [78.243.104.167]) by mx.google.com with ESMTPSA id pi6sm110006551wic.3.2013.12.01.00.11.41 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 01 Dec 2013 00:11:41 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Fri, 29 Nov 2013 09:44:33 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:81175 Archived-At: Stefan Monnier 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