From: Raffael Stocker <r.stocker@mnet-mail.de>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: [ELPA] New package: scanner
Date: Fri, 10 Apr 2020 21:58:32 +0200 [thread overview]
Message-ID: <87y2r3qfiv.fsf@mnet-mail.de> (raw)
In-Reply-To: <jwva73jw6y5.fsf-monnier+emacs@gnu.org>
Stefan Monnier writes:
> Beside some technical details I had to tweak as part of the addition,
> I noticed another problem: you add a submenu to the global menus (which
> I guess is fine),
TBH, I wasn't quite sure where to add my menu. But I'm open to better
suggestions.
> but some of the commands in that menu are not
> autoloaded so selecting them signals an error. You should probably
> "disable/grey" them until the package is loaded, or add autoloads, or
> ...
Thanks for spotting this, I will add autoloads.
> I'm also wondering why you need all those `:key-sequence nil` in the menu.
> Maybe it reflects a bug in our code?
The Elisp doc says in (info "(elisp) Extended Menu Items"):
‘:key-sequence nil’
This property indicates that there is normally no key binding which
is equivalent to this menu item. Using this property saves time in
preparing the menu for display, because Emacs does not need to
search the keymaps for a keyboard equivalent for this menu item.
I just thought this is how it's done.
Raffael
next prev parent reply other threads:[~2020-04-10 19:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-10 12:02 [ELPA] New package: scanner Raffael Stocker
2020-04-10 18:13 ` Stefan Monnier
2020-04-10 19:58 ` Raffael Stocker [this message]
2020-04-10 20:20 ` Raffael Stocker
2020-04-10 20:44 ` Stefan Monnier
2020-04-10 20:43 ` Stefan Monnier
2020-04-10 21:17 ` Raffael Stocker
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=87y2r3qfiv.fsf@mnet-mail.de \
--to=r.stocker@mnet-mail.de \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.