From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#870: Repeatable instance of bug#870 Date: Wed, 07 Jan 2009 16:33:56 +0100 Message-ID: <4964CB64.2090506@gmx.at> References: <4961E7F7.2000509@gnu.org> <4964657F.5010205@gmx.at> Reply-To: martin rudalics , 870@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1231343088 25551 80.91.229.12 (7 Jan 2009 15:44:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 Jan 2009 15:44:48 +0000 (UTC) Cc: 870@emacsbugs.donarmstrong.com To: Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 07 16:45:58 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LKab5-0003Tf-RM for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Jan 2009 16:45:32 +0100 Original-Received: from localhost ([127.0.0.1]:58183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LKaZq-0006aG-29 for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Jan 2009 10:44:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LKaZ6-0006Kz-TK for bug-gnu-emacs@gnu.org; Wed, 07 Jan 2009 10:43:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LKaZ5-0006KM-PW for bug-gnu-emacs@gnu.org; Wed, 07 Jan 2009 10:43:28 -0500 Original-Received: from [199.232.76.173] (port=37121 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LKaZ5-0006Jz-7j for bug-gnu-emacs@gnu.org; Wed, 07 Jan 2009 10:43:27 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35469) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LKaZ4-0000iW-O0 for bug-gnu-emacs@gnu.org; Wed, 07 Jan 2009 10:43:27 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n07FhOSJ031176; Wed, 7 Jan 2009 07:43:24 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n07Fe57V030188; Wed, 7 Jan 2009 07:40:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com Resent-Date: Wed, 07 Jan 2009 15:40:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 870 X-Emacs-PR-Package: emacs,w32 X-Emacs-PR-Keywords: Original-Received: via spool by 870-submit@emacsbugs.donarmstrong.com id=B870.123134248828734 (code B ref 870); Wed, 07 Jan 2009 15:40:05 +0000 Original-Received: (at 870) by emacsbugs.donarmstrong.com; 7 Jan 2009 15:34:48 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id n07FYh37028728 for <870@emacsbugs.donarmstrong.com>; Wed, 7 Jan 2009 07:34:45 -0800 Original-Received: (qmail invoked by alias); 07 Jan 2009 15:34:37 -0000 Original-Received: from 62-47-38-92.adsl.highway.telekom.at (EHLO [62.47.38.92]) [62.47.38.92] by mail.gmx.net (mp009) with SMTP; 07 Jan 2009 16:34:37 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+cgNcfkJ6cdPy3dQUlMWDsFjLhCUDlrS9Vldw0Ri 9L5jmzc+jeJSoR User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: X-Y-GMX-Trusted: 0 X-FuHaFi: 0.57 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 07 Jan 2009 10:43:28 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:23876 Archived-At: > I installed a fix. It was a different issue. > > 2009-01-07 Kenichi Handa > > * 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