From: Eduardo Ochs <eduardoochs@gmail.com>
To: Robert Weiner <rswgnu@gmail.com>
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: Org, Hyperbole, and eev
Date: Tue, 28 Jun 2022 01:43:55 -0300 [thread overview]
Message-ID: <CADs++6i5Ejv9URXmuPSQRgPrDz7mLrHB3gJwznzCKdHW37hSvQ@mail.gmail.com> (raw)
In-Reply-To: <BAEB70ED-F949-4CAD-82A8-57350D0B14CF@gmail.com>
On Mon, 27 Jun 2022 at 01:11, Robert Weiner <rswgnu@gmail.com> wrote:
>
> These are Action buttons run by the action button type defined via
> the defib macro in the “hibtypes.el” file. Just search for ‘defib
> action’ in there. You can invoke its implicit button type function
> from Lisp as (ibtypes::action) if I recall.
Hi Robert and other people,
I was finally able to understand a significant part of what happens
when we type M-RET on an action button like
<insert "foo">
with hyperbole-mode active... my notes are here - for the sake of
completeness; I don't expect them to be readable -
(code-c-d "hyperbole" "~/.emacs.d/elpa/hyperbole-8.0.0/")
(require 'hyperbole)
(hyperbole-mode 0)
(find-hyperbolefile "DEMO")
(find-hyperbolefile "DEMO" "Action Key is {M-RET}")
(find-hyperbolegrep "grep -nH --null -e M-RET *")
(find-efunction 'hkey-initialize)
(find-efunction 'hkey-initialize "Bind the Action Key to {M-RET}")
(find-ekeymapdescr hyperbole-mode-map)
(find-ekeymapdescr hyperbole-mode-map "M-RET")
(find-ekeymapdescr hyperbole-mode-map "M-RET" "hkey-either")
(find-efunction 'hkey-either)
(find-efunction 'assist-key)
(find-efunction 'assist-key-internal)
(find-efunction 'action-key)
(find-efunction 'action-key-internal)
(find-efunction 'hkey-execute)
(find-efunction 'hkey-execute "hkey-alist")
(find-evardescr 'hkey-alist)
(find-eppp hkey-alist)
(find-eppp hkey-alist "(hbut:at-p)")
(find-evariable 'hkey-alist)
(find-evariable 'hkey-alist "If on a Hyperbole button")
(find-evariable 'hkey-alist "If on a Hyperbole button" "(hbut:at-p)")
(find-efunction 'hbut:at-p)
(find-efunction 'hbut:at-p "ebut:at-p")
(find-efunction 'hbut:at-p "ibut:at-p")
(find-efunction 'ebut:at-p)
(find-efunction 'ebut:get)
(find-efunction 'ibut:at-p)
https://lists.gnu.org/archive/html/emacs-orgmode/2022-06/msg00765.html
^ mentions ibtypes::action and defib action
(find-efunction 'defib)
(find-hyperbolegrep "grep --color=auto -nH --null -e defib *.el")
(find-hyperbolegrep "grep -a -nH --null -e defib hibtypes.el")
(find-hyperbolefile "hibtypes.el" "(defib action")
(progn
(find-hyperbolefile "hibtypes.el" "(defib action")
(end-of-defun)
(setq ee-defib-defun (ee-last-sexp))
)
(find-estring ee-defib-defun)
(find-epp (read ee-defib-defun))
(find-eppm (read ee-defib-defun))
(find-efunction 'htype:create)
(find-efunction 'htype:symbol)
(htype:symbol 'action 'ibtypes)
(find-efunction 'ibtypes::action)
(find-efunctionpp 'ibtypes::action)
(load "hibtypes.elc")
(load "hibtypes.el")
(find-efunctionpp 'ibtypes::action)
(hyperbole-mode 1)
(debug-on-entry 'ibtypes::action)
(eek "2*<down> C-e <left>")
(eek "<down> C-e <left> M-RET")
<insert "foo">
(hyperbole-mode 0)
(find-efunction 'ibut:at-p)
(find-efunction 'ibut:at-p "(funcall itype)")
(find-eppp (htype:category 'ibtypes))
(find-hyperbolegrep "grep -a -nH --null -e defib hibtypes.el")
(find-efunction 'symtable:add)
(find-evardescr 'symtable:ibtypes)
(find-evariable 'symtable:ibtypes)
I still don't understand well the code of ibut:at-p between the
beginning and the point in which it calls (funcall itype), and I also
don't understand well the code of ibtypes::action...
Anyway, we are clearly using different notions of simplicity - see:
https://lists.gnu.org/archive/html/hyperbole-users/2020-09/msg00013.html
and I find it enviable that you can have that kind of complexity under
the hood and still have lots of users that agree that Hyperbole is
"simple"...
Most people find eev very weird, and I have the impression that I
wouldn't have half of my (few) users if I had code like that in eev.
If the people who like to look under the hood try to understand how
M-e in eev works they will end up trying to understand how
(forward-sexp -1)
works, and then they will read the comments of scan-sexps in
syntax.c... syntax.c is impeccably well-written, and they will
probably feel that their time was very well spent, and that their
curiosity has lead them to very good places. =\
Exhausted cheers,
Eduardo Ochs
http://angg.twu.net/#eev
next prev parent reply other threads:[~2022-06-28 6:55 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-26 15:56 Org, Hyperbole, and eev Eduardo Ochs
2022-06-26 16:28 ` Robert Weiner
2022-06-26 17:51 ` Eduardo Ochs
2022-06-26 18:23 ` Robert Weiner
2022-06-26 19:45 ` Eduardo Ochs
2022-06-26 20:23 ` Robert Weiner
2022-06-26 23:25 ` Eduardo Ochs
2022-06-27 0:49 ` Robert Weiner
2022-06-27 3:48 ` Eduardo Ochs
2022-06-27 4:11 ` Robert Weiner
2022-06-28 4:43 ` Eduardo Ochs [this message]
2022-09-27 15:10 ` Jean Louis
2022-09-27 16:22 ` Eduardo Ochs
2022-09-27 21:16 ` Jean Louis
2022-09-27 21:58 ` Jean Louis
2022-09-28 0:52 ` Eduardo Ochs
2022-09-28 6:04 ` Jean Louis
2022-09-28 10:15 ` Eduardo Ochs
2022-09-29 9:22 ` Jean Louis
2022-10-08 0:28 ` Eduardo Ochs
2022-10-08 1:25 ` Jean Louis
2022-10-11 2:42 ` Robert Weiner
2022-10-11 4:59 ` Jean Louis
2022-09-29 9:42 ` Jean Louis
2022-09-29 11:55 ` Quiliro Ordóñez
2022-09-28 3:52 ` Ihor Radchenko
2022-09-28 9:16 ` Jean Louis
2022-09-29 4:07 ` Ihor Radchenko
2022-09-29 9:59 ` Jean Louis
2022-06-28 4:48 ` Eduardo Ochs
2022-06-28 6:26 ` Robert Weiner
2022-09-27 14:43 ` Jean Louis
2022-09-27 14:16 ` 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=CADs++6i5Ejv9URXmuPSQRgPrDz7mLrHB3gJwznzCKdHW37hSvQ@mail.gmail.com \
--to=eduardoochs@gmail.com \
--cc=emacs-orgmode@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).