[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: easymenu suffix problem?
From: |
Stefan Monnier |
Subject: |
Re: easymenu suffix problem? |
Date: |
Mon, 26 Nov 2007 10:01:51 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) |
>> 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