* bug#56003: Bash functions not showing in speedbar
@ 2022-06-16 0:12 carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-16 3:11 ` Visuwesh
0 siblings, 1 reply; 2+ messages in thread
From: carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-16 0:12 UTC (permalink / raw)
To: 56003
[-- Attachment #1: Type: text/plain, Size: 314 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 525 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#56003: Bash functions not showing in speedbar
2022-06-16 0:12 bug#56003: Bash functions not showing in speedbar carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-16 3:11 ` Visuwesh
0 siblings, 0 replies; 2+ messages in thread
From: Visuwesh @ 2022-06-16 3:11 UTC (permalink / raw)
To: 56003; +Cc: carlmarcos
[வியாழன் ஜூன் 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-16 3:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-16 0:12 bug#56003: Bash functions not showing in speedbar carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-16 3:11 ` Visuwesh
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).