From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: How to increase the depth of the scan in imenu and speecbar? Date: Fri, 27 Mar 2015 07:12:45 -0700 (PDT) Message-ID: <9ba6ae73-23af-41d3-bd5a-238ca311a94b@default> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1427465612 12282 80.91.229.3 (27 Mar 2015 14:13:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Mar 2015 14:13:32 +0000 (UTC) To: Rainer M Krug , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 27 15:13:17 2015 Return-path: Envelope-to: geh-help-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 1YbV0T-0007G8-PC for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Mar 2015 15:13:05 +0100 Original-Received: from localhost ([::1]:50403 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbV0T-0001SW-6E for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Mar 2015 10:13:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35059) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbV0F-0001SP-3r for help-gnu-emacs@gnu.org; Fri, 27 Mar 2015 10:12:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbV0B-0006td-SC for help-gnu-emacs@gnu.org; Fri, 27 Mar 2015 10:12:51 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:29933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbV0B-0006tZ-Ld for help-gnu-emacs@gnu.org; Fri, 27 Mar 2015 10:12:47 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t2RECkBA011124 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 27 Mar 2015 14:12:46 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t2RECkHt028875 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 27 Mar 2015 14:12:46 GMT Original-Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t2RECjX7012431; Fri, 27 Mar 2015 14:12:45 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103395 Archived-At: > I started using imenu and speedbar, anr=3Dd I like them, but I would like > to have not only a second level, but up to e.g. 6th level. Where can I > set these options? I did not find anything. >=20 > I am particularly talking about orgmode files and their headers, which > are only shown up to level 2. See `C-h v imenu-generic-expression'. I don't think you can have more than two levels. Each element of the list must be a list of the form (MENU-TITLE REGEXP INDEX [FUNCTION] [ARGUMENTS...]).=20 You can at least have more submenus (i.e. level 2), to break things down more. IOW, instead of trying to have, say, this: MyMenu Variables Options You can just use this: MyMenu Options Non-Option Variables Remember that the regexps are tried in order. So putting Options (every option is a variable) before Non-Option Variables lets you use a more general regexp for the latter. That's at least better than just MyMenu > Variables, i.e., it at least lets you separate the two kinds of variables. Taking a look at library `imenu+.el' might help in this regard. http://www.emacswiki.org/emacs/download/imenu%2b.el