help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [External] : Any packages using ThingAtPointPlus for activation?


From: Eduardo Ochs
Subject: Re: [External] : Any packages using ThingAtPointPlus for activation?
Date: Wed, 4 Jan 2023 13:03:51 -0300

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]