emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#23659: closed (25.0.94; insert-file-contents with


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#23659: closed (25.0.94; insert-file-contents with REPLACE gets confused by certain file contents)
Date: Wed, 22 Jun 2016 15:45:01 +0000

Your message dated Wed, 22 Jun 2016 18:43:25 +0300
with message-id <address@hidden>
and subject line Re: bug#23659: 25.0.94; insert-file-contents with REPLACE gets 
confused by certain file contents
has caused the debbugs.gnu.org bug report #23659,
regarding 25.0.94; insert-file-contents with REPLACE gets confused by certain 
file contents
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
23659: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23659
GNU Bug Tracking System
Contact address@hidden with problems
--- 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

Attachment: quote
Description: Binary data

Attachment: src
Description: Binary data

Attachment: 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 ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]