eev
[Top][All Lists]
Advanced

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

Re: Mini-tutorial on edebug


From: Jean Louis
Subject: Re: Mini-tutorial on edebug
Date: Fri, 20 Dec 2024 13:04:50 +0300
User-agent: Mutt/2.2.12 (2023-09-09)

* Eduardo Ochs <eduardoochs@gmail.com> [2024-12-20 10:39]:
> Hi list!
> 
> This is a mini-tutorial on edebug:
> 
> --snip--snip--
> ;; Preparation:
> ;;   (emacs-lisp-mode)
> ;;   (require 'edebug)
> ;;
> ;; See: (find-elinode "edebug")
> ;;      (find-elnode "Edebug")
> ;;      (find-efunctiondescr 'eval-defun "instrument")
> ;;      (find-efunctiondescr 'edebug-mode)
> ;;      (find-efunctiondescr 'edebug-mode "C-M-x" "eval-defun")
> ;;      (eek "M-h M-k  M-C-x  ;; eval-defun")

I see, it is nice following the above. I have no effort, just M-e and I can get 
references. Those are links, that bring better understanding. Looking at the 
RCD Notes & Hyperscope for GNU Emacs, The Dynamic Knowledge Repository, in 
order for me to make such nice links as above, I would need first to make the 
function helper like here below.

(defun hyperscope-go-to-helper ()
  (interactive)
  (let* ((id (hyperscope-select))
         (name (hyperscope-name id)))
    ;; TODO quoting of NAME is not good enough
    (insert (format "(hyperscope-go-to \"%s\" %s)" name id))))

Then I get nice link like this below:

(hyperscope-go-to "INNO3D GEFORCE RTX™ 3090 TI 24GB X3 | INNO3D - GRAPHICS 
CARDS" 92850)

and by using M-e I can follow it, and M-k brings me back.

And function is simple here to invoke the rest:

(defun hyperscope-go-to (_ id)
  (switch-to-buffer-other-window nil)
  (hyperscope-isolate id))

My screen looks like here below:

 92850 INNO3D GEFORCE RTX™ 3090 TI 24GB X3 | INNO3D - GRAPHICS CARDS          🌐 
WWW  🏢 Default             

Even though I would prefer links to be clickable.

I think this below could be made clickable by mouse:

> ;;      (eek "M-h M-k  M-C-x  ;; eval-defun")

> 

> https://lists.gnu.org/archive/html/help-gnu-emacs/2024-12/msg00418.html

I find the manner of making links nice and good. I would like them
clickable. With buttons it could be done, some `eev-link-minor-mode'
could be made to make it all clickable.

If I just make button link, then it is generated, and user can see
text, underlined, click on it and go.

But with eev links, user can see the function invoking it.

In my case it would be:

(hyperscope 70)
(hyperscope nil 70)
(hyperscope nil nil nil '("eev"))

and I get:

 35357 Angel's Egg - the home page of Eduardo Ochs (a.k.a. Edrx)                
                       🌐 WWW           🏢 Default             
 37149 Comparison of `rcd-template-eval` with `eev-template0.el`                
                       📄 Text          🏢 Default             
 38116 Related to eev                                                           
                       📝 Note          🏢 Default             
 38413 Bidirectional hyperlinks in Hyperscope                                   
                       ✅ Task          🏢 Default             ACTION
 72822 talk about eev                                                           
                       📝 Note          🏢 Default             
 72823 talk about eev                                                           
                       📝 Note          🏢 Default             
 72824 talk about eev                                                           
                       📝 Note          🏢 Default             
 72825 talk about eev                                                           
                       📝 Note          🏢 Default             
 72826 talk about eev                                                           
                       📝 Note          🏢 Default             
 72828 talk about eev                                                           
                       📝 Note          🏢 Default             
 73594 Testing eev                                                              
                       📝 Note          🏢 Default             
 76746 📧 Write to eev@nongnu.org mailing list (EEV)                             
                      📎 Emacs Lisp Hyperlink 🏢 Default             


Jean Louis



reply via email to

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