From: Tim Vaughan Date: Thu, 24 Oct 2019 12:32:54 +0000 (+0200) Subject: Raw renderer now displays mimetype if specified. X-Git-Tag: v2.4.0~4^2~5 X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=5aec951a030e9a2f30d98d9d7aa172c9c1344183;p=elpher.git Raw renderer now displays mimetype if specified. --- diff --git a/elpher.el b/elpher.el index ac45b99..08b2227 100644 --- a/elpher.el +++ b/elpher.el @@ -730,11 +730,13 @@ The response is rendered using the rendering function RENDERER." ;; Raw server response rendering -(defun elpher-render-raw (data &optional _mime-type-string) - "Display raw DATA in buffer. MIME-TYPE-STRING is unused." +(defun elpher-render-raw (data &optional mime-type-string) + "Display raw DATA in buffer. MIME-TYPE-STRING is also displayed if provided." (if (not data) nil (elpher-with-clean-buffer + (when mime-type-string + (insert "MIME type specified by server: '" mime-type-string "'\n")) (insert data) (goto-char (point-min))) (message "Displaying raw server response. Reload or redraw to return to standard view.")))