From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter De Wachter Newsgroups: gmane.emacs.bugs Subject: bug#1039: 23.0.60; emacs forgets EOL convention after revert-buffer Date: Sun, 12 Oct 2008 00:10:41 +0200 Message-ID: <20081012001041.116d71e5@tleilaxu> References: <87iqs3oyg5.fsf@cyd.mit.edu> <48ECF5DD.7020104@gmx.at> Reply-To: Peter De Wachter , 1039@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1223764226 31888 80.91.229.12 (11 Oct 2008 22:30:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Oct 2008 22:30:26 +0000 (UTC) Cc: Chong Yidong , 1039@emacsbugs.donarmstrong.com To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 12 00:31:24 2008 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 1Komza-00052a-He for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Oct 2008 00:31:22 +0200 Original-Received: from localhost ([127.0.0.1]:50779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KomyW-0005ec-Ci for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Oct 2008 18:30:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KomyJ-0005bW-3S for bug-gnu-emacs@gnu.org; Sat, 11 Oct 2008 18:30:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KomyH-0005b8-Ew for bug-gnu-emacs@gnu.org; Sat, 11 Oct 2008 18:30:02 -0400 Original-Received: from [199.232.76.173] (port=47321 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KomyH-0005b5-Bt for bug-gnu-emacs@gnu.org; Sat, 11 Oct 2008 18:30:01 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:47058) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KomyG-0007KH-RB for bug-gnu-emacs@gnu.org; Sat, 11 Oct 2008 18:30:01 -0400 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 m9BMTwja029525; Sat, 11 Oct 2008 15:29:59 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9BMK3N5027197; Sat, 11 Oct 2008 15:20:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Peter De Wachter Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 11 Oct 2008 22:20:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1039 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: patch Original-Received: via spool by 1039-submit@emacsbugs.donarmstrong.com id=B1039.122376305725761 (code B ref 1039); Sat, 11 Oct 2008 22:20:03 +0000 Original-Received: (at 1039) by emacsbugs.donarmstrong.com; 11 Oct 2008 22:10:57 +0000 Original-Received: from lmailproxy01.edpnet.net (lmailproxy01.edpnet.net [212.71.1.194]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9BMArL6025748 for <1039@emacsbugs.donarmstrong.com>; Sat, 11 Oct 2008 15:10:55 -0700 Original-Received: from tleilaxu (213.219.137.163.adsl.dyn.edpnet.net [213.219.137.163]) by lmailproxy01.edpnet.net (8.13.1/8.13.1) with ESMTP id m9BMAh3J014874; Sun, 12 Oct 2008 00:10:44 +0200 Original-Received: from tleilaxu (localhost.localdomain [127.0.0.1]) by tleilaxu (Postfix) with ESMTP id 39BC61628208; Sun, 12 Oct 2008 00:10:43 +0200 (CEST) In-Reply-To: <48ECF5DD.7020104@gmx.at> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; x86_64-pc-linux-gnu) X-Virus-Scanned: ClamAV version 0.94, clamav-milter version 0.94 on lmailproxy01.edpnet.net X-Virus-Status: Clean X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sat, 11 Oct 2008 18:30:02 -0400 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:21410 Archived-At: On Wed, 08 Oct 2008 20:03:09 +0200 martin rudalics wrote: > In any case it would be helpful if the OP tested whether my patch > works for him ;-) 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 -- Peter De Wachter