--- Begin Message ---
Subject: |
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
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#23659: 25.0.94; insert-file-contents with REPLACE gets confused by certain file contents |
Date: |
Wed, 22 Jun 2016 18:43:25 +0300 |
> Date: Mon, 30 May 2016 20:11:16 -0400
> From: Noam Postavsky <address@hidden>
>
> 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".
Repeat after me:
Buffer text is not a simple C 'char' array
Buffer text is not a simple C 'char' array
Buffer text is not a simple C 'char' array
Buffer text is not ...
Fixed on the master branch.
--- End Message ---