[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23659: 25.0.94; insert-file-contents with REPLACE gets confused by c
From: |
Noam Postavsky |
Subject: |
bug#23659: 25.0.94; insert-file-contents with REPLACE gets confused by certain file contents |
Date: |
Mon, 30 May 2016 20:11:16 -0400 |
Download all attached files into the same directory, then run
emacs -Q -l test-insert-file-contents.el
The expected result is the text of "src" in "*a buffer*". The actual
result has the last line ending in "_SRE" instead of "_SRC".
I see this problem in 24.5 and 25.0.94, on both Windows and GNU/Linux.
Note that the test files "quote" and "src" have DOS line endings, and
don't have a newline at the end of the file.
This initially manifested as a yasnippet bug [1], it's easy to work
around though (just use `erase-buffer' instead of passing non-nil
REPLACE to `insert-file-contents').
[1]: https://github.com/joaotavora/yasnippet/issues/707
quote
Description: Binary data
src
Description: Binary data
test-insert-file-contents.el
Description: Binary data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#23659: 25.0.94; insert-file-contents with REPLACE gets confused by certain file contents,
Noam Postavsky <=