- (concat
- "/* XPM */"
- "static char * pixmap[] = {"
- (sixel-image-to-xpm-values sixel-image) ",\n"
- (sixel-image-to-xpm-colours sixel-image) ",\n"
- (sixel-image-to-xpm-pixels sixel-image) "};")))
+ (if (string-prefix-p "\eP" string)
+ (concat
+ "/* XPM */"
+ "static char * pixmap[] = {"
+ (sixel-image-to-xpm-values sixel-image) ",\n"
+ (sixel-image-to-xpm-colours sixel-image) ",\n"
+ (sixel-image-to-xpm-pixels sixel-image) "};")
+ (error "Incorrecly formatted sixel string."))))