开发者

Emacs insert-buffer ignores line breaks?

开发者 https://www.devze.com 2023-02-22 04:35 出处:网络
I\'m having trouble inserting a buffer in Emacs.Say I have the following two files: file1.txt 1st line file2.txt

I'm having trouble inserting a buffer in Emacs. Say I have the following two files:

file1.txt

1st line

file2.txt

2nd line
3rd line

If I open file1.txt in Emacs and then insert file2.txt with C-x 开发者_运维问答C-i, the result is

1st line
2nd line 3rd line

and not

1st line
2nd line
3rd line

Am I missing something here? I'm running GNU Emacs 23.2.1 on Windows 7. Both files are in the default utf-8-dos encoding.


Found the problem. I have longlines-mode enabled for text files. If I disable it, or better yet switch to visual-line-mode, the file is inserted as expected.

0

精彩评论

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