From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William Xu Newsgroups: gmane.emacs.bugs Subject: bug#15560: 24.3.50; [patch] * imenu.el (imenu--generic-function): Don't generate index for comments area. Date: Wed, 9 Oct 2013 17:21:08 +0800 Message-ID: References: <53e07508-fd4c-42e0-8729-68d6db182a70@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c227e8cc5d5a04e84b6772 X-Trace: ger.gmane.org 1381310537 7959 80.91.229.3 (9 Oct 2013 09:22:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Oct 2013 09:22:17 +0000 (UTC) Cc: 15560@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 09 11:22:17 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 1VTpyB-0003Fx-Jv for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Oct 2013 11:22:15 +0200 Original-Received: from localhost ([::1]:40841 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTpyB-000829-69 for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Oct 2013 05:22:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTpy4-000822-1w for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2013 05:22:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTpxy-0003FZ-Oa for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2013 05:22:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTpxy-0003FP-L1 for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2013 05:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VTpxy-0003oQ-7i for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2013 05:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: William Xu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Oct 2013 09:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15560 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 15560-submit@debbugs.gnu.org id=B15560.138131047414585 (code B ref 15560); Wed, 09 Oct 2013 09:22:02 +0000 Original-Received: (at 15560) by debbugs.gnu.org; 9 Oct 2013 09:21:14 +0000 Original-Received: from localhost ([127.0.0.1]:36772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VTpxA-0003n9-Oa for submit@debbugs.gnu.org; Wed, 09 Oct 2013 05:21:13 -0400 Original-Received: from mail-wi0-f180.google.com ([209.85.212.180]:60562) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VTpx7-0003my-HZ for 15560@debbugs.gnu.org; Wed, 09 Oct 2013 05:21:10 -0400 Original-Received: by mail-wi0-f180.google.com with SMTP id hj8so359497wib.7 for <15560@debbugs.gnu.org>; Wed, 09 Oct 2013 02:21:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=zBfiDxD2HyojcMdHe8ytQk85pCpbI1C+6mHbtIyYR+U=; b=V1mCTy14JdYVGnOjCNGW0chXOW87Vs4n2FWrWKYmhaFeDHTDode5aSwWM3ZIUlQqPc 2SLYqBOu7oMzGX5cVPiCyHYZYFxN+B7n1S3Jwmx2On7HsxKmU/MUqlu+EIjsqg6Gy6n+ xPlryuhjW/v3V8aIjiYg5/ufMplOhu6+H27YzTTBt7Uhvapf11OrW+FiaRWQOs8gzGOY dCqT/S81Q42iAlHlCaTSNcMGa0p5OvigWgSl4TVrNBAtAJ9E+3Fx7taaeNHF9Uv4L4Wy B2wxJot0/+FN2CUYQm3UwF1wVPGB3/e/fTUcyZ6vrWh3ZFUF6leHbZisO0CcQnptuHua gyoA== X-Received: by 10.180.13.174 with SMTP id i14mr1762540wic.49.1381310468478; Wed, 09 Oct 2013 02:21:08 -0700 (PDT) Original-Received: by 10.217.140.131 with HTTP; Wed, 9 Oct 2013 02:21:08 -0700 (PDT) In-Reply-To: <53e07508-fd4c-42e0-8729-68d6db182a70@default> 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:79078 Archived-At: --001a11c227e8cc5d5a04e84b6772 Content-Type: text/plain; charset=UTF-8 2013/10/9 Drew Adams > It is annoying when imenu generates index also for functions found > in comments area. Yes! And no. It depends what you want at the particular time. Sometimes you have multiple versions of a definition, with all but one commented out, and you *want* Imenu to present you with all of them, for easy navigation among them. In the source codes i'm working with, there are very long change history at the beginning of file. So for me, imenu becomes almost useless. I'm using imenu as a function indexer, like those in modern IDEs, where they usually ignore commentted defs. -William --001a11c227e8cc5d5a04e84b6772 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
2013/10/9 Drew Adams <drew.adams@oracle.com>

=C2=A0=C2=A0=C2=A0 > It is = annoying when imenu generates index also for functions found
=C2=A0=C2= =A0=C2=A0 > in comments area.

=C2=A0=C2=A0=C2=A0 Yes!=C2=A0 And no.=C2=A0 It depends what you want at= the particular time.
=C2=A0=C2=A0=C2=A0 Sometimes you have multiple ver= sions of a definition, with all
=C2=A0=C2=A0=C2=A0 but one commented out= , and you *want* Imenu to present you with
=C2=A0=C2=A0=C2=A0 all of the= m, for easy navigation among them.

In the source codes i'm working with, there are very long change hi= story at the
beginning of file.=C2=A0 So for me, imenu becomes almost us= eless.=C2=A0 I'm using imenu as
a function indexer, like those in mo= dern IDEs, where they usually ignore
commentted defs.


-William

--001a11c227e8cc5d5a04e84b6772--