Hi Jean: I see what you are going for here. Generally, explicit button are meant to be persistent so they must be attached to a file. However, we have added capabilities that allow them to be part of an email or news message where the button data is stored in a hidden part of the message itself. So someone would have to adapt those features to your use case. I think hmail.el and hgnus.el have the top-level of this code.
Bob On Tue, Sep 29, 2020 at 1:09 AM Jean Louis <bugs@gnu.support> wrote: > I would like to dynamically create Hyperbole explicit buttons for > buffers that I would be opening programmatically. > > Please let me know if such feature is possible. > > Buffer would not be connected to a file on file disk, it would be > taken out of the database. > > You could imagine a profile of a person: > > - picture would be displayed in the profile > > - explicit buttons would be created for various features that contain > Emacs Lisp functions with dynamically created IDs as arguments, for > example, if I wish to see the list of family members, there could be > <(Family)> button, or <(Send SMS to John)> or <(see skills)> that > would show me his skills or similar. > > In other words, can explicit buttons be connected to non-file buffers? > > Jean > > I use: Editor: GNU Emacs 28.0.50 (build 15, x86_64-pc-linux-gnu, X > toolkit, cairo version 1.14.8, Xaw3d scroll bars) > > Hyperbole: 7.1.2 > Sys Type: x86_64-pc-linux-gnu > OS Type: gnu/linux > Window Sys: x > News Reader: Gnus v5.13 > >