Open edrx opened 2 years ago
Hi.
I don't understand this stuff very well. I'm a bit concerned it might complicate the inspector package unnecessarily. Do you think this could be implemented as a separate package as an extension? I can modify the inspector history calls somehow so that you can plug-in your package.
Hi Mario,
Hi! Sure, let's keep this idea in a separate file that can be loaded
after inspector, and that adds some functions and redefines some other
ones...
Can you take a look at this
http://angg.twu.net/elisp/eev-inspect.el.html
http://angg.twu.net/elisp/eev-inspect.el
and see if it makes sense? And then if it does, can you take a look at
the definition of `inspect-expression-b' and help me with the setqs in
comments?
Thanks in advance!!!
Eduardo
Hi, sorry, but I don't have much time for this atm. I can evaluate a pull request and merge, but you have to do the work.
About your question:
;;
;; HELP NEEDED HERE:
;; These setqs need to be run in the "*inspector" buffer.
;; Mario, what is the right way to do that?
;; (setq inspector-inspected-object (car history))
;; (setq inspector-history (cdr history))
;; (setq inspector-history-b history-b)
;;
Use
(with-current-buffer "*inspector*"
(setq inspector-inspected-object (car history))
(setq inspector-history (cdr history))
(setq inspector-history-b history-b))
Thanks! It works, and this does a part of what I need. The other part will require patching several of the "(cl-defmethod inspect-object ...)"s, and I don't have time to play with that now, either... so: see you in a few months, and thanks for inspector! =)