From: Eduardo Ochs <eduardoochs@gmail.com>
To: Drew Adams <drew.adams@oracle.com>,
Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: Re: [External] : Any packages using ThingAtPointPlus for activation?
Date: Wed, 4 Jan 2023 13:03:51 -0300 [thread overview]
Message-ID: <CADs++6hnP3BNKvm7X3WRACG=t8jAxZD1u+vhFQpQ0dDCEnX4Jg@mail.gmail.com> (raw)
In-Reply-To: <Y7U89H7WBXIR3LuW@protected.localdomain>
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
next prev parent reply other threads:[~2023-01-04 16:03 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-02 10:12 Any packages using ThingAtPointPlus for activation? Jean Louis
2023-01-02 17:08 ` [External] : " Drew Adams
2023-01-03 12:41 ` Jean Louis
2023-01-03 19:54 ` Drew Adams
2023-01-03 20:23 ` Jean Louis
2023-01-03 22:47 ` Drew Adams
2023-01-04 8:46 ` Jean Louis
2023-01-04 15:42 ` Drew Adams
2023-01-04 16:03 ` Eduardo Ochs [this message]
2023-01-05 5:42 ` Jean Louis
2023-01-05 8:37 ` ThingAtPointPlus, and extending things at point Jean Louis
2023-01-05 17:00 ` [External] : " Drew Adams
2023-01-06 15:49 ` Jean Louis
2023-01-06 16:23 ` Jean Louis
2023-01-06 17:30 ` Drew Adams
2023-01-06 17:43 ` Jean Louis
2023-01-06 18:21 ` Drew Adams
2023-01-03 6:16 ` Any packages using ThingAtPointPlus for activation? Eduardo Ochs
2023-01-03 13:10 ` Jean Louis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADs++6hnP3BNKvm7X3WRACG=t8jAxZD1u+vhFQpQ0dDCEnX4Jg@mail.gmail.com' \
--to=eduardoochs@gmail.com \
--cc=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).