From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.devel Subject: Simplifying & improving lisp-imenu-generic-expression Date: Sat, 11 Mar 2023 12:05:46 -0700 Message-ID: <87v8j7152t.fsf@athena.silentflame.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2850"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 11 20:06:18 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pb4Xn-0000Vc-Jy for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Mar 2023 20:06:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pb4XQ-0002jP-V5; Sat, 11 Mar 2023 14:05:52 -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 1pb4XP-0002jD-Cq for emacs-devel@gnu.org; Sat, 11 Mar 2023 14:05:51 -0500 Original-Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pb4XN-0000RY-Mz for emacs-devel@gnu.org; Sat, 11 Mar 2023 14:05:51 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 06EAB320091B for ; Sat, 11 Mar 2023 14:05:47 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sat, 11 Mar 2023 14:05:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t=1678561547; x=1678647947; bh=JvgXU7xULKeMmQ2xMWUUWTxBg jZa/PKGH/PqNq8zxgU=; b=LUA3GkkCdZwibjcMbACwfg4VIZGOJzl412UtPZouo WwAJ6fhsnhInAn1wPagfOJ7ILqQmZ61JmBLQoWQgdQtw4EaOY3t8anvjapJeLA+v Vq+A2aR+ibXxJI/DK8DOpKbKqsXcY7hbGbTn5yE5N6/LFGuqgHjIdG0PLLayLJD9 3heTwtix5BeezWX0u24cuALvPoIBQp6RJtriU3sm6SAhW5DehOIrjtI5bFVnQG/8 2RiwTBeq74wwyXypKC/GjxWeLFliemWJlHgFyoXx5wr5fsAY+gP++lVP7+Wgxive gSZuYHpPn51HmB92R5fByak6FRzeQnrXNnPrQPf5jmAFA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1678561547; x=1678647947; bh=JvgXU7xULKeMmQ2xMWUUWTxBgjZa/PKGH/P qNq8zxgU=; b=Y5gNeFHN1nSAcERNgrxoRFUt5RX6eT2lyfjsCrkYv613ZJIkbX5 GrEDu/FKoFcaSjNp2eVxknbfHXL5G+j5WhGEkd/+3k7cxh+ml3uBYmREGy1CxYyX pBgyeFNRvu7fICOy6GdirxTerbbglmwxjqTO2p4qRrDw+EExAu0xW/FLpUC5uy+F Ez4MSc2vTbO+xOW6z1WUwtadcz/uaneHADo94BKRerIG76pTa7mnbPW4SZ9BS/3a B4fDjHApD5oJdLO9bWuUFN7wNBg9U/u/jNzfvvPLwDoHx6NhrXglsKZzCGzkrFuL OPX7ClfejLfiaPzEtlh+y/ViBDa4TnHRQ1A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvddvtddgleehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkfgggtgesthdttddttd ertdenucfhrhhomhepufgvrghnucghhhhithhtohhnuceoshhpfihhihhtthhonhesshhp fihhihhtthhonhdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeffgfehgefggfehuedvte fhkedutdfggfdtueekgeektdetffdtgefhvdfgtdejleenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsphifhhhithhtohhnsehsphifhhhith htohhnrdhnrghmvg X-ME-Proxy: Feedback-ID: i23c04076:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 11 Mar 2023 14:05:47 -0500 (EST) Original-Received: by athena.silentflame.com (Postfix, from userid 1000) id 7F33D1B583F; Sat, 11 Mar 2023 19:05:46 +0000 (UTC) Received-SPF: pass client-ip=64.147.123.19; envelope-from=spwhitton@spwhitton.name; helo=wout3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304336 Archived-At: Hello, When writing CL you end up adding a bunch of your own defining forms. E.g. my Consfigurator project has files full of defprop, defproplist and defpropspec instead of defun. The convention on naming these is such that something like (concat "\\(?:cl-\\)def\\(?:ine-\\)\\sw+\\s_*\\s-+ '?\\(" (rx lisp-mode-symbol) "\\)") ought to catch all of them. The only part of lisp-imenu-generic-expression that this doesn't account for is ignoring (defvar FOO) declarations, but that could probably be added too. Am I missing something obvious why this couldn't replace lisp-imenu-generic-expression? It's simpler, and has the significant advantage that user's own defining forms will be automatically included. -- Sean Whitton