From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Mendler Newsgroups: gmane.emacs.bugs Subject: bug#60093: 29.0.60; imenu: Variables defined via defvar-keymap are not listed Date: Mon, 19 Dec 2022 10:54:27 +0100 Message-ID: <1e998a44-3850-927b-9bc1-80cdc159fa45@daniel-mendler.de> References: <87bko4yb5w.fsf@daniel-mendler.de> <83v8magpij.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26739"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60093@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 19 10:55:29 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p7Crn-0006iU-Jx for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Dec 2022 10:55:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7CrR-00026v-TU; Mon, 19 Dec 2022 04:55:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p7CrO-00023j-G2 for bug-gnu-emacs@gnu.org; Mon, 19 Dec 2022 04:55:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7CrO-0002Zt-41 for bug-gnu-emacs@gnu.org; Mon, 19 Dec 2022 04:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p7CrN-0003BU-LB for bug-gnu-emacs@gnu.org; Mon, 19 Dec 2022 04:55:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Mendler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Dec 2022 09:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60093 X-GNU-PR-Package: emacs Original-Received: via spool by 60093-submit@debbugs.gnu.org id=B60093.167144367912226 (code B ref 60093); Mon, 19 Dec 2022 09:55:01 +0000 Original-Received: (at 60093) by debbugs.gnu.org; 19 Dec 2022 09:54:39 +0000 Original-Received: from localhost ([127.0.0.1]:38163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7Cr0-0003B8-Ks for submit@debbugs.gnu.org; Mon, 19 Dec 2022 04:54:38 -0500 Original-Received: from server.qxqx.de ([178.63.65.180]:35691 helo=mail.qxqx.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7Cqx-0003B1-R8 for 60093@debbugs.gnu.org; Mon, 19 Dec 2022 04:54:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=qxqx.de; s=mail1392553390; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=KNF9c3yimMIImXeIgB3L5VSwtYqTgb9rFZmur4pBY/w=; b=OGC/j06d9YN+Zj0QXpCNbfB9ul n33cf1zHwmhk1X8w2mrp5mJSJJvwvyFXsZVh9CsgHkm7lHftox0fThmEaZ6Qz5fv3U64lze6dahIS +rxmXABOruqOJjLlmjzTo/GrSfilBDNhGrmov28qx/4rJgJFSNYGOIzZy+bD/x6S2BDc=; Content-Language: en-US In-Reply-To: <83v8magpij.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:251407 Archived-At: On 12/17/22 13:53, Eli Zaretskii wrote: >> From: Daniel Mendler >> Date: Thu, 15 Dec 2022 15:49:31 +0100 >> >> Keymaps defined via `defvar-keymap' are not available in the Imenu. It is >> necessary to extend `imenu-generic-expression'. > > Thanks. Would you like to suggest a patch to fix this? I don't have a patch ready. Currently I use the following line in my configuration which also recognizes Embark keymaps. Would we want to list keymaps as a separate Imenu category "Keymaps" or as "Variables"? (add-to-list 'imenu-generic-expression '("Keymaps" "^[^;]*(\\(?:embark-define-keymap\\|defvar-keymap\\)\\s-+\\(\\(?:\\sw\\|\\s_\\)+\\)" 1) 'append))))