unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9899: 24.0.90; change in menu item representation
@ 2011-10-28 20:01 Drew Adams
  2011-10-28 20:30 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Drew Adams @ 2011-10-28 20:01 UTC (permalink / raw)
  To: 9899

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"'
 






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#9899: 24.0.90; change in menu item representation
  2011-10-28 20:01 bug#9899: 24.0.90; change in menu item representation Drew Adams
@ 2011-10-28 20:30 ` Stefan Monnier
       [not found]   ` <30194F9629E14673AA65DD82E1D04D1A@us.oracle.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2011-10-28 20:30 UTC (permalink / raw)
  To: Drew Adams; +Cc: 9899-done

> 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.

The menu code also needs to do that, so your need is clearly a need we
do satisfy: just use `where-is-internal' (if it's fast enough for the
menubar, it should be fast enough for your use).


        Stefan





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#9899: 24.0.90; change in menu item representation
       [not found]   ` <30194F9629E14673AA65DD82E1D04D1A@us.oracle.com>
@ 2011-10-29  0:44     ` Stefan Monnier
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2011-10-29  0:44 UTC (permalink / raw)
  To: Drew Adams; +Cc: 9899

> The bug is about not mentioning this change, e.g. in NEWS.

Ah, OK.  Done.


        Stefan





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-10-29  0:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-28 20:01 bug#9899: 24.0.90; change in menu item representation Drew Adams
2011-10-28 20:30 ` Stefan Monnier
     [not found]   ` <30194F9629E14673AA65DD82E1D04D1A@us.oracle.com>
2011-10-29  0:44     ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).