From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32016: 27.0; (elisp) `Imenu' Date: Sat, 07 Jul 2018 12:35:50 +0300 Message-ID: <83d0vzjsll.fsf@gnu.org> References: <4f6216dc-d39a-42a1-a21b-c6ea8650e6a4@default> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1530956049 30535 195.159.176.226 (7 Jul 2018 09:34:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 7 Jul 2018 09:34:09 +0000 (UTC) Cc: 32016-done@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 07 11:34:05 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 1fbjbN-0007k6-Tu for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Jul 2018 11:34:02 +0200 Original-Received: from localhost ([::1]:32920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbjdT-00010d-II for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Jul 2018 05:36:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbjdL-00010E-Jw for bug-gnu-emacs@gnu.org; Sat, 07 Jul 2018 05:36:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fbjdK-000710-C9 for bug-gnu-emacs@gnu.org; Sat, 07 Jul 2018 05:36:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41203) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fbjdK-00070n-5e for bug-gnu-emacs@gnu.org; Sat, 07 Jul 2018 05:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fbjdJ-0004o3-V0 for bug-gnu-emacs@gnu.org; Sat, 07 Jul 2018 05:36:01 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Jul 2018 09:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 32016 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 32016@debbugs.gnu.org, eliz@gnu.org, drew.adams@oracle.com Original-Received: via spool by 32016-done@debbugs.gnu.org id=D32016.153095615718458 (code D ref 32016); Sat, 07 Jul 2018 09:36:01 +0000 Original-Received: (at 32016-done) by debbugs.gnu.org; 7 Jul 2018 09:35:57 +0000 Original-Received: from localhost ([127.0.0.1]:49099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fbjdE-0004ne-OI for submit@debbugs.gnu.org; Sat, 07 Jul 2018 05:35:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39087) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fbjdE-0004nR-1o for 32016-done@debbugs.gnu.org; Sat, 07 Jul 2018 05:35:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fbjd5-0006hy-8S for 32016-done@debbugs.gnu.org; Sat, 07 Jul 2018 05:35:50 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50629) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbjd5-0006hk-4G; Sat, 07 Jul 2018 05:35:47 -0400 Original-Received: from [176.228.60.248] (port=1677 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fbjd4-0002NT-G1; Sat, 07 Jul 2018 05:35:46 -0400 In-reply-to: <4f6216dc-d39a-42a1-a21b-c6ea8650e6a4@default> (message from Drew Adams on Fri, 29 Jun 2018 23:42:02 -0700 (PDT)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:148291 Archived-At: > Date: Fri, 29 Jun 2018 23:42:02 -0700 (PDT) > From: Drew Adams > > 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. Thanks, I fixed the doc string. > But this bug report is about the missing description of the > REGEXP-as-function case. What is this about? A left-over of editing some other message?