[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: Emacs doesn't interpret down-mouse events on `before
From: |
Kim F. Storm |
Subject: |
Re: address@hidden: Emacs doesn't interpret down-mouse events on `before' and `after' strings] |
Date: |
Mon, 12 Mar 2007 15:00:35 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) |
Richard Stallman <address@hidden> writes:
> [I sent this message a week ago but did not get a response.]
>
> Would someone please debug this and ack?
I have installed a fix.
>
> From: address@hidden (Johan Bockgård)
> Subject: Emacs doesn't interpret down-mouse events on `before' and `after'
> strings
> To: address@hidden
> Date: Thu, 22 Feb 2007 20:31:49 +0100
>
>
> ;;;
> (setq ov (make-overlay 1 3))
> (setq map (make-sparse-keymap))
> (define-key map [down-mouse-1] 'A)
> (define-key map [mouse-1] 'B)
> (setq str (propertize "XXX" 'keymap map))
> (overlay-put ov 'before-string str)
> (global-set-key [down-mouse-1] 'C)
> (global-set-key [mouse-1] 'D)
>
> M-x eval-buffer
>
> Clicking outside the overlay beeps twice and displays:
>
> Symbol's function definition is void: C
> Symbol's function definition is void: D
>
> Clicking on the overlay beeps once and displays:
>
> Symbol's function definition is void: B
>
> What happened to the down-mouse event?
>
> - --
> Johan Bockg��rd
>
>
> _______________________________________________
> emacs-pretest-bug mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
> ----------