unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Kenichi Handa <handa@m17n.org>
Cc: 870@emacsbugs.donarmstrong.com
Subject: bug#870: Repeatable instance of bug#870
Date: Wed, 07 Jan 2009 16:33:56 +0100	[thread overview]
Message-ID: <4964CB64.2090506@gmx.at> (raw)
In-Reply-To: <E1LKXXr-0001jK-5e@etlken.m17n.org>

 > I installed a fix.  It was a different issue.
 >
 > 2009-01-07  Kenichi Handa  <handa@m17n.org>
 >
 > 	* fileio.c (Finsert_file_contents): In the case of replace,
 > 	remeber the coding system used for decoding in
 > 	coding_system (Bug#1039).

Thanks for taking care of this.  Your fix solves the problem for me
though I'm not sure whether it fixes the issue raised by Peter:

 > That patch fixes the bug I reported, but it creates a new one: if you
 > change the EOL convention outside of emacs, revert-buffer no longer
 > detects this. To reproduce:
 > printf "hello\r\nworld\r\n" > hello
 > emacs -Q hello &
 > printf "hello\rworld\r" > hello
 > M-x revert-buffer
 > # emacs still sees DOS newlines

In particular, when I visit a file, (1) save it with a different line
ending, (2) change the line ending outside this instance of Emacs, and
(3) revert the buffer, its line ending is the one saved in (1) and not
the one from (2).  But IIUC Emacs 22 didn't handle this either.

martin






  reply	other threads:[~2009-01-07 15:33 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <f7ccd24b0901042103u5b241a60u7842ed51ca9249fb@mail.gmail.com>
2009-01-05 10:59 ` bug#870: Repeatable instance of bug#870 Jason Rumney
     [not found] ` <4961E7F7.2000509@gnu.org>
2009-01-05 11:12   ` Juanma Barranquero
     [not found]   ` <f7ccd24b0901050312r10286531q1c19da99d1779447@mail.gmail.com>
2009-01-05 11:22     ` Jason Rumney
     [not found]     ` <4961ED68.1090609@gnu.org>
2009-01-05 11:31       ` Juanma Barranquero
     [not found]       ` <f7ccd24b0901050331w4d35bb66ue2323dde8c8ac6a2@mail.gmail.com>
2009-01-05 13:50         ` Jason Rumney
     [not found]         ` <4962100E.4060808@gnu.org>
2009-01-05 14:28           ` Juanma Barranquero
2009-01-07  1:07   ` Kenichi Handa
     [not found]   ` <E1LKMsw-0005wG-G6@etlken.m17n.org>
2009-01-07  6:53     ` Kenichi Handa
     [not found]     ` <E1LKSIW-00083J-BE@etlken.m17n.org>
     [not found]       ` <f7ccd24b0901070143s394f66adq79a7a6ca2d25dea3@mail.gmail.com>
     [not found]         ` <496489D2.8030902@gnu.org>
2008-09-03 11:03           ` bug#870: Missing ^J in ChangeLog Juanma Barranquero
2008-09-03 12:50             ` martin rudalics
2008-09-03 15:20               ` Juanma Barranquero
2008-10-22 15:14                 ` Juanma Barranquero
2008-10-22 19:45                   ` Eli Zaretskii
2008-10-22 20:15                     ` Lennart Borgman (gmail)
2008-10-22 21:08                       ` Eli Zaretskii
2008-10-22 21:22                         ` Lennart Borgman (gmail)
2008-10-22 22:06                           ` Eli Zaretskii
2008-10-22 22:26                       ` Lennart Borgman
2008-10-22 23:10                         ` Lennart Borgman
2008-10-22 21:58                     ` Juanma Barranquero
2008-10-22 22:17                       ` Eli Zaretskii
2008-10-22 23:32                         ` Juanma Barranquero
2008-10-22 23:41                           ` Juanma Barranquero
2008-10-23  0:39                             ` Lennart Borgman
2008-10-23 13:34                               ` Juanma Barranquero
2009-01-07 11:00             ` bug#870: marked as done (Missing ^J in ChangeLog) Emacs bug Tracking System
     [not found]           ` <f7ccd24b0901070301t221f906atf75f8632dcf1c41@mail.gmail.com>
2009-01-07 11:10             ` bug#870: Repeatable instance of bug#870 Jason Rumney
2009-01-07  8:19       ` martin rudalics
2009-01-07 12:29         ` Kenichi Handa
2009-01-07 15:33           ` martin rudalics [this message]
2009-01-13  2:30             ` Kenichi Handa
2009-01-13  4:06               ` Eli Zaretskii
2009-01-07  9:43       ` Juanma Barranquero
2009-01-05  5:03 Juanma Barranquero

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4964CB64.2090506@gmx.at \
    --to=rudalics@gmx.at \
    --cc=870@emacsbugs.donarmstrong.com \
    --cc=handa@m17n.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).