Ubuntu 下我还没来得及实验,就是今天偶然发现的,以前也出现过不过没怎么注意到。
下图是 Windows 7 下的 emacs 输入中文样例
我的对齐设置是 (setq default-fill-column 80)
但是在段落对齐(M-q)以后并不是所有行都非常整齐,如果该行中文标点多的话会特别长,导致对齐很难看。
观察高亮的那行,其实 emacs 认为光标所在的位置是 81,该行的上一行最后一个字符光标位置是 80,只是差了1
但是结果相差很大,我不断按 C-b 观察光标的位置,发现:虽然实际上一个中文全角标点占2个位置,但是 emacs
认为它只占了一个位置。所以对齐会差这么多,我是这么觉得的,不知道是不是有其他原因。
对于这个问题,有什么办法设置吗? //bow
emacs 的一个可能是中文全角标点的问题
-
- 帖子: 62
- 注册时间: 2010-02-01 19:08
emacs 的一个可能是中文全角标点的问题
God grant me the serenity to accept the things I cannot change
the courage to change the things I can
the wisdom know the difference
the courage to change the things I can
the wisdom know the difference
-
- 帖子: 62
- 注册时间: 2010-02-01 19:08
Re: emacs 的一个可能是中文全角标点的问题
现在的问题只剩下一个标点符号,中文双引号。实际占用位置是2字节,但是 emacs 只认 1 字节位置
God grant me the serenity to accept the things I cannot change
the courage to change the things I can
the wisdom know the difference
the courage to change the things I can
the wisdom know the difference