![]() ![]() It turns out that set-selection-coding-system and set-clipboard-coding-system actually do the same thing, but the connection between selections and clipboards is not exactly obvious until one becomes familiar with the Emacs jargon.įortunately, the choice of the selection-coding-system doesn’t affect the encoding of the buffer itself, so it doesn’t invalidate the hack I used to enforce UTF-8 as the default buffer encoding. At the time, I copied the code from this StackOverflow answer (fixed now) without too much thought, not realizing it would cause a bug discovered several months later. ![]() checker (currently JavaScript/CoffeeScript/CSS/XQuery) Cut, copy, and paste functionality. Similar to the integration for vim, there is an integration for emacs. The problem was introduced a while back: it was part of a hack to force Emacs to use UTF-8 as the default buffer encoding. Fully customizable key bindings including vim and Emacs modes. clang-format is located in clang/tools/clang-format and can be used to format. emacs or init.el) caused the problem: (set-selection-coding-system 'utf-8) wrongĪs it turns out, the correct value is 'utf-16-le because the Windows API is built entirely on top of UTF-16: (set-selection-coding-system 'utf-16-le) correct ![]() Eventually, I came to realize that one of the settings in my Emacs profile (. Yet, I couldn’t find any bug reports about it so that seemed unlikely. Originally, I assumed it was a bug in Emacs. Oddly enough, copying Unicode characters from Emacs generally worked fine. For example, copying a Greek small letter rho ( ρ) would result in a question mark ( ?) appearing in the Emacs editor. Previously, I ran into an issue with pasting non-ASCII characters into Emacs on my Windows system. ![]()
0 Comments
Leave a Reply. |