From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Glenn Morris <rgm@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: easymenu suffix problem?
Date: Mon, 26 Nov 2007 10:01:51 -0500 [thread overview]
Message-ID: <jwvprxxoxwl.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <0xtzn9vfe8.fsf@fencepost.gnu.org> (Glenn Morris's message of "Sun, 25 Nov 2007 22:45:19 -0500")
>> You get the same binding to menu-function-1 for each "For Year XXXX"
>> entry, which means one always gets the holidays for 2002, no matter
>> which item one clicks.
> I think this can be worked around by using :label (undocumented, BTW)
> instead of :suffix, and using a counter for the menu-item names. I
> still don't understand if easymenu is doing the right thing with
> :suffix though.
The problem with easy-menu, is that it generates the command's binding
based on the entry name and this cannot be created dynamically (at
least not conveniently), so it can't make use of :suffix. What should
happen, is that easymenu should detect that it's seeing "the same name"
again in the same menu and then generate a different key.
Stefan
next prev parent reply other threads:[~2007-11-26 15:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-25 3:01 easymenu suffix problem? Glenn Morris
2007-11-26 3:45 ` Glenn Morris
2007-11-26 15:01 ` Stefan Monnier [this message]
2007-11-27 3:03 ` Glenn Morris
2007-11-27 4:26 ` Stefan Monnier
2008-01-15 22:33 ` Stefan Monnier
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=jwvprxxoxwl.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=rgm@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.