GNU bug report logs - #56003
Bash functions not showing in speedbar

Previous Next

Package: emacs;

Reported by: carlmarcos <at> tutanota.com

Date: Thu, 16 Jun 2022 00:44:02 UTC

Severity: normal

Merged with 21477, 52319, 52928, 54265, 57255, 58554

Found in version 24.4

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#52928: closed (Bash functions with dash do not show up in
 speedbar)
Date: Sat, 30 Nov 2024 14:03:03 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 30 Nov 2024 16:02:05 +0200
with message-id <86plmc7rc2.fsf <at> gnu.org>
and subject line Re: bug#56003: Bash functions not showing in speedbar
has caused the debbugs.gnu.org bug report #56003,
regarding Bash functions with dash do not show up in speedbar
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
56003: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=56003
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: tolugboji <tolugboji <at> protonmail.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: Bash functions with dash do not show up in speedbar
Date: Sat, 01 Jan 2022 07:01:08 +0000
[Message part 3 (text/plain, inline)]
Dear all,

Have noticed that bash functions with dash in the name do not show in the speedbar when in sh-mode.
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Visuwesh <visuweshm <at> gmail.com>
Cc: 56003-done <at> debbugs.gnu.org, carlmarcos <at> tutanota.com
Subject: Re: bug#56003: Bash functions not showing in speedbar
Date: Sat, 30 Nov 2024 16:02:05 +0200
> From: Visuwesh <visuweshm <at> gmail.com>
> Date: Thu, 16 Jun 2022 08:41:12 +0530
> Cc: carlmarcos <at> tutanota.com, 56003 <at> 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.


This bug report was last modified 224 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.