unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: James Cherti <contact@jamescherti.com>
Cc: emacs-devel@gnu.org
Subject: Re: Suggestion of enhancement by adding a hyphen to sh-imenu-generic-expression
Date: Sun, 24 Nov 2024 11:41:07 +0200	[thread overview]
Message-ID: <86h67xj7f0.fsf@gnu.org> (raw)
In-Reply-To: <183cd0f5-4d8d-401d-8a27-503ee4061cb1@jamescherti.com> (message from James Cherti on Sat, 23 Nov 2024 16:04:17 -0500)

> Date: Sat, 23 Nov 2024 16:04:17 -0500
> From: James Cherti <contact@jamescherti.com>
> 
> 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.



  reply	other threads:[~2024-11-24  9:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2024-11-24 17:21   ` James Cherti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86h67xj7f0.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=contact@jamescherti.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).