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.bugs Subject: bug#56003: Bash functions not showing in speedbar Date: Sat, 30 Nov 2024 16:02:05 +0200 Message-ID: <86plmc7rc2.fsf@gnu.org> References: <87y1xxcnfz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13114"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56003-done@debbugs.gnu.org, carlmarcos@tutanota.com To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 30 15:03:43 2024 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 1tHO4V-0003Hx-BW for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Nov 2024 15:03:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tHO40-0006zP-1H; Sat, 30 Nov 2024 09:03:12 -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 1tHO3v-0006rt-7E for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2024 09:03:07 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tHO3q-0006Mi-TJ for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2024 09:03:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=P+DrhB2rF8Zwm0AumxQFBe4q1NHtd7TxwY9+7OXr4F0=; b=KMTtroPGV3unwZsus27szsKRj7qdQHFb+sVVe7PvRfxLnsHY2ECiZv3HtEDOaDKa6RHXGz9RzE6BnQlzOf911ht84vLJshRElomGvwqsro7QxTknIdbCW/gF7S3b5ym98XkDmJ+WxcgaAz1rfkrdmwAVrUSF/oiE1SmCVa3DiYlyS+DWrdmcyT0rJdYn6HtH3R8Bqva03tZZlRvuTSyOtpw7FgpDbZm5PG98Hdjkq9oHBiDeTTIvjvqWGXOlnkGduejk6gEzKlVI98rfP0uAWf2x+uK9nK0h4+bOPmFUoBErXgwtYoYr39gmNI4YsGODXnJsrt9rvoUEDYQpXkm4jw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tHO3q-0002vf-7L for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2024 09:03:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Nov 2024 14:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 56003 X-GNU-PR-Package: emacs Mail-Followup-To: 56003@debbugs.gnu.org, eliz@gnu.org, carlmarcos@tutanota.com Original-Received: via spool by 56003-done@debbugs.gnu.org id=D56003.173297534311175 (code D ref 56003); Sat, 30 Nov 2024 14:03:01 +0000 Original-Received: (at 56003-done) by debbugs.gnu.org; 30 Nov 2024 14:02:23 +0000 Original-Received: from localhost ([127.0.0.1]:45969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHO3D-0002uB-EL for submit@debbugs.gnu.org; Sat, 30 Nov 2024 09:02:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHO39-0002ts-Tv for 56003-done@debbugs.gnu.org; Sat, 30 Nov 2024 09:02:21 -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 1tHO32-0006Bo-Ed; Sat, 30 Nov 2024 09:02:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=P+DrhB2rF8Zwm0AumxQFBe4q1NHtd7TxwY9+7OXr4F0=; b=qbWT1GJUlPJlTJIIrsGh qr5VNTIumjfs5ss3YeH2/DOGO2MMFMDO7gwMEhpbjJxjuzw3kqvmPbKXhJ6d0zWk0T0frIpQwYmoM dQc7E2aMpf93StuBBDIiGL6lO6A3yVSL9jHFSwtMvEX7H3QtSCXCG6eJWLUOol37HbhHFQmAdFHYf 1tTZMOC7ybfhob755OJ8zVjxNryJ4PBjl15G1No8iPKftcxqhNiCmcrlEut5Ki14tUlH4B1jQNb7E l92OwZPYllDOSkJ6j0u2QqIvFWgwDGBkhYZVxak8KQ5ceg5rZ2cw60nRk3yfkdOadiUirXQz/84bt TMR9kdKVtk/BQg==; In-Reply-To: <87y1xxcnfz.fsf@gmail.com> (message from Visuwesh on Thu, 16 Jun 2022 08:41:12 +0530) 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:296166 Archived-At: > From: Visuwesh > Date: Thu, 16 Jun 2022 08:41:12 +0530 > Cc: carlmarcos@tutanota.com, 56003@debbugs.gnu.org > > [வியாழன் ஜூன் 16, 2022 02:12] carlmarcos--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote: > > > Have been working on some functionalities implemented in bash. But looking at the speedbar, only some function > > names are being listed. Tried to see whether a bug-report has been previously submitted, but could not find any. > > Have found the search feature for the archives quite challenging to use. > > > > Carl > > You need to add a relevant bash entry to `sh-imenu-generic-expression'. > I would propose a patch but the bash manual is vague about the allowed > characters, and I never use bash so I'm not interested in digging > further. Maybe the newly added mksh entry could be a good example, > > (mksh > . ((nil > ;; function FOO > ;; function FOO() > ,(rx bol (* (syntax whitespace)) "function" (+ (syntax whitespace)) > (group (1+ (not (any "\0\t\n \"$&'();<=>\\`|#*?[]/")))) > (* (syntax whitespace)) (? "()")) > 1) > (nil > ;; FOO() > ,(rx bol (* (syntax whitespace)) > (group (1+ (not (any "\0\t\n \"$&'();<=>\\`|#*?[]/")))) > (* (syntax whitespace)) "()") > 1))) > > HTH. This bug was recently solved on the master branch, see commit 2ea091955036.