From: "Juan Manuel Macías" <maciaschain@posteo.net>
To: Robert Weiner <rsw@gnu.org>
Cc: rswgnu@gmail.com, orgmode <emacs-orgmode@gnu.org>
Subject: Re: Org and Hyperbole
Date: Sat, 08 Oct 2022 21:43:32 +0000 [thread overview]
Message-ID: <87edving8r.fsf@posteo.net> (raw)
In-Reply-To: <CA+OMD9hpyKzOi5RDxpA+5N62HdQX9KNgm9zDswdpJaYXQd6REA@mail.gmail.com> (Robert Weiner's message of "Sat, 8 Oct 2022 16:34:05 -0400")
Robert Weiner writes:
> Hi Juan:
>
> I just tried your ':' technique for Hyperbole button activation with
> Avy and it works well. But what is the advantage over just using Avy
> to jump to the button and then pressing {M-RET}. With your technique,
> you have to think about activating the button before you are there
> versus when you are on it, as you normally do.
Hi, Robert,
Thanks for your comment. I agree with what you say. I'm afraid this
action, as I proposed it, is impractical. The proof is that I haven't
used it too much :-). Avy also includes some factory keys where the
action is performed on the target without losing focus or cursor
position. For example, to copy a "distant" word and paste at point. This
would be a more reasonable use case. Taking inspiration from Avy's code
for these actions, I've defined this new version:
(add-to-list 'avy-dispatch-alist '(?: . (lambda (pt)
(goto-char pt)
(hkey-either)
(let ((dat (ring-ref avy-ring 0)))
(select-frame-set-input-focus
(window-frame (cdr dat)))
(select-window (cdr dat))
(goto-char (car dat))))))
Now hkey-either would run without losing the current focus and cursor
position. An example of use that occurs to me: for my translation of the
Odyssey into Spanish I have defined some implicit buttons that do the
following: if they are activated in a certain positions of the verse
(for example, at the beginning of the verse), it is shown in a temporary
postframe: a) the verse translated by me if the action is performed on
the original Greek verse and b) the original Greek verse if the action
is on the translated verse.
I think that is better seen in this short video:
https://cloud.disroot.org/s/4c7ZFCAPTercgMS
Best regards,
Juan Manuel
next prev parent reply other threads:[~2022-10-08 21:44 UTC|newest]
Thread overview: 120+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-24 1:45 Org and Hyperbole Robert Weiner
2022-06-24 1:56 ` Robert Weiner
2022-06-24 4:32 ` Samuel Wales
2022-06-24 5:34 ` Robert Weiner
2022-06-24 10:55 ` indieterminacy
2022-06-24 12:51 ` Robert Weiner
2022-10-08 20:26 ` Robert Weiner
2022-10-10 4:02 ` indieterminacy
2022-09-27 13:59 ` Jean Louis
2022-10-04 6:10 ` Robert Weiner
2022-10-04 18:05 ` David Masterson
2022-10-07 19:52 ` Jean Louis
2022-10-08 21:05 ` Robert Weiner
2022-10-09 9:54 ` Jean Louis
2022-10-10 16:44 ` David Masterson
2022-10-10 23:04 ` Jean Louis
2022-10-11 0:21 ` David Masterson
2022-10-07 22:57 ` Jean Louis
2022-10-10 16:50 ` David Masterson
2022-10-10 23:07 ` Jean Louis
2022-10-08 20:53 ` Robert Weiner
2022-10-09 11:16 ` Jean Louis
2022-10-10 16:52 ` David Masterson
2022-10-07 22:18 ` Jean Louis
2022-09-27 13:52 ` Jean Louis
2022-06-24 2:13 ` Eduardo Ochs
2022-06-24 2:20 ` Robert Weiner
2022-06-24 2:14 ` Robert Weiner
2022-06-24 6:29 ` Tim Cross
2022-06-24 12:44 ` Robert Weiner
2022-06-24 13:52 ` Juan Manuel Macías
2022-06-24 22:06 ` Robert Weiner
2022-06-25 14:32 ` Juan Manuel Macías
2022-06-25 20:35 ` Robert Weiner
2022-10-08 20:34 ` Robert Weiner
2022-10-08 21:43 ` Juan Manuel Macías [this message]
2022-06-24 17:57 ` João Pedro
2022-06-25 1:32 ` Robert Weiner
2022-07-02 4:41 ` Samuel Wales
2022-07-02 4:49 ` Ihor Radchenko
2022-07-02 4:57 ` Samuel Wales
2022-07-02 5:12 ` Ihor Radchenko
2022-07-02 21:38 ` Samuel Wales
2022-07-07 12:18 ` Max Brieiev
2022-07-07 12:27 ` Ihor Radchenko
2022-07-16 23:16 ` Robert Weiner
2022-07-16 23:17 ` Robert Weiner
2022-06-25 19:07 ` David Masterson
2022-06-25 20:49 ` Robert Weiner
2022-06-25 21:18 ` David Masterson
2022-10-08 19:44 ` Robert Weiner
2022-09-27 14:06 ` Jean Louis
2022-10-04 6:11 ` Robert Weiner
2022-10-07 22:04 ` Jean Louis
2023-03-02 22:50 ` bug#58371: " Bob Weiner
2023-03-12 22:20 ` Mats Lidell
2022-06-26 6:37 ` Siva Swaminathan
2022-06-26 7:24 ` tomas
2022-06-26 20:03 ` David Masterson
2022-06-26 20:27 ` indieterminacy
2022-06-26 20:51 ` Robert Weiner
2022-06-27 23:16 ` David Masterson
2022-06-26 20:27 ` Robert Weiner
2022-10-08 19:52 ` Robert Weiner
2022-07-04 10:43 ` Fraga, Eric
2022-07-04 11:01 ` Ihor Radchenko
2022-07-04 11:08 ` Fraga, Eric
2022-07-04 11:09 ` Tim Cross
2022-07-04 14:20 ` Fraga, Eric
2022-07-04 16:56 ` Robert Weiner
2022-07-06 16:58 ` Fraga, Eric
2022-07-07 2:33 ` Robert Weiner
2022-07-07 10:46 ` Fraga, Eric
2022-10-08 20:01 ` Robert Weiner
-- strict thread matches above, loose matches on Subject: below --
2022-10-09 9:12 Payas Relekar
2022-10-04 6:46 Payas Relekar
2022-10-07 22:44 ` Jean Louis
2022-10-08 0:45 ` Hendursaga
2022-10-08 1:05 ` Jean Louis
2022-10-08 17:04 ` Robert Weiner
2022-10-08 20:48 ` Robert Weiner
2022-06-22 19:57 linux_hpc_akr
2022-06-23 6:47 ` Bill Burdick
2022-06-23 6:53 ` Bill Burdick
2022-06-20 14:03 Juan Manuel Macías
2022-06-20 15:26 ` Russell Adams
2022-06-20 16:57 ` Eduardo Ochs
2022-06-20 23:28 ` Juan Manuel Macías
2022-06-20 23:37 ` Tim Cross
2022-09-27 13:06 ` Jean Louis
2022-09-27 15:08 ` Russell Adams
2022-10-08 17:26 ` Robert Weiner
2022-09-27 13:18 ` Jean Louis
2022-06-22 15:13 ` Russell Adams
2022-06-22 17:36 ` Bill Burdick
2022-06-22 18:05 ` David Masterson
2022-06-22 19:03 ` Bill Burdick
2022-06-23 3:46 ` David Masterson
2022-06-20 15:56 ` Uwe Brauer
2022-06-20 16:09 ` Bill Burdick
2022-06-20 16:24 ` indieterminacy
2022-06-22 14:48 ` Juan Manuel Macías
2022-09-27 13:26 ` Jean Louis
2022-06-21 3:08 ` David Masterson
2022-06-22 10:37 ` Juan Manuel Macías
2022-06-22 14:35 ` Bill Burdick
2022-06-22 19:23 ` David Masterson
2022-06-22 19:26 ` Bill Burdick
2022-06-22 19:55 ` Bill Burdick
2022-06-23 18:48 ` Eduardo Ochs
2022-06-22 19:17 ` David Masterson
2022-06-23 1:12 ` Samuel Wales
2022-06-23 4:04 ` David Masterson
2022-06-23 5:22 ` indieterminacy
2022-06-23 15:38 ` Samuel Banya
2022-06-23 23:30 ` Samuel Wales
2022-06-23 23:36 ` Samuel Wales
2022-06-24 5:50 ` indieterminacy
2022-09-27 13:33 ` Jean Louis
2022-10-07 20:34 ` Jean Louis
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87edving8r.fsf@posteo.net \
--to=maciaschain@posteo.net \
--cc=emacs-orgmode@gnu.org \
--cc=rsw@gnu.org \
--cc=rswgnu@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).