From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Angeli Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: 23.0.60; Image in before-string of overlay interferes with keymap Date: Wed, 06 Feb 2008 22:30:17 +0100 Message-ID: <87fxw593iu.fsf@photon.caeruleus.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202333435 14077 80.91.229.12 (6 Feb 2008 21:30:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Feb 2008 21:30:35 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 06 22:30:57 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JMrr6-0001xm-Ri for ged-emacs-devel@m.gmane.org; Wed, 06 Feb 2008 22:30:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMrqe-000610-72 for ged-emacs-devel@m.gmane.org; Wed, 06 Feb 2008 16:30:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JMrqa-0005zq-CZ for emacs-devel@gnu.org; Wed, 06 Feb 2008 16:30:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JMrqZ-0005za-JK for emacs-devel@gnu.org; Wed, 06 Feb 2008 16:30:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMrqZ-0005zX-GE for emacs-devel@gnu.org; Wed, 06 Feb 2008 16:30:23 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JMrqZ-0001lL-AH for emacs-devel@gnu.org; Wed, 06 Feb 2008 16:30:23 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JMrqY-0000UQ-Ue for emacs-pretest-bug@gnu.org; Wed, 06 Feb 2008 16:30:23 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JMrqV-0001ka-Ez for emacs-pretest-bug@gnu.org; Wed, 06 Feb 2008 16:30:22 -0500 Original-Received: from moutng.kundenserver.de ([212.227.126.179]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JMrqU-0001kS-Um for emacs-pretest-bug@gnu.org; Wed, 06 Feb 2008 16:30:19 -0500 Original-Received: from photon.caeruleus.net (p54A52AFC.dip0.t-ipconnect.de [84.165.42.252]) by mrelayeu.kundenserver.de (node=mrelayeu4) with ESMTP (Nemesis) id 0ML21M-1JMrqT2Y8X-0006bv; Wed, 06 Feb 2008 22:30:18 +0100 X-Provags-ID: V01U2FsdGVkX1+rPDLkMFd2ckE/DbOMgPbElH8zkId6VjNSAyI XAIwfWXjqVmbMC6QT9Wc7guXbGTYfR6N0Fkvw2/CkZ9DIBohEB KJzvPY41/ZVQIsjG8sttg== X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:88363 gmane.emacs.pretest.bugs:20909 Archived-At: As soon as an image is used in the before-string property of an overlay, mouse clicks as defined in a keymap for the propertized string are not recognized anymore. In order to reproduce this, start Emacs with `emacs -Q', execute the code snippet included below and click with mouse-1, mouse-2 or mouse-3 on the image in the new buffer. If the `display' property is omitted from the code below, clicking on the letter "A" after executing the code will show "Mouse-1", "Mouse-2" or "Mouse-3" in the echo area, depending on which mouse button was used when clicking on it. (progn (pop-to-buffer "*foo*") (insert "xxx") (let ((ov (make-overlay 1 4)) (map (make-sparse-keymap))) (define-key map [mouse-1] (lambda () (interactive) (message "Mouse-1"))) (define-key map [mouse-2] (lambda () (interactive) (message "Mouse-2"))) (define-key map [mouse-3] (lambda () (interactive) (message "Mouse-3"))) (overlay-put ov 'before-string (propertize "A" 'keymap map 'display `(image :type xpm :file ,(concat data-directory "/images/attach.xpm")) 'mouse-face 'highlight)))) In GNU Emacs 23.0.60.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.12.7) of 2008-02-06 on photon Windowing system distributor `The X.Org Foundation', version 11.0.10400090 configured using `configure '--enable-font-backend'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-compression-mode: t line-number-mode: t Recent input: C-_ C-x o C-p C-p C-p C-p C-f C-SPC C-n C-n C-n C-p C-p C-p C-SPC C-SPC C-n C-n C-n M-; C-x 0 C-x k C-n C-b C-x C-e C-x 1 M-x r e p o r t - e m C-g C-x k C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-a C-SPC C-SPC C-n C-n C-n C-n M-w M-> C-y C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-SPC C-SPC C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n M-w C-y C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-p C-p C-p C-p C-p C-p C-p C-b d i s p l a y C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-b C-x C-e C-x k C-x 0 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-SPC C-SPC C-n C-n C-n M-; C-n C-n C-b C-x C-e C-x k C-x 0 C-n C-n C-n C-n C-n C-n C-n C-n C-SPC M-> C-SPC C-SPC C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-w C-p C-p C-p C-p C-SPC C-SPC C-n C-n C-n M-; M-< C-SPC C-M-f M-w M-x r e p o r t - e m a Recent messages: Mouse-3 Mark set Transient-mark-mode temporarily enabled #("A" 0 1 (mouse-face highlight display (image :type xpm :file "/usr/src/emacs/etc//images/attach.xpm") keymap (keymap (mouse-3 lambda nil ... ...) (mouse-2 lambda nil ... ...) (mouse-1 lambda nil ... ...)))) Mouse-2 Mark set [3 times] Transient-mark-mode temporarily enabled Mark set Transient-mark-mode temporarily enabled Mark set [2 times] -- Ralf