branch: elpa/gnuplot commit 5a72806bac991a7dcc5a12529d4698fc01f33a8d Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
Check if inline images are supported --- gnuplot.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnuplot.el b/gnuplot.el index 4f0ba77ce2..5f358d132f 100644 --- a/gnuplot.el +++ b/gnuplot.el @@ -321,7 +321,9 @@ Set VARIABLE to VALUE. ARGS is optional args." (set variable value)) (gnuplot--setup-comint-for-image-mode)) -(defcustom gnuplot-inline-image-mode 'inline +(defcustom gnuplot-inline-image-mode (and (display-graphic-p) + (image-type-available-p 'png) + 'inline) "Whether to display Gnuplot output in Emacs. Possible values are nil, `inline' and `dedicated'.