From: dalanicolai <dalanicolai@gmail.com>
To: Emacs Devel <emacs-devel@gnu.org>
Subject: How to retrieve a node from ewoc by data (extend library?)
Date: Fri, 18 Mar 2022 18:32:08 +0100 [thread overview]
Message-ID: <CACJP=3kmG+immzsmhhcgUX_0yXgy6HCi5WFvyvz70=wdiCve7A@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1694 bytes --]
I am using the ewoc package
<https://www.gnu.org/software/emacs/manual/html_node/elisp/Abstract-Display.html>,
but I have the idea that some quite essential
feature is missing from it. My question is, do I understand this correctly?
And would you agree that it would be useful to add the feature described in
the
following to the library?
I am developing a gitter client, and I am using the ewoc package to 'manage'
the displaying of messages. An individual message's data (alist) contains an
'id'. Now I would simply like to retrieve the node (i.e. not the node its
data),
by searching for the id, so that I can use the node to quickly jump/goto the
message. However, it looks like no available function
<https://www.gnu.org/software/emacs/manual/html_node/elisp/Abstract-Display-Functions.html>
directly, or 'acceptably'
indirectly, provides this functionality (they all return the data instead
of the
node itself).
As this seems quite basic functionality to me, I wonder if I might be
misunderstanding something.
If I am understanding it correctly, then wouldn't you agree that such a
feature should be
'part' of the library (i.e. providing an ewoc-collect 'alternative' that
returns
the node instead of the data).
It is quite easy to appropriately adapt the `ewoc-collect` function, but I
would
say this functionality should be available directly from a provided
function.
I have found that also the `telega` package uses its own 'custom function'
(see
https://github.com/zevlg/telega.el/blob/4641f953b1183cd2e2be28d8e91374c0eb04aac2/telega-util.el#L1431
).
Is there some hidden trick, already available for this? Otherwise, how do
you
think about extending ewoc with such a feature?
[-- Attachment #2: Type: text/html, Size: 2014 bytes --]
next reply other threads:[~2022-03-18 17:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-18 17:32 dalanicolai [this message]
2022-03-20 2:49 ` How to retrieve a node from ewoc by data (extend library?) Stefan Monnier
2022-03-20 13:25 ` T.V Raman
2022-03-29 11:29 ` dalanicolai
2022-03-29 21:00 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CACJP=3kmG+immzsmhhcgUX_0yXgy6HCi5WFvyvz70=wdiCve7A@mail.gmail.com' \
--to=dalanicolai@gmail.com \
--cc=emacs-devel@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.