On my way learning emacs and doing some first steps in elisp programming, I'm trying to adapt the LaTeX output of org-export. It's a lot learning by doing and that's a good thing since it improves my skills step by step.
But since some of the functions defined in
oy-latex.el are quite complex, it would be great to check the values of some local variables/symbols assigned with
let* after I modified the code, so I can see if my edits were correct.
For example the function
org-latex--caption/label-string assigns the text named with
#+caption: in the org-file to the local variable
main (using another function
(let* ((label (org-latex--label element info nil t))
(main (org-export-get-caption element)) ;; this line!
(attr (org-export-read-attribute :attr_latex element))
How can I check the current value of the symbol/variable
main after e.g. I edited the definition. Since the value is only locally assigned and the function is only invoked when I export with C-c C-e l p, I don't know any way to access the value. But it would be of great help to debug my edits and find possible errors.
I'm aware that there might be a simple solution, but couldn't find one so far; mainly due to my very minimal knowledge of emacs lisp. Thus, any help is very appreciated!
(Of course, I do not change anything in the
ox-latex.el itself but only in a custom package which is loaded locally.)