GNU bug report logs - #7466
24.0.50; (emacs) `Menu Mouse Clicks' conflicts with code obsolescence

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Mon, 22 Nov 2010 16:50:02 UTC

Severity: minor

Found in version 24.0.50

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #50 received at 7466 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 'Juanma Barranquero' <lekktu <at> gmail.com>, Drew Adams <drew.adams <at> oracle.com>,
	7466 <at> debbugs.gnu.org
Subject: Re: bug#7466: 24.0.50;
	(emacs) `Menu Mouse Clicks' conflicts with code obsolescence
Date: Wed, 03 Aug 2011 22:39:30 +0200
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

> But that doesn't work because such remapping don't work right for events
> with parameters such as mouse clicks.  I guess you can do:
>
>   (global-set-key [down-mouse-3] (cdr (assq 'C-down-mouse-3 global-map)))
>
> but it's ugly.  Maybe we need a way to ask `key-binding' to return
> menu-items rather than the binding specified in them.  But key-binding
> already takes many parameters..maybe we could abuse the `no-remap' arg
> for that?

---
Like the normal command loop, `key-binding' will remap the command
resulting from looking up KEY by looking up the command in the
current keymaps.  However, if the optional third argument NO-REMAP
is non-nil, `key-binding' returns the unmapped command.
---

Using `no-remap' for that sounds like a reasonable thing to do.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




This bug report was last modified 3 years and 240 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.