From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.help Subject: Re: [External] : Any packages using ThingAtPointPlus for activation? Date: Wed, 4 Jan 2023 13:03:51 -0300 Message-ID: References: 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 , Help GNU Emacs 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: 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 ) 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 ) 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 ) 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 ) 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 ; 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: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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: On Wed, 4 Jan 2023 at 06:41, Jean Louis wrote: > > * Drew Adams [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