Re: A debug mode for find-here-links
On Wed, 29 Jun 2022 at 14:35, Tomas Hlavaty wrote: > > On Tue 28 Jun 2022 at 21:23, Eduardo Ochs wrote: > > On Tue, 28 Jun 2022 at 17:12, Tomas Hlavaty wrote: > >>id:87mtguhta2@logand.com > >>(notmuch-search "pluggable-or") > > Can you explain these sexps and the msgid and and help me to run > > id:87mtguhta2@logand.com > > is a URI pointing to the email I sent. Every email has a Message-ID > header (in this case 87mtguhta2@logand.com) and a decent email > client can find an email by that ID. In my Emacs, I press M-f on that > URI and see the email immediately. > > My email client is notmuch and > >(notmuch-search "pluggable-or") > > shows me a list of emails that contain that text. > > I sent that email to you and eev@nongnu.org so you should be able to > find it. It might even be in the web interface, however, I do not know > the URL. Thanks! I don't have a decent e-mail reader configured right now, and searching for the msgid doesn't work on gmail, but I found the message in which you sent the code for pluggable-or - it's here: https://lists.gnu.org/archive/html/eev/2022-04/msg6.html I will try it tonight! [[]], E.
Re: A debug mode for find-here-links
On Tue 28 Jun 2022 at 21:23, Eduardo Ochs wrote: > On Tue, 28 Jun 2022 at 17:12, Tomas Hlavaty wrote: >>id:87mtguhta2@logand.com >>(notmuch-search "pluggable-or") > Can you explain these sexps and the msgid and and help me to run id:87mtguhta2@logand.com is a URI pointing to the email I sent. Every email has a Message-ID header (in this case 87mtguhta2@logand.com) and a decent email client can find an email by that ID. In my Emacs, I press M-f on that URI and see the email immediately. My email client is notmuch and (notmuch-search "pluggable-or") shows me a list of emails that contain that text. I sent that email to you and eev@nongnu.org so you should be able to find it. It might even be in the web interface, however, I do not know the URL.
Re: A debug mode for find-here-links
On Tue 28 Jun 2022 at 21:18, Eduardo Ochs wrote: > On Tue, 28 Jun 2022 at 17:12, Tomas Hlavaty wrote: >> Do you maintain the table of contents manually? > > Nowadays I use this: > > (find-eevfile "eev-hydras.el") > http://angg.twu.net/eev-current/eev-hydras.el.html I tried hydra but did not like it much. I prefer to eval sexps or use eepitch.
Re: A debug mode for find-here-links
On Tue, 28 Jun 2022 at 17:12, Tomas Hlavaty wrote: > > Why are you trying to combine hyperbole with eev? > What are you trying to achieve? A lot of people seems to like Hyperbole, so I wanted to: 1) Try Hyperbole 2) Make sure that eev and Hyperbole are compatible 3) Call the actions of Hyperbole buttons via sexps 4) Implement Hyperbole buttons that call eev functions My first "serious" attempts to learn Hyperbole were in 2019: http://angg.twu.net/e/hyperbole.e.html#hyperbole-eev-mail-1 We are in 2022 now and I still don't know how to write sexps whose actions are (roughly) equivalent to _any_ of the Hyperbole buttons mentioned here: https://www.gnu.org/software/hyperbole/FAST-DEMO I mean, I know how to translate some of the buttons there to eev sexps, but I don't know how to call the Hyperbole functions that implement their back-ends... all that I know is that "Hyperbole keeps things simple" - I tried to find a link to that message but couldn't, sorry - and that the Hyperbole author is willing to help me with high-level things but not with the "non-abstract parts": https://lists.gnu.org/archive/html/emacs-orgmode/2022-06/msg00752.html I found that VERY frustrating, but at least it motivated me to write an answer whose text I plan to reuse in the future. My answer is here: https://lists.gnu.org/archive/html/emacs-orgmode/2022-06/msg00757.html [[]] =/, E.
Re: A debug mode for find-here-links
On Tue, 28 Jun 2022 at 17:12, Tomas Hlavaty wrote: > > From the brief look at hyperbole, I must admit that the dispatch is > complex and the configuration looks painful. Moreover, I prefer eev > style buttons (i.e. no buttons and syntax at all, just elisp sexp > without any complexity or magic). For url style hyperlinks, I prefer > ffap style jumping, except ffap is also painful to customize and > attempts to do other things beside jumping. It would be much better, if > it used the *-functions style configuration like > >(rg-emacs "[-]functions") >(grep "grep -r -nH --color '[-]functions' ~/mr/emacs") > > as discussed in: > >id:87mtguhta2@logand.com >(notmuch-search "pluggable-or") Can you explain these sexps and the msgid and and help me to run something equivalent to them here? [[]] =/, E.
Re: A debug mode for find-here-links
On Tue, 28 Jun 2022 at 17:12, Tomas Hlavaty wrote: > Ah, I forgot that part as I do not use it. > > Do you maintain the table of contents manually? Nowadays I use this: (find-eevfile "eev-hydras.el") http://angg.twu.net/eev-current/eev-hydras.el.html Can you try to run its tutorial and tell me if it is clear? The instructions for running it are at the top of that file - the are essentially this: ;;; Commentary: ;; This is a new, experimental feature that is not loaded by ;; default. It is mentioned briefly here: ;; ;; (find-refining-intro "5. Pointing to anchors") ;; (find-refining-intro "5. Pointing to anchors" "but I don't touch-type") ;; ;; It depends on the package "hydra" (from ELPA). You can install it ;; with `M-x list-packages', or with: ;; ;; (find-epackage-links 'hydra "hydra" t) ;; ;; To learn how this experimental feature works, load this file and ;; run its tutorial - i.e., execute these two sexps: ;; ;; (require 'eev-hydras) ;; (find-eev-index-edit-intro) ;; ;; This code will probably change a LOT in the next months. ;; Update: I recorded a video, it's here: ;; ;; http://angg.twu.net/eev-videos/2021-05-20_hydra_ei.mp4 ;; (find-eevvideo-links "hydraei" "2021-05-20_hydra_ei") > Do you always have one to one relationship between the anchor with and > without dot? No. =) [[]], E.
Re: A debug mode for find-here-links
On Tue 28 Jun 2022 at 22:12, Tomas Hlavaty wrote: > It would be much better, if > it used the *-functions style configuration like > >(rg-emacs "[-]functions") >(grep "grep -r -nH --color '[-]functions' ~/mr/emacs") > > as discussed in: > >id:87mtguhta2@logand.com >(notmuch-search "pluggable-or") Hypobole does use this style of configuration: https://www.reddit.com/r/emacs/comments/vied1y/gnu_hypobole_10/ with hypobole-links containing the list of functions to try and where my pluggable-or is an already existing elisp function called run-hook-with-args-until-success.
Re: A debug mode for find-here-links
On Tue 28 Jun 2022 at 15:54, Eduardo Ochs wrote: > On Tue, 28 Jun 2022 at 15:32, Tomas Hlavaty wrote: > a «foo» is an "anchor", a (to "foo") > is a link to an anchor, and something like > > # «.first-test» (to "first-test") > # «first-test» (to ".first-test") > > is an "index/section pair"... > > Are you familiar with the sections 8 to 8.5 in the main tutorial? > > (find-eev-quick-intro "8. Anchors") > http://angg.twu.net/eev-intros/find-eev-quick-intro.html#8 Ah, I forgot that part as I do not use it. Do you maintain the table of contents manually? Do you always have one to one relationship between the anchor with and without dot? When programming, I jump between definitions using M-. and back with M-,. It seems that that way could feel more natural to me. > On examples: I tried ask Robert Weiner for help with examples, but he > wasn't interested in helping me with the examples that I was > interested in. See this message and its follow-ups: > > https://lists.gnu.org/archive/html/emacs-orgmode/2022-06/msg00752.html > > Then I prepared this, > > https://lists.gnu.org/archive/html/emacs-orgmode/2022-06/msg00801.html > > that are "hacking notes" that are probably very hard to read... >From the brief look at hyperbole, I must admit that the dispatch is complex and the configuration looks painful. Moreover, I prefer eev style buttons (i.e. no buttons and syntax at all, just elisp sexp without any complexity or magic). For url style hyperlinks, I prefer ffap style jumping, except ffap is also painful to customize and attempts to do other things beside jumping. It would be much better, if it used the *-functions style configuration like (rg-emacs "[-]functions") (grep "grep -r -nH --color '[-]functions' ~/mr/emacs") as discussed in: id:87mtguhta2@logand.com (notmuch-search "pluggable-or") Why are you trying to combine hyperbole with eev? What are you trying to achieve?
Re: A debug mode for find-here-links
On Tue, 28 Jun 2022 at 15:32, Tomas Hlavaty wrote: > > On Tue 28 Jun 2022 at 03:08, Eduardo Ochs wrote: > > My main messages are here: > > > > http://angg.twu.net/e/hyperbole.e.html#o-h-and-e-738 > > Is there a hyperbole example? A brief look did not show anything. > > Btw. why are the links like this? > > # «.hyperbole» (to "hyperbole") > # «hyperbole» (to ".hyperbole") > > Isn't the «funny part» redundant? > > Wouldn't this be enough? > > # (to "hyperbole") > # (to ".hyperbole") Hi Tomas, a «foo» is an "anchor", a (to "foo") is a link to an anchor, and something like # «.first-test» (to "first-test") # «first-test» (to ".first-test") is an "index/section pair"... Are you familiar with the sections 8 to 8.5 in the main tutorial? (find-eev-quick-intro "8. Anchors") http://angg.twu.net/eev-intros/find-eev-quick-intro.html#8 On examples: I tried ask Robert Weiner for help with examples, but he wasn't interested in helping me with the examples that I was interested in. See this message and its follow-ups: https://lists.gnu.org/archive/html/emacs-orgmode/2022-06/msg00752.html Then I prepared this, https://lists.gnu.org/archive/html/emacs-orgmode/2022-06/msg00801.html that are "hacking notes" that are probably very hard to read... [[]], E. ...
Re: A debug mode for find-here-links
On Tue 28 Jun 2022 at 03:08, Eduardo Ochs wrote: > My main messages are here: > > http://angg.twu.net/e/hyperbole.e.html#o-h-and-e-738 Is there a hyperbole example? A brief look did not show anything. Btw. why are the links like this? # «.hyperbole» (to "hyperbole") # «hyperbole» (to ".hyperbole") Isn't the «funny part» redundant? Wouldn't this be enough? # (to "hyperbole") # (to ".hyperbole")