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: Mon, 13 Oct 2008 21:53:42 +0200 Message-ID: <20081013215342.2be48064@tleilaxu> References: <87iqs3oyg5.fsf@cyd.mit.edu> <48ECF5DD.7020104@gmx.at> <20081012001041.116d71e5@tleilaxu> <48F2468D.3040705@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 1223928636 8351 80.91.229.12 (13 Oct 2008 20:10:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Oct 2008 20:10:36 +0000 (UTC) To: martin rudalics , Chong Yidong , 1039@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 13 22:11:35 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 1KpTlC-0002vr-2x for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Oct 2008 22:11:22 +0200 Original-Received: from localhost ([127.0.0.1]:43821 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KpTk7-0001qF-MV for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Oct 2008 16:10:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KpTjv-0001lL-HN for bug-gnu-emacs@gnu.org; Mon, 13 Oct 2008 16:10:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KpTjt-0001kv-T6 for bug-gnu-emacs@gnu.org; Mon, 13 Oct 2008 16:10:03 -0400 Original-Received: from [199.232.76.173] (port=60240 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KpTjt-0001ks-Qd for bug-gnu-emacs@gnu.org; Mon, 13 Oct 2008 16:10:01 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:54155) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KpTjt-0005Gi-6M for bug-gnu-emacs@gnu.org; Mon, 13 Oct 2008 16:10: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 m9DK9x5W001010; Mon, 13 Oct 2008 13:09:59 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9DK03c6030429; Mon, 13 Oct 2008 13:00: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: Mon, 13 Oct 2008 20:00: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.122392763529198 (code B ref 1039); Mon, 13 Oct 2008 20:00:03 +0000 Original-Received: (at 1039) by emacsbugs.donarmstrong.com; 13 Oct 2008 19:53:55 +0000 Original-Received: from lmailproxy03.edpnet.net (lmailproxy03.edpnet.net [212.71.1.196]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9DJrp8R029192 for <1039@emacsbugs.donarmstrong.com>; Mon, 13 Oct 2008 12:53:52 -0700 Original-Received: from tleilaxu (213.219.137.163.adsl.dyn.edpnet.net [213.219.137.163]) by lmailproxy03.edpnet.net (8.13.1/8.13.1) with ESMTP id m9DJri8F029123; Mon, 13 Oct 2008 21:53:44 +0200 Original-Received: from tleilaxu (localhost.localdomain [127.0.0.1]) by tleilaxu (Postfix) with ESMTP id EA8281628208; Mon, 13 Oct 2008 21:53:43 +0200 (CEST) In-Reply-To: <48F2468D.3040705@gmx.at> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; x86_64-pc-linux-gnu) X-Virus-Scanned: ClamAV 0.94/8415/Mon Oct 13 03:06:19 2008 on lmailproxy03.edpnet.net X-Virus-Status: Clean X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 13 Oct 2008 16:10:03 -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:21446 Archived-At: On Sun, 12 Oct 2008 20:48:45 +0200 martin rudalics wrote: > > That patch fixes the bug I reported, but it creates a new one: > > Are you sure that this worked _before_ my patch? Hm, I must have tried it with Emacs 22. It doesn't work in 23. Too many versions to juggle around. Sorry for the confusion. > > if you > > change the EOL convention outside of emacs, revert-buffer no longer > > detects this. > > Indeed. BTW, can you confirm that when you delete the entire buffer > text first reverting works correctly? Unfortunately, I don't Yes, it works if I clear the buffer first, both with and without your patch. > understand this part of `insert-file-contents' at all. I suppose > Emacs should redecode when it finds out that the eol-types of the > buffer and the part of the file it has already read differ. But > somehow this doesn't happen. Handa-san do you have any ideas? -- Peter De Wachter