From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Eduardo Ochs <eduardoochs@gmail.com>
Newsgroups: gmane.emacs.help
Subject: Re: [External] : Any packages using ThingAtPointPlus for activation?
Date: Wed, 4 Jan 2023 13:03:51 -0300
Message-ID: <CADs++6hnP3BNKvm7X3WRACG=t8jAxZD1u+vhFQpQ0dDCEnX4Jg@mail.gmail.com>
References: <e6749e3132950dfa68c7c792b59cd654.support1@rcdrun.com>
 <SJ0PR10MB54880525EDEA0D3D462FF17DF3F79@SJ0PR10MB5488.namprd10.prod.outlook.com>
 <Y7QijqbosJb389jx@protected.localdomain>
 <SJ0PR10MB5488F1F455B1791D5A0F01D2F3F49@SJ0PR10MB5488.namprd10.prod.outlook.com>
 <Y7SO0dxnI3FJgnPY@protected.localdomain>
 <SJ0PR10MB54886ED233F9CFD8FB728FB1F3F49@SJ0PR10MB5488.namprd10.prod.outlook.com>
 <Y7U89H7WBXIR3LuW@protected.localdomain>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="29592"; mail-complaints-to="usenet@ciao.gmane.io"
To: Drew Adams <drew.adams@oracle.com>, Help GNU Emacs <help-gnu-emacs@gnu.org>
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 04 17:04:57 2023
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org>
Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1pD6G9-0007O5-Am
	for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 04 Jan 2023 17:04:57 +0100
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <help-gnu-emacs-bounces@gnu.org>)
	id 1pD6FO-0000e4-5N; Wed, 04 Jan 2023 11:04:10 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eduardoochs@gmail.com>)
 id 1pD6FK-0000df-QX
 for help-gnu-emacs@gnu.org; Wed, 04 Jan 2023 11:04:06 -0500
Original-Received: from mail-il1-x12b.google.com ([2607:f8b0:4864:20::12b])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <eduardoochs@gmail.com>)
 id 1pD6FI-0000tN-Qs
 for help-gnu-emacs@gnu.org; Wed, 04 Jan 2023 11:04:06 -0500
Original-Received: by mail-il1-x12b.google.com with SMTP id c20so15837856ilj.10
 for <help-gnu-emacs@gnu.org>; Wed, 04 Jan 2023 08:04:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=to:subject:message-id:date:from:in-reply-to:references:mime-version
 :from:to:cc:subject:date:message-id:reply-to;
 bh=dlVYVmqlXgkQ8MVWHdo/yO1SFsvWkI9HHi/S44jFF0A=;
 b=H7cJgwBbHCIFV5IGQU7wkJR5IVw5CgbdxUOP7+R9lFUWBqfFcYWqjVpjOGVtMYMKkB
 MLTx/JTdA/EillsH/Z1SzO5swNg6hKkz9w57NYk74DmpW8lkB444Ay+mlqTDHy4zDZzm
 M2nfQd+HMnC3sTsYD5zn30FlzwrxE5r+M4YPTQBthryH6TthyR9g5cdHRasaAmXrAH4L
 C/DlWfel/5yr8yPo1bgJo/NLiqymdvALVXNSajJG6QBBf95RX4SZhlfUO8Yl+xXH0uHV
 5MenD2/sXzVXRZpRZwDKJDbA682sBcCW1lOO8qdIeYqOfnO39E6BIbKqcAULrqJ3nMlI
 jnug==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=to:subject:message-id:date:from:in-reply-to:references:mime-version
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=dlVYVmqlXgkQ8MVWHdo/yO1SFsvWkI9HHi/S44jFF0A=;
 b=irT7+8KQuFJGDoGw+RYh+zo+0vlhJmqWLoBGJVIOsF8b1u0nDmVryQPJpR9sNR7AGM
 aksy/FaNjubJVw/3ExQE1t3s6rjvUED0aUbcBszEjsXR61VCf+8jfVF0P5ajQfZq2qVJ
 jpW0pJLDOdn4XRF4vsip/FESrZH08xCFezLZ9GjAHC8fLxrOo+IZsLX6w84usydhLpJb
 Gjpnrn3/EEQu0hOsl8a5zhRNDqA/qOH5IipTtHRMElXaDg0ezzeNjzcQxJsf+RwzK5fk
 vksT0GL5lAMDadO7JuU6Z0i3mDVJJU1fqBh/a8Ha0U8XTuPHCFfKMeJIjPrcfXWlf6Ob
 FA3Q==
X-Gm-Message-State: AFqh2kouVuusCnKGrmqnipHnmDhpSep6bQE+rOHEbSR58cxr549tc/WX
 gPTEe+0AXil/W7GeF34UVY7Oq84Qi1rE9Y1mMSQ=
X-Google-Smtp-Source: AMrXdXtJm/HuMu0Kty4SO0csNa0LGw1wg3CwTzUfW9XRKIIhuQVqXbqSUtzyS5lvBbFQxouaywxLfQC5FZ/50M4EuT4=
X-Received: by 2002:a92:ca82:0:b0:30a:9cbd:be00 with SMTP id
 t2-20020a92ca82000000b0030a9cbdbe00mr4924513ilo.262.1672848243345; Wed, 04
 Jan 2023 08:04:03 -0800 (PST)
In-Reply-To: <Y7U89H7WBXIR3LuW@protected.localdomain>
Received-SPF: pass client-ip=2607:f8b0:4864:20::12b;
 envelope-from=eduardoochs@gmail.com; helo=mail-il1-x12b.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
 <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/help-gnu-emacs>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
 <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org
Xref: news.gmane.io gmane.emacs.help:142122
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/142122>

On Wed, 4 Jan 2023 at 06:41, Jean Louis <bugs@gnu.support> wrote:
>
> * Drew Adams <drew.adams@oracle.com> [2023-01-04 01:48]:
> > > You referred to let
> > > inside of `cond' but me, I would let using `let' to
> > > get the preferred thing-at-point before the `cond'.
> >
> > No, I didn't.  I meant what you said: use `let' to
> > bind a var to the THING you want.  Then use `cond' or
> > `cl-case' or whatever to test that value using the var.
>
> `cond' is the one to recognize which type of thing at point is
> there, as I need to recognize among many various conditions, and they
> may not be only thing at point.

Hi Jean and all,

for the sake of completeness, here is the prototype that I wrote:

  http://angg.twu.net/elisp/eev-rcd-tap-1.el
  http://angg.twu.net/elisp/eev-rcd-tap-1.el.html
  http://angg.twu.net/eev-videos/2023-eev-rcd-tap-1.mp4

It is similar to the module of eev that implements the function
`find-here-links', that creates links to "here". The first step of
`find-here-links' is to decide in what kind of "here" we are, and it
has to handle many cases. All my first attempts to (re)write it
yielded ugly code, and I found that that implementation with a little
DSL was much more readable.

  Cheers,
    Eduardo Ochs
    http://angg.twu.net/#eev