From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#32016: 27.0; (elisp) `Imenu' Date: Fri, 29 Jun 2018 23:42:02 -0700 (PDT) Message-ID: <4f6216dc-d39a-42a1-a21b-c6ea8650e6a4@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1530341386 30856 195.159.176.226 (30 Jun 2018 06:49:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 30 Jun 2018 06:49:46 +0000 (UTC) To: 32016@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 30 08:49:42 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZ9hV-0007wa-GZ for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Jun 2018 08:49:41 +0200 Original-Received: from localhost ([::1]:45885 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZ9jc-00065a-Ps for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Jun 2018 02:51:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZ9b7-0006xV-Ny for bug-gnu-emacs@gnu.org; Sat, 30 Jun 2018 02:43:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZ9b4-0004SG-Ip for bug-gnu-emacs@gnu.org; Sat, 30 Jun 2018 02:43:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60607) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fZ9b4-0004Rs-Ea for bug-gnu-emacs@gnu.org; Sat, 30 Jun 2018 02:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fZ9b4-0004tE-8O for bug-gnu-emacs@gnu.org; Sat, 30 Jun 2018 02:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Jun 2018 06:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32016 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153034094018745 (code B ref -1); Sat, 30 Jun 2018 06:43:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Jun 2018 06:42:20 +0000 Original-Received: from localhost ([127.0.0.1]:40271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZ9aO-0004sH-DK for submit@debbugs.gnu.org; Sat, 30 Jun 2018 02:42:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZ9aM-0004s2-Br for submit@debbugs.gnu.org; Sat, 30 Jun 2018 02:42:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZ9aF-0002du-UA for submit@debbugs.gnu.org; Sat, 30 Jun 2018 02:42:13 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:48729) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fZ9aF-0002dM-Pv for submit@debbugs.gnu.org; Sat, 30 Jun 2018 02:42:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZ9aE-0006Gj-7Z for bug-gnu-emacs@gnu.org; Sat, 30 Jun 2018 02:42:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZ9aB-0002RL-3R for bug-gnu-emacs@gnu.org; Sat, 30 Jun 2018 02:42:10 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:57656) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fZ9aA-0002Nr-Oj for bug-gnu-emacs@gnu.org; Sat, 30 Jun 2018 02:42:07 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w5U6euF7147849 for ; Sat, 30 Jun 2018 06:42:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=A5kzTalXfcL5k9AlqDtwIkQsVa4r1s1VXzNIQc+Zxpc=; b=Ytj5UDbHSnY3LDvBlo/HnhnTjzEmucaP+ICdTVzfsi3kkr+IHX/WaWlj3ayrYeSN/NgF nUjDA38WyT61J/aw4hlMCrLzs9kO6mvrurhM4EmDaYKckmfBiBgDF2I8thaFAZG42MiK q4bxQUIrNzdeaAHuL8+c79SCT2FprSoXf4CRm9zIQMD8wAOS5Kaq2lKwpCKEj2hMQaiv nciE3E84LWnfnf94oAIRHHrQO8F9oUyZ+BqmKDwT34+0icqtRbcFdp82JmXrMpxPZ/Ie Qf/ic2u5BqB44oXJ4bLvEjdV9vLsyjgrgW1328u/58kWU+XIrw4o0U0X63TqkzWurEY9 GA== Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2jx2gpr3r5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sat, 30 Jun 2018 06:42:04 +0000 Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w5U6g3Ak030090 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sat, 30 Jun 2018 06:42:04 GMT Original-Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w5U6g3r5003370 for ; Sat, 30 Jun 2018 06:42:03 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4705.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8939 signatures=668703 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1806300077 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:147985 Archived-At: The description of `imenu-generic-expression' is incomplete. It does not specify the case where argument REGEXP is a function. The doc string describes this use case this way: REGEXP may also be a function, called without arguments. It is expected to search backwards. It must return true and set 'match-data' if it finds another element. Unfortunately, the last sentence there is unclear. The function does not "find another element". It finds a definition construct in the buffer, and it sets match data for it. It does not construct or "find" an element of the list that is the variable value. But this bug report is about the missing description of the REGEXP-as-function case. In GNU Emacs 27.0.50 (build 3, x86_64-w64-mingw32) of 2018-03-21 Repository revision: e70d0c9e66d7a8609450b2889869d16aeb0363b5 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install -C 'CFLAGS=3D-O2 -static -g3''