开发者

Emacs yanking (pasting) from website always yields character code 160 instead of SPC

开发者 https://www.devze.com 2023-04-06 18:38 出处:网络
When copying code from the web (usually using Chrome in Ubuntu) I am frustrated by the fact that Emacs inserts blankspaces of Char:   (160, #o240, #xa0) wherever there should be a space character, Ch

When copying code from the web (usually using Chrome in Ubuntu) I am frustrated by the fact that Emacs inserts blank spaces of Char:   (160, #o240, #xa0) wherever there should be a space character, Char: SPC (32, #o40, #x20). This appears fine in the editor but as s开发者_C百科oon as I try to execute the code I get errors. How can I make Emacs convert   entities into normal space characters?


You can use query-replace (M-%) to convert the characters. Copy-paste can help you enter the non-breaking space.

0

精彩评论

暂无评论...
验证码 换一张
取 消