skuro / plantuml-mode

A major mode for editing PlantUML sources in Emacs
GNU General Public License v3.0
511 stars 96 forks source link

Explicitly set buffer-file-coding of the preview buffer to no-conversion #163

Open leuven65 opened 1 year ago

leuven65 commented 1 year ago

In Emacs 29, If default buffer-file-coding is utf-8, and plantuml output type is "png", when doing "plantuml-preview-buffer", it will pop up error that it can't detect image type from the buffer.

This fixing is explicitly set the previous buffer's buffer-file-coding to "no-conversion" to avoid such issue.