From unknown Thu Jun 19 14:27:02 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#102 <102@debbugs.gnu.org> To: bug#102 <102@debbugs.gnu.org> Subject: Status: keymap property ignored for mouse click on overlay Reply-To: bug#102 <102@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:27:02 +0000 retitle 102 keymap property ignored for mouse click on overlay reassign 102 emacs submitter 102 "Drew Adams" severity 102 normal thanks From monnier@iro.umontreal.ca Sun Mar 30 15:10:26 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Status: No, score=1.3 required=4.0 tests=AWL,IMPRONONCABLE_1, MURPHY_WRONG_WORD1,MURPHY_WRONG_WORD2,UNPARSEABLE_RELAY autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 30 Mar 2008 22:10:26 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m2UMAFee010493 for ; Sun, 30 Mar 2008 15:10:20 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnkFAFus70fO+LLN/2dsb2JhbACBWpBplGo X-IronPort-AV: E=Sophos;i="4.25,579,1199682000"; d="scan'208";a="17176621" Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 30 Mar 2008 18:10:18 -0400 Received: from pastel.home ([206.248.178.205]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id KZO65618 for ; Sun, 30 Mar 2008 18:10:18 -0400 Received: by pastel.home (Postfix, from userid 20848) id 4A3127FDF; Sun, 30 Mar 2008 18:10:18 -0400 (EDT) Resent-Message-ID: Resent-To: submit@debbugs.gnu.org Resent-From: Stefan Monnier Resent-Date: Sun, 30 Mar 2008 18:10:18 -0400 X-Original-To: monnier@iro.umontreal.ca Received: from pinpin.iro.umontreal.ca (pinpin.iro.umontreal.ca [132.204.24.52]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id A55452CFA8F for ; Sun, 30 Mar 2008 14:25:47 -0400 (EDT) Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by pinpin.iro.umontreal.ca (Postfix) with ESMTP id 4F3DD3B8B43 for ; Sun, 30 Mar 2008 14:25:38 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jg2Dp-0005kl-Hs for monnier@iro.umontreal.ca; Sun, 30 Mar 2008 14:25:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jg2DY-0005kF-2I for emacs-devel@gnu.org; Sun, 30 Mar 2008 14:25:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jg2DW-0005jt-Ho for emacs-devel@gnu.org; Sun, 30 Mar 2008 14:25:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jg2DW-0005jp-9U for emacs-devel@gnu.org; Sun, 30 Mar 2008 14:25:18 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jg2DW-0005wp-3m for emacs-devel@gnu.org; Sun, 30 Mar 2008 14:25:18 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Jg2DV-0004Ij-Sw for emacs-pretest-bug@gnu.org; Sun, 30 Mar 2008 14:25:17 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Jg2DS-0005wP-OG for emacs-pretest-bug@gnu.org; Sun, 30 Mar 2008 14:25:17 -0400 Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jg2DS-0005w7-DA for emacs-pretest-bug@gnu.org; Sun, 30 Mar 2008 14:25:14 -0400 Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m2UIPBeo014217 for ; Sun, 30 Mar 2008 12:25:12 -0600 Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m2UGDGib007003 for ; Sun, 30 Mar 2008 12:25:11 -0600 Received: from inet-141-146-46-1.oracle.com by acsmt351.oracle.com with ESMTP id 3631337261206901467; Sun, 30 Mar 2008 11:24:27 -0700 Received: from dradamslap1 (/141.144.64.157) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 30 Mar 2008 11:24:26 -0700 From: "Drew Adams" To: Date: Sun, 30 Mar 2008 11:24:44 -0700 Message-ID: <000b01c89293$540969d0$0200a8c0@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AciSk1OlBYhp0Ue3ROilYhdAPHwfXQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Cc: Subject: keymap property ignored for mouse click on overlay 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: , Sender: emacs-devel-bounces+monnier=iro.umontreal.ca@gnu.org Errors-To: emacs-devel-bounces+monnier=iro.umontreal.ca@gnu.org X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-1.94, requis 5, BAYES_00 -2.60, RECEIVED_FROM_NOUNK 0.66, SPF_HELO_PASS -0.00) X-DIRO-MailScanner-From: emacs-devel-bounces+monnier=iro.umontreal.ca@gnu.org emacs -Q (setq foo-map (make-sparse-keymap)) (define-key foo-map [mouse-2] 'bar) (defun foo (beg end) (interactive "r") (let ((overlay (make-overlay beg end))) (overlay-put overlay 'display (propertize "xxxxxxxxx" 'face 'font-lock-constant-face)) (overlay-put overlay 'keymap foo-map))) (defun bar (event) (interactive "e") (message "BAR")) Here's some text: aaaaaaaaaaaaaaaaaaaaaaa Select one or more of the a's and do M-x foo, to apply the overlay to just those a's. Put point somewhere outside the displayed "xxxxxxxxx" overlay. Click mouse-2 anywhere on the displayed "xxxxxxxxx". What happens, it seems, is that, since point is not on the a's that have the overlay, keymap foo-map doesn't apply. Clicking mouse-2 therefore just calls the default mouse-2 binding, e.g. mouse-yank-at-click. That sets point so that it is at the beginning of the overlaid text, so that a second mouse-2 click on the displayed "xxxxxxxxx" does call bar. If that's what's happening, how can foo be defined so that a first click on the displayed "xxxxxxxxx" calls bar? I'm guessing that the mouse click on the overlay is noted not as being a click on a buffer position that has the overlay but on a buffer position that is under the displayed "xxxxxxxxx" but is actually outside the text that has the overlay. What I'm looking for is for the click to be perceived by Emacs as happening on the overlay, and for the overlay's keymap to apply over the full extent of the overlay, not just at its beginning, causing the overlay's keymap binding to take effect. Note that this is specifically about overlays, not text properties. In GNU Emacs 22.1.90.1 (i386-mingw-nt5.1.2600) of 2008-01-30 on PRETEST Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --cflags -Ic:/gnuwin32/include' From cyd@stupidchicken.com Tue Apr 15 16:50:22 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: *** X-Spam-Status: No, score=3.3 required=4.0 tests=AWL,FOURLA,FVGT_m_MULTI_ODD, IMPRONONCABLE_1,MURPHY_DRUGS_REL8,MURPHY_WRONG_WORD1,MURPHY_WRONG_WORD2, PHONENUMBER,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 102) by emacsbugs.donarmstrong.com; 15 Apr 2008 23:50:22 +0000 Received: from furry (c-98-216-111-182.hsd1.ma.comcast.net [98.216.111.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3FNoEIG007864 for <102@emacsbugs.donarmstrong.com>; Tue, 15 Apr 2008 16:50:15 -0700 Received: by furry (Postfix, from userid 1000) id E738AC047; Tue, 15 Apr 2008 19:50:03 -0400 (EDT) From: Chong Yidong To: "Drew Adams" Cc: Martin Rudalics , 102@debbugs.gnu.org Subject: Re: keymap property ignored for mouse click on overlay Date: Tue, 15 Apr 2008 19:50:03 -0400 Message-ID: <87y77elluc.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > (setq foo-map (make-sparse-keymap)) > (define-key foo-map [mouse-2] 'bar) > > (defun foo (beg end) > (interactive "r") > (let ((overlay (make-overlay beg end))) > (overlay-put > overlay 'display > (propertize "xxxxxxxxx" 'face 'font-lock-constant-face)) > (overlay-put overlay 'keymap foo-map))) > > (defun bar (event) (interactive "e") (message "BAR")) > ... > I'm guessing that the mouse click on the overlay is noted not as being > a click on a buffer position that has the overlay but on a buffer > position that is under the displayed "xxxxxxxxx" but is actually > outside the text that has the overlay. First off, could you confirm that this bug, #102, is the same as #71 in the bug tracker, at http://debbugs.gnu.org/cgi/bugreport.cgi?bug=71 ? Thanks. The following patch implements the behavior you are looking for: mouse clicks on before/after strings and display strings will use the `keymap' overlay or text property associated with the text position---unless the string itself defines a `keymap' text property, in which case that keymap is used instead. Could you test it out? Please test as many combinations of keymaps/overlays/textprops as possible. Test the output of C-h k also. *** trunk/src/keyboard.c~ 2008-04-15 19:34:26.000000000 -0400 --- trunk/src/keyboard.c 2008-04-15 19:21:34.000000000 -0400 *************** *** 9695,9701 **** localized_local_map = 1; start = EVENT_START (key); ! if (CONSP (start) && POSN_INBUFFER_P (start)) { pos = POSN_BUFFER_POSN (start); if (INTEGERP (pos) --- 9695,9701 ---- localized_local_map = 1; start = EVENT_START (key); ! if (CONSP (start)) { pos = POSN_BUFFER_POSN (start); if (INTEGERP (pos) *** trunk/src/keymap.c.~1.372.~ 2008-04-08 21:55:36.000000000 -0400 --- trunk/src/keymap.c 2008-04-15 14:32:22.000000000 -0400 *************** *** 1682,1705 **** if (CONSP (position)) { Lisp_Object string; /* For a mouse click, get the local text-property keymap of the place clicked on, rather than point. */ ! ! if (POSN_INBUFFER_P (position)) { ! Lisp_Object pos; ! pos = POSN_BUFFER_POSN (position); ! if (INTEGERP (pos) ! && XINT (pos) >= BEG && XINT (pos) <= Z) ! { ! local_map = get_local_map (XINT (pos), ! current_buffer, Qlocal_map); ! ! keymap = get_local_map (XINT (pos), ! current_buffer, Qkeymap); ! } } /* If on a mode line string with a local keymap, --- 1682,1699 ---- if (CONSP (position)) { Lisp_Object string; + Lisp_Object pos = POSN_BUFFER_POSN (position); /* For a mouse click, get the local text-property keymap of the place clicked on, rather than point. */ ! if (INTEGERP (pos) ! && XINT (pos) >= BEG && XINT (pos) <= Z) { ! local_map = get_local_map (XINT (pos), ! current_buffer, Qlocal_map); ! keymap = get_local_map (XINT (pos), ! current_buffer, Qkeymap); } /* If on a mode line string with a local keymap, *************** *** 1862,1885 **** if (CONSP (position)) { Lisp_Object string; /* For a mouse click, get the local text-property keymap of the place clicked on, rather than point. */ ! ! if (POSN_INBUFFER_P (position)) { ! Lisp_Object pos; ! pos = POSN_BUFFER_POSN (position); ! if (INTEGERP (pos) ! && XINT (pos) >= BEG && XINT (pos) <= Z) ! { ! local_map = get_local_map (XINT (pos), ! current_buffer, Qlocal_map); ! ! keymap = get_local_map (XINT (pos), ! current_buffer, Qkeymap); ! } } /* If on a mode line string with a local keymap, --- 1856,1873 ---- if (CONSP (position)) { Lisp_Object string; + Lisp_Object pos = POSN_BUFFER_POSN (position); /* For a mouse click, get the local text-property keymap of the place clicked on, rather than point. */ ! if (INTEGERP (pos) ! && XINT (pos) >= BEG && XINT (pos) <= Z) { ! local_map = get_local_map (XINT (pos), ! current_buffer, Qlocal_map); ! keymap = get_local_map (XINT (pos), ! current_buffer, Qkeymap); } /* If on a mode line string with a local keymap, From drew.adams@oracle.com Tue Apr 15 23:12:06 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-1.2 required=4.0 tests=AWL,MURPHY_DRUGS_REL8, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 102) by emacsbugs.donarmstrong.com; 16 Apr 2008 06:12:06 +0000 Received: from agminet01.oracle.com (agminet01.oracle.com [141.146.126.228]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3G6C33k013832 for <102@emacsbugs.donarmstrong.com>; Tue, 15 Apr 2008 23:12:04 -0700 Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m3G6BuIv030299; Wed, 16 Apr 2008 01:11:56 -0500 Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m3F3NJDU007172; Wed, 16 Apr 2008 00:11:56 -0600 Received: from inet-141-146-46-1.oracle.com by acsmt350.oracle.com with ESMTP id 3649995931208326312; Tue, 15 Apr 2008 23:11:52 -0700 Received: from dradamslap1 (/141.144.72.76) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 15 Apr 2008 23:11:52 -0700 From: "Drew Adams" To: "'Chong Yidong'" Cc: "'Martin Rudalics'" , <102@debbugs.gnu.org> References: <87y77elluc.fsf@stupidchicken.com> Subject: RE: keymap property ignored for mouse click on overlay Date: Tue, 15 Apr 2008 23:11:55 -0700 Message-ID: <005301c89f88$c61b84c0$0200a8c0@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87y77elluc.fsf@stupidchicken.com> Thread-Index: AcifU556F6ThUwx2Sfi+rAdGAQf2EQANMveA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE > First off, could you confirm that this bug, #102, is the same > as #71 in the bug tracker, at > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=71 Yes, it is the same. Sorry for the duplicate. > The following patch implements the behavior you are looking for: mouse > clicks on before/after strings and display strings will use > the `keymap' > overlay or text property associated with the text > position---unless the > string itself defines a `keymap' text property, in which case that > keymap is used instead. > > Could you test it out? Please test as many combinations of > keymaps/overlays/textprops as possible. Test the output of > C-h k also. I can't build Emacs, sorry. If it were Lisp only, I would test it. Thanks for fixing this. - Drew From cyd@stupidchicken.com Wed Apr 16 06:19:31 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: *** X-Spam-Status: No, score=3.5 required=4.0 tests=AWL,ONEWORD,RCVD_IN_PBL, RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 16 Apr 2008 13:19:32 +0000 Received: from furry (c-98-216-111-182.hsd1.ma.comcast.net [98.216.111.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3GDJPa3004118 for ; Wed, 16 Apr 2008 06:19:26 -0700 Received: by furry (Postfix, from userid 1000) id 22057C04A; Wed, 16 Apr 2008 09:19:20 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: foo Date: Wed, 16 Apr 2008 09:19:20 -0400 Message-ID: <873apmc4yv.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii merge 102 71 From cyd@stupidchicken.com Wed Apr 16 10:52:08 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-0.3 required=4.0 tests=AWL,FOURLA,MURPHY_DRUGS_REL8 autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 102) by emacsbugs.donarmstrong.com; 16 Apr 2008 17:52:08 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3GHq4ic019746 for <102@emacsbugs.donarmstrong.com>; Wed, 16 Apr 2008 10:52:06 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 09FBD4E4AB; Wed, 16 Apr 2008 13:48:13 -0400 (EDT) From: Chong Yidong To: "Drew Adams" Cc: "'Martin Rudalics'" , <102@debbugs.gnu.org> Subject: Re: keymap property ignored for mouse click on overlay References: <87y77elluc.fsf@stupidchicken.com> <005301c89f88$c61b84c0$0200a8c0@us.oracle.com> Date: Wed, 16 Apr 2008 13:48:12 -0400 In-Reply-To: <005301c89f88$c61b84c0$0200a8c0@us.oracle.com> (Drew Adams's message of "Tue, 15 Apr 2008 23:11:55 -0700") Message-ID: <878wzdn12b.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii "Drew Adams" writes: >> The following patch implements the behavior you are looking for: >> mouse clicks on before/after strings and display strings will use the >> `keymap' overlay or text property associated with the text >> position---unless the string itself defines a `keymap' text property, >> in which case that keymap is used instead. >> >> Could you test it out? Please test as many combinations of >> keymaps/overlays/textprops as possible. Test the output of >> C-h k also. > > I can't build Emacs, sorry. If it were Lisp only, I would test it. After studying this some more, I've decided to leave the current behavior alone. It turns out that the patch I posted earlier doesn't work for after-strings, because the buffer position associated with an after-string is the end of the overlay (1 + the postition of the last character). As a result, there's no efficient way for read_key_sequence to detect the existence of an overlay with a keymap for an after-string. The fact that the buffer position of an after-string is the overlay end isn't easily changed, because the redisplay engine relies on this for efficiency (it means that the redisplay iterator can process all the strings at a given charpos, before processing the buffer text). Since the benefit of this feature is rather marginal in the first place, I think it's better to simply document that display strings don't inherit keymaps. The way to DTRT is to give the display string a 'keymap text property, which has always worked. From drew.adams@oracle.com Wed Apr 16 11:02:19 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-1.3 required=4.0 tests=AWL,FOURLA,MURPHY_DRUGS_REL8, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 102) by emacsbugs.donarmstrong.com; 16 Apr 2008 18:02:20 +0000 Received: from rgminet01.oracle.com (rgminet01.oracle.com [148.87.113.118]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3GI2DWf022413 for <102@emacsbugs.donarmstrong.com>; Wed, 16 Apr 2008 11:02:14 -0700 Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m3GI26im026938; Wed, 16 Apr 2008 12:02:07 -0600 Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m3F3NJSQ007172; Wed, 16 Apr 2008 12:02:06 -0600 Received: from inet-141-146-46-1.oracle.com by acsmt350.oracle.com with ESMTP id 3651764351208368919; Wed, 16 Apr 2008 11:01:59 -0700 Received: from dradamslap1 (/130.35.178.194) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 16 Apr 2008 11:01:59 -0700 From: "Drew Adams" To: "'Chong Yidong'" Cc: "'Martin Rudalics'" , <102@debbugs.gnu.org> References: <87y77elluc.fsf@stupidchicken.com><005301c89f88$c61b84c0$0200a8c0@us.oracle.com> <878wzdn12b.fsf@stupidchicken.com> Subject: RE: keymap property ignored for mouse click on overlay Date: Wed, 16 Apr 2008 11:01:59 -0700 Message-ID: <001001c89feb$f7728e70$c2b22382@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <878wzdn12b.fsf@stupidchicken.com> Thread-Index: Acif6sLVNm+I3GVtQRKqEUdq+swKWgAANg/A X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE > After studying this some more, I've decided to leave the current > behavior alone. > > It turns out that the patch I posted earlier doesn't work for > after-strings, because the buffer position associated with an > after-string is the end of the overlay (1 + the postition of the last > character). As a result, there's no efficient way for > read_key_sequence > to detect the existence of an overlay with a keymap for an > after-string. > > The fact that the buffer position of an after-string is the > overlay end > isn't easily changed, because the redisplay engine relies on this for > efficiency (it means that the redisplay iterator can process all the > strings at a given charpos, before processing the buffer text). > > Since the benefit of this feature is rather marginal in the > first place, > I think it's better to simply document that display strings don't > inherit keymaps. The way to DTRT is to give the display string a > 'keymap text property, which has always worked. Could you state how that would change in the test case I sent? I added both a `display' property and a `keymap' property to the overlay. What would the new test-case code look like? I'm OK with documenting a limitation if there is an easy alternative way to do what I need. Thx. From cyd@stupidchicken.com Wed Apr 16 11:45:35 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=0.3 required=4.0 tests=AWL,FOURLA,IMPRONONCABLE_1, MURPHY_WRONG_WORD1,MURPHY_WRONG_WORD2 autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 102) by emacsbugs.donarmstrong.com; 16 Apr 2008 18:45:35 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3GIjWbD002587 for <102@emacsbugs.donarmstrong.com>; Wed, 16 Apr 2008 11:45:33 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id B94BD4E4AB; Wed, 16 Apr 2008 14:41:40 -0400 (EDT) From: Chong Yidong To: "Drew Adams" Cc: "'Martin Rudalics'" , <102@debbugs.gnu.org> Subject: Re: keymap property ignored for mouse click on overlay References: <87y77elluc.fsf@stupidchicken.com> <005301c89f88$c61b84c0$0200a8c0@us.oracle.com> <878wzdn12b.fsf@stupidchicken.com> <001001c89feb$f7728e70$c2b22382@us.oracle.com> Date: Wed, 16 Apr 2008 14:41:40 -0400 In-Reply-To: <001001c89feb$f7728e70$c2b22382@us.oracle.com> (Drew Adams's message of "Wed, 16 Apr 2008 11:01:59 -0700") Message-ID: <87k5ixvdzv.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii "Drew Adams" writes: >> Since the benefit of this feature is rather marginal in the first >> place, I think it's better to simply document that display strings >> don't inherit keymaps. The way to DTRT is to give the display string >> a 'keymap text property, which has always worked. > > Could you state how that would change in the test case I sent? I added > both a `display' property and a `keymap' property to the overlay. What > would the new test-case code look like? > > I'm OK with documenting a limitation if there is an easy alternative > way to do what I need. It's simple: (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))) From rudalics@gmx.at Wed Apr 16 12:03:11 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Status: No, score=1.3 required=4.0 tests=IMPRONONCABLE_1, MURPHY_WRONG_WORD1,MURPHY_WRONG_WORD2 autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 102) by emacsbugs.donarmstrong.com; 16 Apr 2008 19:03:11 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m3GJ36fm006703 for <102@emacsbugs.donarmstrong.com>; Wed, 16 Apr 2008 12:03:08 -0700 Received: (qmail invoked by alias); 16 Apr 2008 19:03:00 -0000 Received: from 62-47-58-85.adsl.highway.telekom.at (EHLO [62.47.58.85]) [62.47.58.85] by mail.gmx.net (mp008) with SMTP; 16 Apr 2008 21:03:00 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18iHrlZk08i/maac+gNeqwHi00amiPOOpNMuQgzGy VHAEGCsiZjI6g1 Message-ID: <48064DCB.4020702@gmx.at> Date: Wed, 16 Apr 2008 21:04:43 +0200 From: martin rudalics User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: Chong Yidong CC: Drew Adams , 102@debbugs.gnu.org Subject: Re: keymap property ignored for mouse click on overlay References: <87y77elluc.fsf@stupidchicken.com> <005301c89f88$c61b84c0$0200a8c0@us.oracle.com> <878wzdn12b.fsf@stupidchicken.com> <001001c89feb$f7728e70$c2b22382@us.oracle.com> <87k5ixvdzv.fsf@stupidchicken.com> In-Reply-To: <87k5ixvdzv.fsf@stupidchicken.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 > It's simple: > > (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 I have at least one Emacs 22 build where this fails. Please recheck whether it works for Emacs 22.2. From cyd@stupidchicken.com Wed Apr 16 12:39:42 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=0.3 required=4.0 tests=AWL,IMPRONONCABLE_1, MURPHY_WRONG_WORD1,MURPHY_WRONG_WORD2 autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 102) by emacsbugs.donarmstrong.com; 16 Apr 2008 19:39:43 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3GJde59016789 for <102@emacsbugs.donarmstrong.com>; Wed, 16 Apr 2008 12:39:41 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 434534E4AB; Wed, 16 Apr 2008 15:35:48 -0400 (EDT) From: Chong Yidong To: martin rudalics Cc: Drew Adams , 102@debbugs.gnu.org Subject: Re: keymap property ignored for mouse click on overlay References: <87y77elluc.fsf@stupidchicken.com> <005301c89f88$c61b84c0$0200a8c0@us.oracle.com> <878wzdn12b.fsf@stupidchicken.com> <001001c89feb$f7728e70$c2b22382@us.oracle.com> <87k5ixvdzv.fsf@stupidchicken.com> <48064DCB.4020702@gmx.at> Date: Wed, 16 Apr 2008 15:35:48 -0400 In-Reply-To: <48064DCB.4020702@gmx.at> (martin rudalics's message of "Wed, 16 Apr 2008 21:04:43 +0200") Message-ID: <87zlrtfv8r.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii martin rudalics writes: >> (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 > > I have at least one Emacs 22 build where this fails. Please > recheck whether it works for Emacs 22.2. Works for me on 22.2. From drew.adams@oracle.com Wed Apr 16 13:59:39 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-0.7 required=4.0 tests=AWL,IMPRONONCABLE_1, MURPHY_WRONG_WORD1,MURPHY_WRONG_WORD2,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 102) by emacsbugs.donarmstrong.com; 16 Apr 2008 20:59:40 +0000 Received: from agminet01.oracle.com (agminet01.oracle.com [141.146.126.228]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3GKxaF9006304 for <102@emacsbugs.donarmstrong.com>; Wed, 16 Apr 2008 13:59:37 -0700 Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m3GKxT72031609; Wed, 16 Apr 2008 15:59:29 -0500 Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m3G9KSSo018081; Wed, 16 Apr 2008 14:59:27 -0600 Received: from inet-141-146-46-1.oracle.com by acsmt350.oracle.com with ESMTP id 3651137221208379518; Wed, 16 Apr 2008 13:58:38 -0700 Received: from dradamslap1 (/130.35.178.194) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 16 Apr 2008 13:58:38 -0700 From: "Drew Adams" To: "'martin rudalics'" , "'Chong Yidong'" Cc: <102@debbugs.gnu.org> References: <87y77elluc.fsf@stupidchicken.com> <005301c89f88$c61b84c0$0200a8c0@us.oracle.com> <878wzdn12b.fsf@stupidchicken.com> <001001c89feb$f7728e70$c2b22382@us.oracle.com> <87k5ixvdzv.fsf@stupidchicken.com> <48064DCB.4020702@gmx.at> Subject: RE: keymap property ignored for mouse click on overlay Date: Wed, 16 Apr 2008 13:58:39 -0700 Message-ID: <004501c8a004$a574aea0$c2b22382@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <48064DCB.4020702@gmx.at> Thread-Index: Acif9KKqIxw9wkFWSX2TS36GR2XJvQAD5nGg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE > > (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)? From rudalics@gmx.at Wed Apr 16 14:14:01 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=0.7 required=4.0 tests=AWL autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 102) by emacsbugs.donarmstrong.com; 16 Apr 2008 21:14:01 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m3GLDvRh011010 for <102@emacsbugs.donarmstrong.com>; Wed, 16 Apr 2008 14:13:59 -0700 Received: (qmail invoked by alias); 16 Apr 2008 21:13:52 -0000 Received: from 62-47-55-240.adsl.highway.telekom.at (EHLO [62.47.55.240]) [62.47.55.240] by mail.gmx.net (mp040) with SMTP; 16 Apr 2008 23:13:52 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+6gpZAL0+6Ds4yR61cIJd+cIqKPGdcFeIPVTi3Li +TB6d9JiCEBHiW Message-ID: <48066C94.1050006@gmx.at> Date: Wed, 16 Apr 2008 23:16:04 +0200 From: martin rudalics User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: Drew Adams CC: "'Chong Yidong'" , 102@debbugs.gnu.org Subject: Re: keymap property ignored for mouse click on overlay References: <87y77elluc.fsf@stupidchicken.com> <005301c89f88$c61b84c0$0200a8c0@us.oracle.com> <878wzdn12b.fsf@stupidchicken.com> <001001c89feb$f7728e70$c2b22382@us.oracle.com> <87k5ixvdzv.fsf@stupidchicken.com> <48064DCB.4020702@gmx.at> <004501c8a004$a574aea0$c2b22382@us.oracle.com> In-Reply-To: <004501c8a004$a574aea0$c2b22382@us.oracle.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 > What is "it"? Your suggestion or Yidong's (or both)? My suggestion works here with Emacs 23 and did not work in an Emacs 22 build from May 2007. I don't know what Chong checked and what changed since that. Does his suggestion work for you? From cyd@stupidchicken.com Wed Apr 16 14:14:10 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-0.3 required=4.0 tests=AWL autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 102) by emacsbugs.donarmstrong.com; 16 Apr 2008 21:14:11 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3GLE7GS011018 for <102@emacsbugs.donarmstrong.com>; Wed, 16 Apr 2008 14:14:09 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 7784B4E4AB; Wed, 16 Apr 2008 17:10:15 -0400 (EDT) From: Chong Yidong To: "Drew Adams" Cc: "'martin rudalics'" , <102@debbugs.gnu.org> Subject: Re: keymap property ignored for mouse click on overlay References: <87y77elluc.fsf@stupidchicken.com> <005301c89f88$c61b84c0$0200a8c0@us.oracle.com> <878wzdn12b.fsf@stupidchicken.com> <001001c89feb$f7728e70$c2b22382@us.oracle.com> <87k5ixvdzv.fsf@stupidchicken.com> <48064DCB.4020702@gmx.at> <004501c8a004$a574aea0$c2b22382@us.oracle.com> Date: Wed, 16 Apr 2008 17:10:15 -0400 In-Reply-To: <004501c8a004$a574aea0$c2b22382@us.oracle.com> (Drew Adams's message of "Wed, 16 Apr 2008 13:58:39 -0700") Message-ID: <8763uh7bgo.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii "Drew Adams" writes: > 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.) No. The only local keymap considered is the one on the display string. From cyd@stupidchicken.com Wed Apr 16 14:53:21 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-0.3 required=4.0 tests=AWL autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 102) by emacsbugs.donarmstrong.com; 16 Apr 2008 21:53:21 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3GLrIgL021613 for <102@emacsbugs.donarmstrong.com>; Wed, 16 Apr 2008 14:53:19 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 60EBE4E4AB; Wed, 16 Apr 2008 17:49:26 -0400 (EDT) From: Chong Yidong To: martin rudalics Cc: Drew Adams , 102@debbugs.gnu.org Subject: Re: keymap property ignored for mouse click on overlay References: <87y77elluc.fsf@stupidchicken.com> <005301c89f88$c61b84c0$0200a8c0@us.oracle.com> <878wzdn12b.fsf@stupidchicken.com> <001001c89feb$f7728e70$c2b22382@us.oracle.com> <87k5ixvdzv.fsf@stupidchicken.com> <48064DCB.4020702@gmx.at> <004501c8a004$a574aea0$c2b22382@us.oracle.com> <48066C94.1050006@gmx.at> Date: Wed, 16 Apr 2008 17:49:26 -0400 In-Reply-To: <48066C94.1050006@gmx.at> (martin rudalics's message of "Wed, 16 Apr 2008 23:16:04 +0200") Message-ID: <87y77d5v2x.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii martin rudalics writes: >> What is "it"? Your suggestion or Yidong's (or both)? > > My suggestion works here with Emacs 23 and did not work in an Emacs 22 > build from May 2007. I don't know what Chong checked and what changed > since that. Does his suggestion work for you? Have you tried 22.2? From drew.adams@oracle.com Wed Apr 16 15:00:40 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-1.4 required=4.0 tests=AWL,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 102) by emacsbugs.donarmstrong.com; 16 Apr 2008 22:00:40 +0000 Received: from agminet01.oracle.com (agminet01.oracle.com [141.146.126.228]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3GM0Yti024179 for <102@emacsbugs.donarmstrong.com>; Wed, 16 Apr 2008 15:00:35 -0700 Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m3GM0RLS011165; Wed, 16 Apr 2008 17:00:27 -0500 Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m3G8RwmS029908; Wed, 16 Apr 2008 16:00:26 -0600 Received: from inet-141-146-46-1.oracle.com by acsmt350.oracle.com with ESMTP id 3651847101208383135; Wed, 16 Apr 2008 14:58:55 -0700 Received: from dradamslap1 (/130.35.178.194) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 16 Apr 2008 14:58:55 -0700 From: "Drew Adams" To: "'martin rudalics'" Cc: "'Chong Yidong'" , <102@debbugs.gnu.org> References: <87y77elluc.fsf@stupidchicken.com> <005301c89f88$c61b84c0$0200a8c0@us.oracle.com> <878wzdn12b.fsf@stupidchicken.com> <001001c89feb$f7728e70$c2b22382@us.oracle.com> <87k5ixvdzv.fsf@stupidchicken.com> <48064DCB.4020702@gmx.at> <004501c8a004$a574aea0$c2b22382@us.oracle.com> <48066C94.1050006@gmx.at> Subject: RE: keymap property ignored for mouse click on overlay Date: Wed, 16 Apr 2008 14:58:57 -0700 Message-ID: <004a01c8a00d$11f13aa0$c2b22382@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <48066C94.1050006@gmx.at> Thread-Index: AcigBtjxEbD0o/W+TxmSzW1uNbVZUgABUr5w X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE > My suggestion works here with Emacs 23 and did not work in an Emacs 22 > build from May 2007. I don't know what Chong checked and what changed > since that. Does his suggestion work for you? Your suggestion works for me in Emacs 22.2.1. Yidong's suggestion does not work for me in Emacs 22.2.1. Thanks for the workaround. I'm OK with having this limitation documented. That is, the workaround should be suggested to users, IMO. In GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600) of 2008-03-26 on RELEASE Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)' From drew.adams@oracle.com Wed Apr 16 15:16:55 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-1.6 required=4.0 tests=AWL,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 102) by emacsbugs.donarmstrong.com; 16 Apr 2008 22:16:56 +0000 Received: from agminet01.oracle.com (agminet01.oracle.com [141.146.126.228]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3GMGqFi028997 for <102@emacsbugs.donarmstrong.com>; Wed, 16 Apr 2008 15:16:54 -0700 Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m3GMGkaR032077; Wed, 16 Apr 2008 17:16:46 -0500 Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m3G87hl3018662; Wed, 16 Apr 2008 16:16:45 -0600 Received: from inet-141-146-46-1.oracle.com by acsmt350.oracle.com with ESMTP id 3651853001208384116; Wed, 16 Apr 2008 15:15:16 -0700 Received: from dradamslap1 (/130.35.178.194) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 16 Apr 2008 15:15:16 -0700 From: "Drew Adams" To: "'martin rudalics'" Cc: "'Chong Yidong'" , <102@debbugs.gnu.org> References: <87y77elluc.fsf@stupidchicken.com> <005301c89f88$c61b84c0$0200a8c0@us.oracle.com> <878wzdn12b.fsf@stupidchicken.com> <001001c89feb$f7728e70$c2b22382@us.oracle.com> <87k5ixvdzv.fsf@stupidchicken.com> <48064DCB.4020702@gmx.at> <004501c8a004$a574aea0$c2b22382@us.oracle.com> <48066C94.1050006@gmx.at> Subject: RE: keymap property ignored for mouse click on overlay Date: Wed, 16 Apr 2008 15:15:18 -0700 Message-ID: <004c01c8a00f$5ab84b00$c2b22382@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcigBtjxEbD0o/W+TxmSzW1uNbVZUgABUr5wAACz0ZA= X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE > Your suggestion works for me in Emacs 22.2.1. > Yidong's suggestion does not work for me in Emacs 22.2.1. > > Thanks for the workaround. I'm OK with having this limitation > documented. That is, the workaround should be suggested to users, IMO. I should have added that both suggestions work in Emacs 23: In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-04-04 on LENNART-69DE564 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include -fno-crossjumping' From drew.adams@oracle.com Thu Apr 17 14:37:05 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-1.6 required=4.0 tests=AWL,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 102) by emacsbugs.donarmstrong.com; 17 Apr 2008 21:37:05 +0000 Received: from rgminet01.oracle.com (rgminet01.oracle.com [148.87.113.118]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3HLb2sR000642 for <102@emacsbugs.donarmstrong.com>; Thu, 17 Apr 2008 14:37:03 -0700 Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m3HLat2l000677; Thu, 17 Apr 2008 15:36:55 -0600 Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m3HJ8qhu028543; Thu, 17 Apr 2008 15:36:54 -0600 Received: from inet-141-146-46-1.oracle.com by acsmt350.oracle.com with ESMTP id 3653392771208468213; Thu, 17 Apr 2008 14:36:53 -0700 Received: from dradamslap1 (/130.35.178.194) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 17 Apr 2008 14:36:53 -0700 From: "Drew Adams" To: "'martin rudalics'" Cc: "'Chong Yidong'" , <102@debbugs.gnu.org> References: <87y77elluc.fsf@stupidchicken.com> <005301c89f88$c61b84c0$0200a8c0@us.oracle.com> <878wzdn12b.fsf@stupidchicken.com> <001001c89feb$f7728e70$c2b22382@us.oracle.com> <87k5ixvdzv.fsf@stupidchicken.com> <48064DCB.4020702@gmx.at> <004501c8a004$a574aea0$c2b22382@us.oracle.com> <48066C94.1050006@gmx.at> Subject: RE: keymap property ignored for mouse click on overlay Date: Thu, 17 Apr 2008 14:36:58 -0700 Message-ID: <00d701c8a0d3$2aa79af0$c2b22382@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcigBtjxEbD0o/W+TxmSzW1uNbVZUgABUr5wAC/JJ+A= X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE > > My suggestion works here with Emacs 23 and did not work in > > an Emacs 22 build from May 2007. I don't know what Chong > > checked and what changed > > since that. Does his suggestion work for you? > > Your suggestion works for me in Emacs 22.2.1. > Yidong's suggestion does not work for me in Emacs 22.2.1. > > Thanks for the workaround. I'm OK with having this limitation > documented. That is, the workaround should be suggested to users, IMO. > > In GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600) > of 2008-03-26 on RELEASE > Windowing system distributor `Microsoft Corp.', version 5.1.2600 > configured using `configure --with-gcc (3.4)' I just got an email from a user of my code who said that it does not work for him in Emacs 22.2.1. Perhaps it is platform related? I haven't heard back from him yet about his platform. From cyd@stupidchicken.com Thu Apr 17 19:39:31 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: ** X-Spam-Status: No, score=2.5 required=4.0 tests=AWL,RCVD_IN_PBL, RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 102) by emacsbugs.donarmstrong.com; 18 Apr 2008 02:39:31 +0000 Received: from furry (c-98-216-111-182.hsd1.ma.comcast.net [98.216.111.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3I2dSsB020930 for <102@emacsbugs.donarmstrong.com>; Thu, 17 Apr 2008 19:39:29 -0700 Received: by furry (Postfix, from userid 1000) id 48C9EC047; Thu, 17 Apr 2008 22:39:23 -0400 (EDT) From: Chong Yidong To: "Drew Adams" Cc: "'martin rudalics'" , <102@debbugs.gnu.org> Subject: Re: keymap property ignored for mouse click on overlay References: <87y77elluc.fsf@stupidchicken.com> <005301c89f88$c61b84c0$0200a8c0@us.oracle.com> <878wzdn12b.fsf@stupidchicken.com> <001001c89feb$f7728e70$c2b22382@us.oracle.com> <87k5ixvdzv.fsf@stupidchicken.com> <48064DCB.4020702@gmx.at> <004501c8a004$a574aea0$c2b22382@us.oracle.com> <48066C94.1050006@gmx.at> <00d701c8a0d3$2aa79af0$c2b22382@us.oracle.com> Date: Thu, 17 Apr 2008 22:39:23 -0400 In-Reply-To: <00d701c8a0d3$2aa79af0$c2b22382@us.oracle.com> (Drew Adams's message of "Thu, 17 Apr 2008 14:36:58 -0700") Message-ID: <873apjevj8.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii "Drew Adams" writes: > I just got an email from a user of my code who said that it does not > work for him in Emacs 22.2.1. Perhaps it is platform related? I > haven't heard back from him yet about his platform. Possibly. On GNU/Linux, I've not managed to get this to fail at all. Martin, are you running on GNU/Linux? From drew.adams@oracle.com Fri Apr 18 08:13:06 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-1.7 required=4.0 tests=AWL,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 102) by emacsbugs.donarmstrong.com; 18 Apr 2008 15:13:06 +0000 Received: from agminet01.oracle.com (agminet01.oracle.com [141.146.126.228]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3IFD2aH004079 for <102@emacsbugs.donarmstrong.com>; Fri, 18 Apr 2008 08:13:03 -0700 Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m3IFCtfp010016; Fri, 18 Apr 2008 10:12:55 -0500 Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m3HJ8ono018655; Fri, 18 Apr 2008 09:12:54 -0600 Received: from inet-141-146-46-1.oracle.com by acsmt351.oracle.com with ESMTP id 3652734021208531496; Fri, 18 Apr 2008 08:11:36 -0700 Received: from dradamslap1 (/141.144.90.7) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 18 Apr 2008 08:11:36 -0700 From: "Drew Adams" To: "'martin rudalics'" Cc: "'Chong Yidong'" , <102@debbugs.gnu.org> References: <87y77elluc.fsf@stupidchicken.com> <005301c89f88$c61b84c0$0200a8c0@us.oracle.com> <878wzdn12b.fsf@stupidchicken.com> <001001c89feb$f7728e70$c2b22382@us.oracle.com> <87k5ixvdzv.fsf@stupidchicken.com> <48064DCB.4020702@gmx.at> <004501c8a004$a574aea0$c2b22382@us.oracle.com> <48066C94.1050006@gmx.at> Subject: RE: keymap property ignored for mouse click on overlay Date: Fri, 18 Apr 2008 08:11:38 -0700 Message-ID: <000301c8a166$8090f9a0$0200a8c0@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcigBtjxEbD0o/W+TxmSzW1uNbVZUgABUr5wAC/JJ+AAJsEJQA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE > > > My suggestion works here with Emacs 23 and did not work in > > > an Emacs 22 build from May 2007. I don't know what Chong > > > checked and what changed > > > since that. Does his suggestion work for you? > > > > Your suggestion works for me in Emacs 22.2.1. > > Yidong's suggestion does not work for me in Emacs 22.2.1. > > > > Thanks for the workaround. I'm OK with having this limitation > > documented. That is, the workaround should be suggested to > users, IMO. > > > > In GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600) > > of 2008-03-26 on RELEASE > > Windowing system distributor `Microsoft Corp.', version 5.1.2600 > > configured using `configure --with-gcc (3.4)' > > I just got an email from a user of my code who said that it > does not work for him in Emacs 22.2.1. Perhaps it is platform > related? I haven't heard back from him yet about his platform. I was mistaken about this. The user is using Windows, like me, and he too confirms that it _does_ work with Emacs 22.2.1. Sorry for the confusion. From cyd@stupidchicken.com Sun Apr 20 06:39:24 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: *** X-Spam-Status: No, score=3.9 required=4.0 tests=AWL,ONEWORD,RCVD_IN_PBL, RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 20 Apr 2008 13:39:24 +0000 Received: from furry (c-98-216-111-182.hsd1.ma.comcast.net [98.216.111.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3KDdLGe002164 for ; Sun, 20 Apr 2008 06:39:22 -0700 Received: by furry (Postfix, from userid 1000) id E7CECC047; Sun, 20 Apr 2008 09:39:15 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: Close Date: Sun, 20 Apr 2008 09:39:15 -0400 Message-ID: <87ej903at8.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii close 102 thanks From unknown Thu Jun 19 14:27:02 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Sun, 18 May 2008 14:24:02 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator