Hi Jean:

I think you may have some confusion on how global buttons operate.  They
are not like wiki buttons where you just replicate text in many locations
and it works as a single button.  They are a means of typing the text/label
of a button at a prompt and thereby activating the associated labeled
button from within your personal button file.  Please have another look at
the Hyperbole DEMO section, "${hyperb:dir}/DEMO#Global Buttons", or
"(hyperbole)Global Buttons".

On Wed, May 12, 2021 at 11:02 AM Jean Louis <bugs@gnu.support> wrote:

> * Robert Weiner <r...@gnu.org> [2021-05-03 10:13]:
> > And also be sure to checkout Raoul's new (2nd) video on Hyperbole,
> > mentioned on reddit here, part of his Emacs-Elements series, which is
> > excellent.  This video is an introduction to Hyperbole buttons:
> >
> >
> https://www.reddit.com/r/emacs/comments/n3oqle/gnu_hyperbole_v8_rocket_through_your_information/
>
> My global buttons, never work globally, is that expected?
>
> I have button like: <(Elpher)> and this one works from menu, it works
> from ~/.hyperb/HYPB but it will for example not work in this mail-mode
> message.
>

All global buttons live in the personal button file you listed above; you
do not distribute them among other files and buffers.  Then regardless of
which current buffer you have, you can activate the same set of buttons by
name.

>
> So I don't understand the video where it gives different view, that it
> should work from everywhere, what I also expect it to be. I am
> confused on that.
>
> Explicit button: it always asks for specific buffer, how I
> understand. But I need explicit buttons in any buffer, any file.


Explicit buttons can be placed in any file-based buffer and work with
certain mail composers like the standard message composition buffer.

> Too
> often I have view buffers which are not connected to file, I don't
> think it works there.
>

That's right, since generally Hyperbole explicit buttons are meant to be
persistent, they must be placed in a buffer with an attached file.

>
> Global button: I expect to work globally, but they don't.
>

Use {C-h h g a} to activate an existing global button with any buffer you
want as current and see if it works the way it is designed (the global
buttons are independent of your current buffer).  Global buttons are all
explicit and named/labeled implicit buttons saved to the ~/.hyperb/HYPB
file and those only.

-- Bob

Reply via email to