From: "Drew Adams" <drew.adams@oracle.com>
To: 9899@debbugs.gnu.org
Subject: bug#9899: 24.0.90; change in menu item representation
Date: Fri, 28 Oct 2011 13:01:07 -0700 [thread overview]
Message-ID: <B95D247EC6634923895653BD4C83FA86@us.oracle.com> (raw)
Apparently, in Emacs 23, you changed the cached representation of menu
items. Scanning the C code in keymap.c and keyboard.c suggests that the
caching of the key sequence is no longer done, and if already done
somewhere else is ignored (skipped over).
And yet, as late as Emacs 23.3, this remains in the doc (elisp) Extended
Menu Items:
"When an equivalent keyboard key binding is cached, the extended menu
item binding looks like this:
(menu-item ITEM-NAME REAL-BINDING (KEY-BINDING-DATA)
. ITEM-PROPERTY-LIST)"
That text was removed for Emacs 24, but AFAICT it was already untrue for
Emacs 23 and should have been removed then. There was no such caching
even in 23 AFAICT - no (KEY-BINDING-DATA). That's what I see in the
debugger.
Obviously, this change breaks 3rd party/user code that takes advantage
of (KEY-BINDING-DATA).
The bug I'm reporting is to ask you to at least mention this change in
NEWS, or if possible in NEWS.23. I also tried to find some mention of
this change in emacs-devel@gnu.org, but I couldn't find any mention, let
alone a proposal and discussion. Admittedly, it was hard to search for
this, so I might have overlooked a thread about it.
This change is unfortunate, as it means that any code that wants to use
the already determined key representation must take the time needed to
look up the key afresh. For menu-navigation code such as lacarte.el,
for instance, the key is included as part of the menu-item text
available for completion, and this change means taking extra time, for
each menu item, to look up a possible key binding.
Why do you keep moving stuff to C, instead of moving C stuff to Lisp?
Emacs should be as transparent and modifiable via Lisp as possible.
That's part of its being "the extensible editor". You seem to be
working against that spirit, which is the heart of Emacs. Why?
In GNU Emacs 24.0.90.1 (i386-mingw-nt5.1.2600) of 2011-10-24 on MARVIN
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.6) --no-opt --cflags
-I"D:/devel/emacs/libs/libXpm-3.5.8/include"
-I"D:/devel/emacs/libs/libXpm-3.5.8/src"
-I"D:/devel/emacs/libs/libpng-dev_1.4.3-1/include"
-I"D:/devel/emacs/libs/zlib-dev_1.2.5-2/include"
-I"D:/devel/emacs/libs/giflib-4.1.4-1/include"
-I"D:/devel/emacs/libs/jpeg-6b-4/include"
-I"D:/devel/emacs/libs/tiff-3.8.2-1/include"
-I"D:/devel/emacs/libs/gnutls-2.10.1/include" --ldflags
-L"D:/devel/emacs/libs/gnutls-2.10.1/lib"'
next reply other threads:[~2011-10-28 20:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-28 20:01 Drew Adams [this message]
2011-10-28 20:30 ` bug#9899: 24.0.90; change in menu item representation Stefan Monnier
[not found] ` <30194F9629E14673AA65DD82E1D04D1A@us.oracle.com>
2011-10-29 0:44 ` 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=B95D247EC6634923895653BD4C83FA86@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=9899@debbugs.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.