GNU bug report logs - #102
keymap property ignored for mouse click on overlay

Previous Next

Package: emacs;

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

Date: Sun, 30 Mar 2008 22:15:08 UTC

Severity: normal

Merged with 71

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'martin rudalics'" <rudalics <at> gmx.at>,
        "'Chong Yidong'" <cyd <at> stupidchicken.com>
Cc: <102 <at> debbugs.gnu.org>
Subject: bug#102: keymap property ignored for mouse click on overlay
Date: Wed, 16 Apr 2008 13:58:39 -0700
> > (defun foo (beg end)
> >   (interactive "r")
> >   (let ((overlay (make-overlay beg end)))
> >     (overlay-put
> >      overlay 'display
> >      (propertize "xxxxxxxxx" 'face 'font-lock-constant-face
> >                              'keymap foo-map))
> >     (overlay-put overlay 'keymap foo-map)))
> 
> It's all in the original thread, compare:
> http://lists.gnu.org/archive/html/emacs-devel/2008-03/msg01923.html

Which is this:

(defun foo (beg end)
  (interactive "r")
  (let ((overlay (make-overlay beg end)))
    (overlay-put
     overlay 'display
     (propertize "xxxxxxxxx" 'face 'font-lock-constant-face 'keymap foo-map))))

Yidong's suggestion still has the (overlay-put overlay 'keymap foo-map); yours
does not. Is that part needed? (Trying to understand what is needed, not just
what works on this example.)

> I have at least one Emacs 22 build where this fails.  Please
> recheck whether it works for Emacs 22.2.

What is "it"? Your suggestion or Yidong's (or both)?






This bug report was last modified 17 years and 36 days ago.

Previous Next


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