emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Org, Hyperbole, and eev


From: Eduardo Ochs
Subject: Re: Org, Hyperbole, and eev
Date: Tue, 27 Sep 2022 21:52:38 -0300

On Tue, 27 Sept 2022 at 18:59, Jean Louis <bugs@gnu.support> wrote:
> (...)

What did you do to inspect an Org link?

Here's what I just tried: I created a file /tmp/foo.org containing
" [[http://a/b/][ab]]\n"; - i.e., a space, a link, and a newline -
and then I marked the whole buffer and ran `M-1 M-x find-eregionpp'
on it to pretty-print the region as a string with properties, with
the flag `print-circle' turned on... see:

  (find-efunction 'find-eregionpp)
  http://angg.twu.net/eev-current/eev-blinks.el.html#find-eregionpp

Apparently Org divided that file into 8 subsegments, each one with
different text properties... and they mention all these keywords:

  face follow-link font-lock-multiline fontified help-echo highlight
  htmlize-link intangible invisible keymap mouse-2 mouse-3 mouse-face
  org-find-file-at-mouse org-link org-linked-text org-open-at-mouse
  rear-nonsticky

I _think_ that it should be possible to make this

  ⟦ (hyperscope-wrap-eev "Hyperbole DEMO file" '(find-hyperbolefile "DEMO")) ⟧

into a kind of button using only three subregions with different text
properties: a first invisible region with this,

  ⟦ (hyperscope-wrap-eev "

then a visible region with "button actions", with this,

  Hyperbole DEMO file

and then another invisible region with:

  " '(find-hyperbolefile "DEMO")) ⟧

Let me play with this idea for a bit - I'll send some code as soon as
possible!

  Cheers =),
    Eduardo



reply via email to

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