开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜