From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.devel Subject: Re: Suggestion to add clickable text activation function to Emacs Date: Fri, 29 Sep 2017 12:43:03 -0400 Message-ID: References: <83o9pt79mw.fsf@gnu.org> Reply-To: rswgnu@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11473a84be1d72055a56b979" X-Trace: blaine.gmane.org 1506703501 1465 195.159.176.226 (29 Sep 2017 16:45:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 29 Sep 2017 16:45:01 +0000 (UTC) Cc: emacs-devel To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 29 18:44:57 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxyPG-0008Pq-Lj for ged-emacs-devel@m.gmane.org; Fri, 29 Sep 2017 18:44:54 +0200 Original-Received: from localhost ([::1]:36128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxyPO-0004Ry-7j for ged-emacs-devel@m.gmane.org; Fri, 29 Sep 2017 12:45:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44031) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxyO2-0003wn-C9 for emacs-devel@gnu.org; Fri, 29 Sep 2017 12:43:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxyNy-00055L-Fv for emacs-devel@gnu.org; Fri, 29 Sep 2017 12:43:38 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxyNy-00055H-Bm for emacs-devel@gnu.org; Fri, 29 Sep 2017 12:43:34 -0400 Original-Received: from mail-qk0-f174.google.com ([209.85.220.174]:54462) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dxyNx-0006II-Uy; Fri, 29 Sep 2017 12:43:34 -0400 Original-Received: by mail-qk0-f174.google.com with SMTP id d70so177201qkc.11; Fri, 29 Sep 2017 09:43:33 -0700 (PDT) X-Gm-Message-State: AMCzsaXhXw/xKZ50vu6OKzMPKEdbNkVC7BGnJfSmYs7IIw3YODJ0zaik 18naaNk6bHtP76knlwbpvVPulQCD3e6UW15MNj0= X-Google-Smtp-Source: AOwi7QAqCCJx4cdp3MxIZtjnd19fDYbP7Yw1x5b9ZYOBUfdnaccDFnvyreG9ThkgO3V1cuZNFfFc683UA3hcR3OaECM= X-Received: by 10.55.25.85 with SMTP id k82mr3858750qkh.223.1506703413483; Fri, 29 Sep 2017 09:43:33 -0700 (PDT) Original-Received: by 10.237.34.225 with HTTP; Fri, 29 Sep 2017 09:43:03 -0700 (PDT) In-Reply-To: <83o9pt79mw.fsf@gnu.org> X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:218914 Archived-At: --001a11473a84be1d72055a56b979 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Sep 29, 2017 at 12:27 PM, Eli Zaretskii wrote: > > Maybe I'm missing something, but how will this be different from > calling the binding of the click? > =E2=80=8BThe binding of what click? mouse-1, mouse-2, RET, some other key?= Look at the doc in "(elisp)Clickable Text" and you will see there are many ways to activate such text as explained there. If we want clickable text actions to be runnable programmatically (no user clicks), then there needs to be a single function that can determine what action a user click would have performed and returns that action or performs it. In my original message, I noted that push-button does this for buttons, so the issue is the need for one for non-button clickable text. Does that clarify the issue? Bob --001a11473a84be1d72055a56b979 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Sep 29, 2= 017 at 12:27 PM, Eli Zaretskii <e= liz@gnu.org> wro= te:

Maybe I'm missing something, but how will this be different from=
calling the binding of the click?

=E2=80=8BThe b= inding of what click?=C2=A0 mouse-1, mouse-2, RET, some other key?=C2=A0 Lo= ok at the doc in "(elisp)Clickable Text" and you will see there a= re many ways to activate such text as explained there.=C2=A0 If we want cli= ckable text actions to be runnable programmatically (no user clicks), then = there needs to be a single function that can determine what action a user c= lick would have performed and returns that action or performs it.=C2=A0 In = my original message, I noted that push-button does this for buttons, so the= issue is the need for one for non-button clickable text.=C2=A0 Does that c= larify the issue?

Bob


--001a11473a84be1d72055a56b979--