org-graph-view icon indicating copy to clipboard operation
org-graph-view copied to clipboard

Alternative image-parsing code

Open alphapapa opened this issue 5 years ago • 2 comments

https://www.reddit.com/r/emacs/comments/eyuehj/orggraphviewgraphviz_interactive_visual_org/fh0sq46/

Thank you! I sanity checked my emacs by opening any old svg from the internet and it displayed fine, so I circled back and tried just spitting out the buffer-string from org-graph-view--svg and that displayed fine...

After a whole lot of yadda yadda, I tinkered with this line...

(svg-image (libxml-parse-xml-region (point-min) (point-max)))

And turned it into this...

(image (apply #'create-image (buffer-string) 'svg t nil) ;; (svg-image (libxml-parse-xml-region (point-min) (point-max))) )

And everything seems to be working! Thank you for sharing this project and your help!

I wonder if this might also fix the quoting issue.

alphapapa avatar Feb 09 '20 13:02 alphapapa

And it does seem to fix the quoting issue! Awesome!

alphapapa avatar Feb 09 '20 22:02 alphapapa

Huzzah!

jobez avatar Feb 10 '20 02:02 jobez