all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Suggestion of enhancement by adding a hyphen to sh-imenu-generic-expression
@ 2024-11-23 21:04 James Cherti
  2024-11-24  9:41 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: James Cherti @ 2024-11-23 21:04 UTC (permalink / raw)
  To: emacs-devel

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,

--
James Cherti
https://www.jamescherti.com/




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-11-30 14:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-23 21:04 Suggestion of enhancement by adding a hyphen to sh-imenu-generic-expression James Cherti
2024-11-24  9:41 ` Eli Zaretskii
2024-11-24 17:21   ` James Cherti
2024-11-30 10:35     ` Eli Zaretskii
2024-11-30 13:28       ` Visuwesh
2024-11-30 14:02         ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.