all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sean Whitton <spwhitton@spwhitton.name>
To: emacs-devel@gnu.org
Subject: Simplifying & improving lisp-imenu-generic-expression
Date: Sat, 11 Mar 2023 12:05:46 -0700	[thread overview]
Message-ID: <87v8j7152t.fsf@athena.silentflame.com> (raw)

Hello,

When writing CL you end up adding a bunch of your own defining forms.
E.g. my Consfigurator project has files full of defprop, defproplist and
defpropspec instead of defun.

The convention on naming these is such that something like

    (concat
     "\\(?:cl-\\)def\\(?:ine-\\)\\sw+\\s_*\\s-+ '?\\("
     (rx lisp-mode-symbol)
     "\\)")

ought to catch all of them.

The only part of lisp-imenu-generic-expression that this doesn't account
for is ignoring (defvar FOO) declarations, but that could probably be
added too.

Am I missing something obvious why this couldn't replace
lisp-imenu-generic-expression?  It's simpler, and has the significant
advantage that user's own defining forms will be automatically included.

-- 
Sean Whitton



             reply	other threads:[~2023-03-11 19:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-11 19:05 Sean Whitton [this message]
2023-03-11 19:15 ` Simplifying & improving lisp-imenu-generic-expression Sean Whitton

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

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

  git send-email \
    --in-reply-to=87v8j7152t.fsf@athena.silentflame.com \
    --to=spwhitton@spwhitton.name \
    --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 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.