You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code seems to only insert images and not plaintext if an image is returned by Wolfram alpha and because images don't work when in the terminal nothing is shown in that case.
Images should not be inserted when in the terminal.
Plaintext should probably always be inserted (or at least have a setting).
(defun wolfram--append-subpod (subpod)
"Appends a subpod to the current buffer."
(let ((plaintext (car (xml-get-children subpod 'plaintext)))
(image (car (xml-get-children subpod 'img))))
(if (and image window-system)
(wolfram--insert-image-from-url (xml-get-attribute image 'src)))
(insert (format "%s\n" (car (last plaintext))))
(insert "\n")))
I don't understand what wolfram--insert-image does (vs. Wolfram--insert-image-from-url)
The text was updated successfully, but these errors were encountered:
I wrote wolfram.el twelves years ago, and it was part a project to help me get more into Emacs. Partly as a fun toy.
I can't remember what half of this stuff does, but at a glance, the API request seem to ask for both images and plaintext, so it should be fairly simple to detect whether to display images or text response. Happy to receive a pull request.
The code seems to only insert images and not plaintext if an image is returned by Wolfram alpha and because images don't work when in the terminal nothing is shown in that case.
Images should not be inserted when in the terminal.
Plaintext should probably always be inserted (or at least have a setting).
I don't understand what
wolfram--insert-image
does (vs.Wolfram--insert-image-from-url
)The text was updated successfully, but these errors were encountered: