From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Suggestion of enhancement by adding a hyphen to sh-imenu-generic-expression Date: Sun, 24 Nov 2024 11:41:07 +0200 Message-ID: <86h67xj7f0.fsf@gnu.org> References: <183cd0f5-4d8d-401d-8a27-503ee4061cb1@jamescherti.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9147"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: James Cherti Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 24 10:42:04 2024 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 1tF97z-0002Eh-N7 for ged-emacs-devel@m.gmane-mx.org; Sun, 24 Nov 2024 10:42:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tF97B-0006nC-NW; Sun, 24 Nov 2024 04:41:13 -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 1tF97A-0006n3-AX for emacs-devel@gnu.org; Sun, 24 Nov 2024 04:41:12 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tF979-0004lW-UT; Sun, 24 Nov 2024 04:41:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=5Xp6Mu2/bnpR5yvaO7vfFlyyS7gQIKiTtghSszxEcfs=; b=RzRgkwbkNJaD 6xNLcyZf0ca9AA/2AD4gvL1KH8VBAlFJT3QsYRr4JSuqLAsiDu6PKpwUdZg+m9VJQC1d7v7w8vjgN UAfF53RZWAmhZB9fnJHdwpqej8HavA2aI4wLtynVkjfmW9U1TnVup7kgARSjeFior+Ew84J/TG0eu /i86qYa2IH5+VVzouhcUHTGEbBtOMDWSRaCiPYzOyOwO0RApOhX+N2atTKylFEj9urksoJEkvIYjQ HH36K+KL/Slj86i++YZzTCJNKMZ8seG0vCxfh1t0gzcRFYPr1KEKDdEUlKVEE0JViPElqZPgVTODX 9D3tuvqaRzXlZx3bbQcwsg==; In-Reply-To: <183cd0f5-4d8d-401d-8a27-503ee4061cb1@jamescherti.com> (message from James Cherti on Sat, 23 Nov 2024 16:04:17 -0500) 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:325652 Archived-At: > Date: Sat, 23 Nov 2024 16:04:17 -0500 > From: James Cherti > > Hello, > > While editing a Bash shell script today, I discovered that imenu does > not include functions with hyphens in their names. > > While it is true that sh does not allow hyphens in function names, Bash > does permit them. > > My suggestion is to add a hyphen '-' to the sh-imenu-generic-expression > (sh-script.el) regular expression to make imenu include these functions, Would you like to submit a patch along these lines? Thanks.