From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 01 12:02:03 2016 Received: (at submit) by debbugs.gnu.org; 1 Mar 2016 17:02:03 +0000 Received: from localhost ([127.0.0.1]:56546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aangR-00087q-CK for submit@debbugs.gnu.org; Tue, 01 Mar 2016 12:02:03 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48652) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aangP-00087M-Pz for submit@debbugs.gnu.org; Tue, 01 Mar 2016 12:02:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aangE-0002YE-Ry for submit@debbugs.gnu.org; Tue, 01 Mar 2016 12:01:56 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58876) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aangE-0002Y7-Pg for submit@debbugs.gnu.org; Tue, 01 Mar 2016 12:01:50 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aang8-0003Yh-U7 for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2016 12:01:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aang5-0002Q1-Na for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2016 12:01:44 -0500 Received: from mail-qk0-x22a.google.com ([2607:f8b0:400d:c09::22a]:34869) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aang5-0002PQ-JE for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2016 12:01:41 -0500 Received: by mail-qk0-x22a.google.com with SMTP id o6so71798389qkc.2 for ; Tue, 01 Mar 2016 09:01:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=lbecS6/V1yxjTd/VYDMjCnIYlTs+ye4smWpI1N7PE6Y=; b=xkADqpaJ15ROLtMLdSdfgdzhz1C+zdC7R39CedJW218AiCpqv32w5rrRCCxu+p+Cla 1MdocXbn60gpycuKggDLFXpnbH0E7Q5aQhauC50y/Tg8LhB0rBdgYAEGpnAH5QLBbzQB RKEctTl4Ys3zf1mYb8b8RzV4QlQV9Wr12S3rz5+9oJ+9G5PLBDIGnNRLl9zdpkJ/MLZQ CAyGnPOHDcjXHe53qKQ6VEVLpPqZrHThJuBFg8iAzKNQ+kEABLjeQXV4U64M10lkn+P3 rFxqecM5/wWwR+rSPTxK/dLfEYLnRqZPbs7aT3zm56EnsJUgOivsk0+oW/ygepITXfJ3 +bSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version:content-transfer-encoding; bh=lbecS6/V1yxjTd/VYDMjCnIYlTs+ye4smWpI1N7PE6Y=; b=Z/aadKwTG2Z+taZ75M+rE5199q6Ny28OXpzUD7zFySmFijW5z5nnE1FvOoqcC321x3 Nhex2bqKDPJakt2Xojxw9cNZP8y0YrGEo5h1oudoBoYF6OSxdyVoKSjNiRrusGCLErlG bnVK2Cukz+czLUMjzD7I4JB1tdsBq3hsuMfsr6rH08tyKyyAh0r3Z5ZyqHtQtomLb795 7+r5SKNbcpViui3cJ2dRt9+x3w2rW7kiIL5h7hptMh1oOYDa/xdlfV16f4Pe1yklp5Nz E4e4gTq5v8OSORSasGPn58sXe98lBkMB3SE1Av679RNaKp1UVX8Sz7V5pj5Rdi0ep7fL 5gTw== X-Gm-Message-State: AD7BkJIJWUe31LpqIBz0we1rxD0QPZUZhL6tmHYFI36R6ZQTmAbYvFko3aP0K39Za0lsEQ== X-Received: by 10.55.78.84 with SMTP id c81mr27923081qkb.85.1456851700664; Tue, 01 Mar 2016 09:01:40 -0800 (PST) Received: from Gandalf-Linux.gmail.com ([179.184.224.5]) by smtp.gmail.com with ESMTPSA id g64sm13335737qkb.44.2016.03.01.09.01.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Mar 2016 09:01:40 -0800 (PST) From: Artur Malabarba To: bug-gnu-emacs@gnu.org Subject: 25.0.91; Mouse-clicks fail on button overlays with display properties Date: Tue, 01 Mar 2016 14:00:32 -0300 Message-ID: <87twkq9lqn.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 1. Visit the scratch buffer. 2. Evaluate this code: (defun my-action (&rest _) (interactive) (message "WORKED!")) (make-button (point-min) (+ 30 (point-min)) 'display "..." 'action #'my-action 'follow-link t) 3. As expected, the first 30 chars of the buffer will be hidden under a button that displays as =E2=80=9C...=E2=80=9D. Hitting RET on that buffer = works as expected (you see the message =E2=80=9CWorked!=E2=80=9D on the echo-area). 4. Try clicking on the button with the mouse. You'll get the following erro= r: Debugger entered--Lisp error: (void-function nil) nil(("..." . 1)) button-activate(("..." . 1) t) push-button((mouse-2 (# 1 (14 . 2) 15461622 ("..."= . 1) 1 (1 . 0) nil (5 . 2) (9 . 18)))) funcall-interactively(push-button (mouse-2 (# 1 (1= 4 . 2) 15461622 ("..." . 1) 1 (1 . 0) nil (5 . 2) (9 . 18)))) call-interactively(push-button nil nil) command-execute(push-button) 5. Adding a `mouse-action' property makes no difference. 6. Without the `display' property, everything works as expected. Looks like this happens because the first argument given to `button-activate' is `("..." . 1)', while it should be the overlay. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 09 12:21:43 2019 Received: (at 22870) by debbugs.gnu.org; 9 Oct 2019 16:21:43 +0000 Received: from localhost ([127.0.0.1]:53911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIEid-0007e8-2x for submit@debbugs.gnu.org; Wed, 09 Oct 2019 12:21:43 -0400 Received: from mail-pf1-f174.google.com ([209.85.210.174]:36469) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIEiZ-0007dq-T8 for 22870@debbugs.gnu.org; Wed, 09 Oct 2019 12:21:41 -0400 Received: by mail-pf1-f174.google.com with SMTP id y22so1942964pfr.3 for <22870@debbugs.gnu.org>; Wed, 09 Oct 2019 09:21:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=Jw+34DmAHB+V6P6Sp72vIpZpRRghTZXIqhOoJ6quj7E=; b=HicugA3qgXuQ8jPZt/olJy0INL1rir9ikzuka6PKC2hTs6tSzh1oKEtHW2FRVIq/Cj mdSaW+hbJvQrvmOVms3yyfW4eVpMpbmgUAnGeMJwhUxegcj1H/4kdnJfvypBQXSaGxXo RO4GupOwl34kfUOJ9gM0mwIxgffysW3kWnualCzmjuqQbHFHKjy8b4X2hk4gmcs+F3cf mbSlOGW18Fp2AL3lHvGcqZoXh77lOlLDgsU/ZeZONBKjojEtXgKSeD0j+uPAsrGBNF0k aWR7sI8qzwooz7UGjcurvH0/XFEpAKe/wAR1rZY/gVymfvxKhO5q439CMHLXasb9wyPm IaNA== X-Gm-Message-State: APjAAAVqbqNNWpwn5We7EQZ12i1XLKaYtY32SlkeUonikmAjuDC5NzNh NHumeXAxeDHw4Tz2QUYn1WVGZwtQ+9CsGznca6k= X-Google-Smtp-Source: APXvYqwnl9I5oy1la761drDikWMwqcGo13sbLSPqxD991P+HNeLnRJQVtqdPzXy7I/wITOEfMKFUnrBTQbc0cdIESAM= X-Received: by 2002:a62:1bd3:: with SMTP id b202mr4712350pfb.50.1570638094157; Wed, 09 Oct 2019 09:21:34 -0700 (PDT) MIME-Version: 1.0 From: Stefan Kangas Date: Wed, 9 Oct 2019 18:21:22 +0200 Message-ID: Subject: Re: bug#22870: 25.0.91; Mouse-clicks fail on button overlays with display properties To: Artur Malabarba Content-Type: multipart/alternative; boundary="000000000000ac5ccd05947cadf0" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 22870 Cc: 22870@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --000000000000ac5ccd05947cadf0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Artur Malabarba writes: > 1. Visit the scratch buffer. > > 2. Evaluate this code: > > (defun my-action (&rest _) > (interactive) > (message "WORKED!")) > > (make-button (point-min) (+ 30 (point-min)) > 'display "..." > 'action #'my-action > 'follow-link t) > > 3. As expected, the first 30 chars of the buffer will be hidden under a > button that displays as =E2=80=9C...=E2=80=9D. Hitting RET on that buffe= r works as > expected (you see the message =E2=80=9CWorked!=E2=80=9D on the echo-area)= . > > 4. Try clicking on the button with the mouse. You'll get the following error: > > Debugger entered--Lisp error: (void-function nil) > nil(("..." . 1)) > button-activate(("..." . 1) t) > push-button((mouse-2 (# 1 (14 . 2) 15461622 ("..." . 1) 1 (1 . 0) nil (5 . 2) (9 . 18)))) > funcall-interactively(push-button (mouse-2 (# 1 (14 . 2) 15461622 ("..." . 1) 1 (1 . 0) nil (5 . 2) (9 . 18)))) > call-interactively(push-button nil nil) > command-execute(push-button) > > 5. Adding a `mouse-action' property makes no difference. > > 6. Without the `display' property, everything works as expected. > > > > Looks like this happens because the first argument given to > `button-activate' is `("..." . 1)', while it should be the overlay. It seems like it was broken by this commit: 24fc948039 2012-12-06 * lisp/button.el: Make them work in header-lines. Best regards, Stefan Kangas --000000000000ac5ccd05947cadf0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Artur Malabarba <bruce.connor.am@gmail.com> writes:

> 1. Visit the s= cratch buffer.
>
> 2. Evaluate this code:
>
> (defu= n my-action (&rest _)
> =C2=A0 (interactive)
> =C2=A0 (mess= age "WORKED!"))
>
> (make-button (point-min) (+ 30 (p= oint-min))
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0'dis= play "..."
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0'action #'my-action
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0'follow-link t)
>
> 3. As expected, the first = 30 chars of the buffer will be hidden under a
> button that displays = as =E2=80=9C...=E2=80=9D.=C2=A0 Hitting RET on that buffer works as
>= expected (you see the message =E2=80=9CWorked!=E2=80=9D on the echo-area).=
>
> 4. Try clicking on the button with the mouse. You'll g= et the following error:
>
> Debugger entered--Lisp error: (void= -function nil)
> =C2=A0 nil(("..." . 1))
> =C2=A0 but= ton-activate(("..." . 1) t)
> =C2=A0 push-button((mouse-2 (= #<window 3 on *scratch*> 1 (14 . 2) 15461622 ("..." . 1) 1 = (1 . 0) nil (5 . 2) (9 . 18))))
> =C2=A0 funcall-interactively(push-b= utton (mouse-2 (#<window 3 on *scratch*> 1 (14 . 2) 15461622 (".= .." . 1) 1 (1 . 0) nil (5 . 2) (9 . 18))))
> =C2=A0 call-interac= tively(push-button nil nil)
> =C2=A0 command-execute(push-button)
= >
> 5. Adding a `mouse-action' property makes no difference.>
> 6. Without the `display' property, everything works as e= xpected.
>
>
>
> Looks like this happens because th= e first argument given to
> `button-activate' is `("..."= ; . 1)', while it should be the overlay.

It seems like it was br= oken by this commit:
24fc948039 2012-12-06 * lisp/button.el: Make them w= ork in header-lines.

Best regards,
Stefan Kangas
--000000000000ac5ccd05947cadf0-- From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 10 06:32:38 2019 Received: (at 22870) by debbugs.gnu.org; 10 Oct 2019 10:32:38 +0000 Received: from localhost ([127.0.0.1]:55089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIVkM-0002qe-B0 for submit@debbugs.gnu.org; Thu, 10 Oct 2019 06:32:38 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIVkJ-0002qQ-T4 for 22870@debbugs.gnu.org; Thu, 10 Oct 2019 06:32:36 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36620) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iIVkE-00063q-JO; Thu, 10 Oct 2019 06:32:30 -0400 Received: from [176.228.60.248] (port=2958 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iIVkD-0004WG-QS; Thu, 10 Oct 2019 06:32:30 -0400 Date: Thu, 10 Oct 2019 13:32:15 +0300 Message-Id: <83k19csxg0.fsf@gnu.org> From: Eli Zaretskii To: Stefan Kangas In-reply-to: (message from Stefan Kangas on Wed, 9 Oct 2019 18:21:22 +0200) Subject: Re: bug#22870: 25.0.91; Mouse-clicks fail on button overlays with display properties References: <87twkq9lqn.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 22870 Cc: 22870@debbugs.gnu.org, bruce.connor.am@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Stefan Kangas > Date: Wed, 9 Oct 2019 18:21:22 +0200 > Cc: 22870@debbugs.gnu.org > > > Looks like this happens because the first argument given to > > `button-activate' is `("..." . 1)', while it should be the overlay. > > It seems like it was broken by this commit: > 24fc948039 2012-12-06 * lisp/button.el: Make them work in header-lines. Can you sport which part(s) of that change broke this? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 10 06:43:27 2019 Received: (at 22870) by debbugs.gnu.org; 10 Oct 2019 10:43:27 +0000 Received: from localhost ([127.0.0.1]:55106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIVup-0003Qn-1a for submit@debbugs.gnu.org; Thu, 10 Oct 2019 06:43:27 -0400 Received: from mail-pl1-f178.google.com ([209.85.214.178]:38414) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIVum-0003QE-MT for 22870@debbugs.gnu.org; Thu, 10 Oct 2019 06:43:25 -0400 Received: by mail-pl1-f178.google.com with SMTP id w8so2586054plq.5 for <22870@debbugs.gnu.org>; Thu, 10 Oct 2019 03:43:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7Zqthy9lLzYulu6hEBoQqOzKj1W5t6rfQYI7yeB6UbA=; b=N0bBTcx9Gj7P3vGE6Gcl/ZLZgEllOC1RijpxLkNCjk+CoFJOC0P0iCByIyHire+1uS 94FIgTECkP7KTdMI4pirnln1ErFM8Ok1jllWAi0UHR5iHWlAsi8QtO5QiGUQ4PcqLCKQ XYrjFTvofPxMHZ01V81fPCFtF5RoxYDtc5gZAx5n+sbby01QBlywX/C6ZFhUJpHMJsyW A5hbrYESPwYrcKzhz6YA13Yg8RoKybjo4iuHpZu+IC9r7PnOtJa3QbX9ZDj5jT/Da8Q1 SIxgoq21hD/M5XfF7cPVFou2JR8PKo+6Ocy14ELpOMmO34jAeG+q3UDTlNXHeC6yV8ZL cv4A== X-Gm-Message-State: APjAAAVVZRiVMtVOUvYdsuYt+HxVWjR46EBHS2j/BTHLiWUecH3UxBzl Z6oeHuWwIq/M8WgcjTdzw3L+KyCVtR1GfaUqNIA= X-Google-Smtp-Source: APXvYqx132ktPsJ6DJOS09oW6EMjqNUsoybFTG+DjIPG8RJpu6u0Yf1Ff7oeSY4275sIp0yBh3OLeBcg1tJIa1Je3eY= X-Received: by 2002:a17:902:d888:: with SMTP id b8mr8996351plz.259.1570704198840; Thu, 10 Oct 2019 03:43:18 -0700 (PDT) MIME-Version: 1.0 References: <87twkq9lqn.fsf@gmail.com> <83k19csxg0.fsf@gnu.org> In-Reply-To: <83k19csxg0.fsf@gnu.org> From: Stefan Kangas Date: Thu, 10 Oct 2019 12:43:07 +0200 Message-ID: Subject: Re: bug#22870: 25.0.91; Mouse-clicks fail on button overlays with display properties To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 22870 Cc: 22870@debbugs.gnu.org, Artur Malabarba X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Eli Zaretskii writes: > > It seems like it was broken by this commit: > > 24fc948039 2012-12-06 * lisp/button.el: Make them work in header-lines. > > Can you sport which part(s) of that change broke this? Yes, this part: @@ -417,11 +444,13 @@ push-button ;; POS is a mouse event; switch to the proper window/buffer (let ((posn (event-start pos))) (with-current-buffer (window-buffer (posn-window posn)) - (push-button (posn-point posn) t))) + (if (posn-area posn) + ;; mode-line or header-line event + (button-activate (car (posn-string posn)) t) + (push-button (posn-point posn)) t))) (car (posn-string posn)) -- changed to (posn-string posn) in commit 4b0df8483 means that in button-activate, the following expression returns nil: (or (and use-mouse-action (button-get button 'mouse-action)) (button-get button 'action)) Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 20 16:18:17 2020 Received: (at 22870) by debbugs.gnu.org; 20 Sep 2020 20:18:17 +0000 Received: from localhost ([127.0.0.1]:52758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kK5mr-0002kB-Fa for submit@debbugs.gnu.org; Sun, 20 Sep 2020 16:18:17 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kK5mp-0002jt-2P for 22870@debbugs.gnu.org; Sun, 20 Sep 2020 16:18:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=2ffgvazYmaOTyK7nvhd8JgUJCt9bXs5hYvx47JZks5s=; b=fkiedlAzbfpEb2FHyzNPBjvm1l cJiUnYWFoHDQeLZ7N43XoMuWaY5K213QO+bywN+31SW0jMlNoI0TMRhSzrVd8z4zeHOs1yLFA3rQF wHkUy13LWF08SrEdDL2ptN67EELxpLaBCvTTvlzqJPWeKsa9+jak6YMB1sUuSIS9iUUc=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kK5mg-0001Uq-2m; Sun, 20 Sep 2020 22:18:08 +0200 From: Lars Ingebrigtsen To: Artur Malabarba Subject: Re: bug#22870: 25.0.91; Mouse-clicks fail on button overlays with display properties References: <87twkq9lqn.fsf@gmail.com> X-Now-Playing: Arto Lindsay's _Prize (Japanese Version)_: "Prefeelings" Date: Sun, 20 Sep 2020 22:18:03 +0200 In-Reply-To: <87twkq9lqn.fsf@gmail.com> (Artur Malabarba's message of "Tue, 01 Mar 2016 14:00:32 -0300") Message-ID: <87h7rsjj7o.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Artur Malabarba writes: > 1. Visit the scratch buffer. > > 2. Evaluate this code: > > (defun my-action (&rest _) > (interactive) > (message "WORKED!")) > > (make-button (point-min) (+ 30 (point-min)) > 'display "..." > 'acti [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 22870 Cc: 22870@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Artur Malabarba writes: > 1. Visit the scratch buffer. > > 2. Evaluate this code: > > (defun my-action (&rest _) > (interactive) > (message "WORKED!")) > > (make-button (point-min) (+ 30 (point-min)) > 'display "..." > 'action #'my-action > 'follow-link t) > > 3. As expected, the first 30 chars of the buffer will be hidden under a > button that displays as =E2=80=9C...=E2=80=9D. Hitting RET on that buffe= r works as > expected (you see the message =E2=80=9CWorked!=E2=80=9D on the echo-area). > > 4. Try clicking on the button with the mouse. You'll get the following er= ror: > > Debugger entered--Lisp error: (void-function nil) > nil(("..." . 1)) > button-activate(("..." . 1) t) > push-button((mouse-2 (# 1 (14 . 2) 15461622 ("..= ." . 1) 1 (1 . 0) nil (5 . 2) (9 . 18)))) I'm unable to reproduce this in Emacs 28, and I see that a change was committed to the push-button command earlier this year, so I think this has been fixed, and I'm closing this bug report. If you can see this bug in Emacs 28, please send a message to the debbugs address and we'll reopen. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 20 16:18:21 2020 Received: (at control) by debbugs.gnu.org; 20 Sep 2020 20:18:22 +0000 Received: from localhost ([127.0.0.1]:52761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kK5mv-0002kR-Mc for submit@debbugs.gnu.org; Sun, 20 Sep 2020 16:18:21 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kK5mu-0002k2-Bz for control@debbugs.gnu.org; Sun, 20 Sep 2020 16:18:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=mCl2ggCWqUj+XoESwXlv2GfcvAUn4ZFv6TNK/trBo7w=; b=Km9If7rfg7sKHbbzFa/EavnvnK QFfGIzYuDARecCtaJun3PDpVCBz19YOVvFfQbHLJFC5BXHVIDgtm78hqIliIaHlZPt4igzn/y0bD4 W82h74NHasM/naQthFqeR5HFXGpTnFTCYxsyLnfe8xxDxWuPwxN8BsLHdeCt4TeZ2EAE=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kK5mm-0001V1-Nr for control@debbugs.gnu.org; Sun, 20 Sep 2020 22:18:14 +0200 Date: Sun, 20 Sep 2020 22:18:11 +0200 Message-Id: <87ft7cjj7g.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #22870 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 22870 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 22870 28.1 quit From unknown Sat Aug 16 21:21:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 19 Oct 2020 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator